modprobe OSS - not auto-loading module in Arch Linux
Hello!
I tested a lot but still it doesn't loading automatically on boot. My /etc/modprobe.d/snd_pcm_oss.conf Code:
alias oss snd_pcm_oss |
You might find this helpful, from the Arch Wiki.
|
I did all that, as you my commented part in file, file name and few ways to load, but still ...
I don't know how to use options command in *.conf files fpr snd_pcm_oss, it is not a kernel module as I understand too, or am I wrong? I was looking much and read in forums and wikis and tested but not working or am I doing something wrong? Is my snd_pcm_oss.conf file correct? |
Before I explain the config file, i would like to check a couple things with you. You mention it does not load automatically at boot,..
There is no sense in discussing the config file, if you cannot get it to work from the command line. |
* Yes, it works from a command line.
* Yes, I can see it if I load it from the command line. * I am using modprobe snd_pcm_oss to load it. I need make snd_pcm_oss load automatically at boot without need to use modprobe each time but I am lost. |
Ok. Thank you.
Now, when you have this config: Code:
/etc/modprobe.d/snd_pcm_oss.conf Setting the debugging level higher might help as well: https://wiki.archlinux.org/index.php/boot_debugging Once we have an error to work with, it will be easier to debug the issue. |
No, it doesn't.
But when I loading from the command line then I it shows an error... it loads module but ignores line in the file. Code:
$ modprobe snd_pcm_oss |
I have installed pulseaudio-alsa and alsa-oss for making some of my programs to work and I need oss module to load on boot. Some users are restricted to use sudo so only I can run modprobe and it's not a good alternative to be with computer each time someone need to use it.
|
I made a file called /etc/modprobe.d/sound.conf and added this:
Code:
install snd_pcm_oss modprobe -i snd_pcm_oss |
This doesn't work either... it might be a bug in Arch Linux or the sound program that I installed... I will look for another way to load it may be will make a service that will run it if possible... or another way where I can add it to autostart with system...
Thanks for your time! I will continue my researches... |
Did you turn debugging on and find the error related to the module at startup?
I would rather debug that than create a workaround, but if you want a work around, you can do this: Create a systemd service to run rc.local (do all of this as root please): Code:
#unload the module if loaded Code:
#create the rc-local systemd service Code:
Code:
systemctl enable rc-local.service Code:
systemctl start rc-local.service Code:
lsmod|grep pcm |
Code:
systemctl start rc-local.service Here is "journalctl -xn" output Code:
-- Subject: Process /etc/rc.local could not be executed |
I forgot the install section and the shebang line.
Code:
#create the rc-local systemd service Code:
echo #!/bin/bash > /etc/rc.local |
You answered before I wrote :D
I can start service with no problem now. I still need to do some checks... |
Nice. If you found all this time and effort helpful,. you can always click 'i found this helpful' on the posts.
|
All times are GMT -5. The time now is 05:54 PM. |