As stated in Why is my Audio (Sound) Output not working?, to initialise the sound driver, you must run
sudo modprobe snd_bcm2835 every time you want to output sound.
How do I get this to run on boot? (ie before logging in and without any input)
|show 2 more comments|
Loading modules at boot is a little different to running startup commands.
Add the module name as a new line in
Add the module name to the module array in
Or for the new systemd configuration:
Modprobe on Boot - Debian
To answer the specific question about
Starting services - Debian
Debian using initscripts to initialise the system, and you can use them to run arbitrary commands. You need to install a script similar to the following in
You should ensure it is runnable and owned by root.
Then you need to register it to run at startup.
There are loads of ways of running a command at start-up in Linux but my favoured approach is to create an initialisation script in
See this post for a set of instructions on how to create one on the Raspberry Pi.