LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-16-2005, 07:52 PM   #1
kawinter
LQ Newbie
 
Registered: May 2005
Distribution: Debian
Posts: 7

Rep: Reputation: 0
Unhappy 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?
 
Old 09-16-2005, 09:38 PM   #2
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
to save alsa settings.........
Code:
alsactl store
 
Old 09-17-2005, 07:05 AM   #3
kawinter
LQ Newbie
 
Registered: May 2005
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
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.
 
Old 09-17-2005, 08:30 AM   #4
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
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.
 
Old 09-17-2005, 02:53 PM   #5
kawinter
LQ Newbie
 
Registered: May 2005
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slack 10: Why must I run dhcpcd manually? IamI Slackware 5 11-23-2005 08:26 AM
how do i manually load a device with known vendor and product IDs to devices? pyenos Linux - Hardware 0 03-01-2005 10:16 AM
Alsa loads wrong driver when hotplug runs first ministre Linux - Hardware 2 11-21-2004 04:46 PM
pcmcia loads after trying to load eth0 cleff Debian 1 06-17-2004 01:46 AM
Alsa loads fine, but no sound :( flonejek Linux - Hardware 0 05-28-2004 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration