1、關閉HDMI輸出
/opt/vc/bin/tvservice -o
2、關閉模塊
vi /etc/modules
#snd-bcm2835
3、關閉USB電流限制
因樹莓派的USB接口電流大小由USB電流保護芯片進行限制,所以通過旁路USB電流保護芯片(即不讓電流從電流保護芯片流過)就可以實現更大電流。
具體配置需要修改 /boot/config.txt 這個文件,在最后面添加三行。
max_usb_current=1
current_limit_override=0x5A000020
avoid_warnings=2
由於電源芯片限制,最大電流為1.2A。重新啟動樹莓派即可生效
4、超頻,強制主頻 (按官方文檔:https://www.raspberrypi.org/documentation/configuration/config-txt/overclocking.md)
修改/boot/config.txt
arm_freq=1400
Frequency of the ARM CPU in MHz; default value is 1000 for the Pi Zero and Pi Zero W, 700 for Pi 1, 900 for Pi 2, 1200 for the Pi 3, 1400 for the Pi 3B+, 1500 for the Pi 4B
core_freq=500
Frequency of the GPU processor core in MHz, influences CPU performance because it drives the L2 cache and memory bus; default value is 250 for the Pi 1/Pi 2, and 400 for the Pi 3/Pi Zero/Pi Zero W; the L2 cache benefits only the Pi Zero/Pi Zero W/ Pi 1, there is a small benefit for SDRAM on the Pi 2/Pi 3, and there is no effect on the SDRAM on the Pi 4B
5、使用Dietpi版本時關閉SWAP
臨時情況:swapoff -a
想要永久關閉SWAP: 需要修改/boot/dietpi.txt和/DietPi/dietpi.txt兩個文件里面的SWAP設備,然后重啟
6、樹莓派獲取硬件信息:
https://github.com/raspberrypi/documentation/blob/JamesH65-patch-vcgencmd-vcdbg-docs/raspbian/applications/vcgencmd.md
