Pi Day is tomorrow! My work asked people to bring in pies for a social event (cool!). I can’t bake a pie to save my life, so I’m baking a Raspberry Pi LED display that says, “Happy Pi Day!” to place next to the pies. If you could help me figure out a config item, I’ll send a picture!
In order to get the display scripts to run, I need to disable the audio card. General instructions are to add a line to a blacklist file and reboot. I’m not sure how this type of edit behaves with docker/balena.
I need to append the line: blacklist snd_bcm2835
to: /etc/modprobe.d/raspi-blacklist.conf (which may or may not be created yet)
Then reboot.
What’s the best approach with the docker template file?
Hi @Chris and welcome to our forums. I see you are driving an LED display but I can’t understand what is the dependency to the sounds driver. Could you expand?
Hello @agherzan. Sure thing. I chose this node library to manage a small connected LED matrix:
I was able to work through install and dependencies, resulting in a wonderful unicorn ascii art. The error I’m getting is this when starting the node script:
=== snd_bcm2835: found that the Pi sound module is loaded. ===
Don't use the built-in sound of the Pi together with this lib; it is known to be
incompatible and cause trouble and hangs (you can still use external USB sound adapters).
See Troubleshooting section in README how to disable the sound module.
You can also run with --led-no-hardware-pulse to avoid the incompatibility,
but you will have more flicker.
Exiting; fix the above first or use --led-no-hardware-pulse
Since this is somewhere in the Python bits that come in from another module, it’s not simple to simply tack on “–led-no-hardware-pulse”.
In short, you will need to access the device configuration menu in dashboard, modify RESIN_HOST_CONFIG_dtparam value and set the audio to off. The device will reboot and you will be able to see that the kernel module is not loaded by default anymore. Just tested this on a balenaFin device.
Nice, and thanks for the test! I look forward to trying this out in the evening (or lunch if I’m quick). I appreciate the tips and will update with results.