-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Disable hardware using dtoverlay #1577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This comment was marked as abuse.
This comment was marked as abuse.
No I did not. |
I don't know how I missed this question - I would have told you that the Device Tree section of our Forums would be a better home since it's a question rather than an "issue". But since you've waited so long... Disabling a hardware block using Device Tree is simply a matter of setting its
Disabling more blocks is a matter of finding their labels and appending new fragments with increasing numbers ( |
Sorry so many other projects do everything as an issue even questions. I will keep that in mind for future questions to look in the forums first. I honestly didn't realize there where official raspberry pi forums. I am a developer by trade so this was the first place I looked and saw similar comments and questions. |
Since in my case cat /proc/device-tree/soc/hdmi@7e902000/status shows In a headless scenario, with
I use the target paths here, related to modprobe -r vc_sm_cma
echo 'blacklist vc_sm_cma' > /etc/modprobe.d/disable_vcsm.conf What I'm still missing is an ability to completely disable composite video on RPi models prior to RPi4. There was a Also to prevent some modules loaded for the RPi camera, which pull in as dependencies some others: echo -e 'blacklist bcm2835_codec\nblacklist bcm2835_v4l2\nblacklist bcm2835_isp' > /etc/modprobe.d/disable_rpi_camera.conf Audio and UART are disabled via |
I want to disable as much hardware as possible. Currently I can disable the Bluetooth and wifi using the dtoverlay in the config.txt. My question is can I do this for the audio or hdmi? Is this something that can be added if it is currently not available? My use case is that I am running a headless unit and using the PI as a server in my home lab for development. I have no use for the HDMI or the Audio to be enabled.
I have seen I can do this in Linux itself, but would rather remove them completely from the system seeing them. With Wifi and Bluetooth there is no software way to enable them without making configuration changes and rebooting. I want to have a standard config.txt and usercfg.txt file I can just copy over that can disable all of this than making OS configuration changes. I am in the process of making a small Pi farm for testing parallel programming and the plan is to have at least 8 Pis as servers. Being able to uniformly turn off as much hardware as possible would be nice. If this is a new feature what about also adding in turning off USB or any other hardware. This would make things clean and allow for a lot of scenarios. It would also make hardening the Pi better from security stand point.
For completeness I am using only Raspberry Pi 4s. This is a mix of 4GB and 8GB, but that shouldn't matter. I also am using them as a Pi-Hole and Octoprint so disabling unneeded hardware would be beneficial for that purpose as well.
The text was updated successfully, but these errors were encountered: