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)
|
As stated in Why is my Audio (Sound) Output not working?, to initialise the sound driver, you must run How do I get this to run on boot? (ie before logging in and without any input) |
|||||||||||||||||||||
|
|
Loading modules at boot is a little different to running startup commands. In Debian:Add the module name as a new line in In ArchAdd the module name to the module array in
Or for the new systemd configuration:
|
||||
|
|
Modprobe on Boot - DebianTo answer the specific question about Starting services - DebianDebian 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.
References |
|||||||||||||
|
|
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. |
|||||||
|