Raspberry PI 设置开机自启动脚本 All In One
docs
raspi-config
$ sudo raspi-config
https://www.raspberrypi.com/documentation/computers/configuration.html#raspi-config
config.txt
$ cat /boot/config.txt
$ sudo nano /boot/config.txt
$ sudo vim /boot/config.txt
https://www.raspberrypi.com/documentation/computers/config_txt.html
BIOS
https://en.wikipedia.org/wiki/BIOS
example file:
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
# Automatically load overlays for detected cameras
camera_auto_detect=1
# Automatically load overlays for detected DSI displays
display_auto_detect=1
# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2
# Disable compensation for displays with overscan
disable_overscan=1
include extraconfig.txt
autoboot.txt
[all]
tryboot_a_b=1
boot_partition=2
[tryboot]
boot_partition=3
[all]
tryboot_a_b=1
boot_partition=3
[tryboot]
boot_partition=2
Display
hdmi_enable_4kp60
# Raspberry Pi 4 Only
By default, when connected to a 4K monitor
, the Raspberry Pi 4B, 400 and CM4
will select a 30Hz refresh rate
. Use this option to allow selection of 60Hz refresh rates
.
IMPORTANT
It is not possible
to output 4Kp60 on both
micro HDMI ports simultaneously.
WARNING
Setting hdmi_enable_4kp60 will increase power consumption
and the temperature
of your Raspberry Pi.
https://www.raspberrypi.com/documentation/computers/config_txt.html#common-display-options
demos
- 让 Raspberry PI 说出自己的 IP 地址
无显示器 SSH 远程访问 树莓派
# SSH
$ ssh [email protected]
$ ssh [email protected]