关闭树莓派的优化笔记


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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM