alsa loads manually but will not load in run level
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
alsa loads manually but will not load in run level
I have googled this question and tried various options until I want to scream. ALSA will not load automatically on my computer. If I boot my computer, I have no sound. When I run any of the following: alsaconf, alsa, or alsa-utils, sound immediately starts just fine. But I have to run that manually after every boot. I have put alsa-utils (and have also tried just alsa) in my default run level (5) but I still have no sound when the computer is done booting and sound still starts the minute I manually run alsaconf, alsa or alsa-utils. What would cause this?
Originally posted by freakyg to save alsa settings.........
Code:
alsactl store
Thank you. I run alsactl store after I run alsaconf. when I reboot, I still have no sound until I manually run any of the following: alsa, alsa-utils, or alsaconf.
I meant to say in my original post that I am running Linux 6.11.10 and KDE 3.3.2
It just makes no sense at all that alsa can be loaded manually but not loaded at boot in run level 5. Anyway, thanks again for your answer.
Perhaps this is a udev/modules problem, if your system does use udev for device node management, here's a possible scenario..
Your init script tries to start alsa, the kernel loads the modules required for alsa and then calls udev to create the device nodes, udev is quite slow, alsactl is not, udev fails to create the device nodes in time and alsactl fails. Later when you run it manually the modules are loaded, the device nodes are in place and it works fine. The solution is preload the alsa modules before the system udev script is run, configuring this tends to be system speciifc, on an LFS system the modules to be preloaded are listed in /etc/sysconfig/modules. Of course YMMV.
Originally posted by madluther Perhaps this is a udev/modules problem, if your system does use udev for device node management, here's a possible scenario..
Your init script tries to start alsa, the kernel loads the modules required for alsa and then calls udev to create the device nodes, udev is quite slow, alsactl is not, udev fails to create the device nodes in time and alsactl fails. Later when you run it manually the modules are loaded, the device nodes are in place and it works fine. The solution is preload the alsa modules before the system udev script is run, configuring this tends to be system speciifc, on an LFS system the modules to be preloaded are listed in /etc/sysconfig/modules. Of course YMMV.
HTH
Mad.
This is an interesting answer but I am too much of a noob to know what to do with it. Where I was loading alsa-utils was just before the last two things loading in run level 5, kdm and xdm so I don't think the script is trying to start alsa before much else but I do not see anything called udev in there so I think this is just a case where my ignorance is hampering me from understanding this answer. Assuming you are absolutely correct, what are the steps I would need to correct this. And thank you very much for giving me a reply. Any little hints that help me along are appreciated very much.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.