View previous topic :: View next topic |
Author |
Message |
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Mon Aug 17, 2009 7:34 pm Post subject: What are the most common ALSA problems? |
|
|
So, I'm thinking about writing up a FAQ / guide *if* we need one re ALSA. For some reason, people have the hardest time figuring it out, and for the life of me .... I can't figure out why. These are all the problems I, personally, have ever run into with ALSA:
* wrong soundcard driver
* muted card
Call me lucky, I guess.
Still, I see a lot of issues with ALSA with Gentoo and I keep wondering how the heck people either get confused or make them so complex. I haven't been able to identify any patterns, either, so I could use some help. So, if someone can help fill me in on what some common issues are, I'd be glad to know.
And, oh, this thread is not the place to post your support questions, thanks, I'm just looking for common problems and solutions to.
Specifically, here's what I'm looking for:
* If the docs are confusing, which part, why, how can they be improved?
* What are some common ALSA mistakes you've made in the past, and fixed on your own
* What's your perception on how easy it is to get sound working?
* What are some of the confusing things in setting up sound?
I realize a lot of these questions are pretty open-ended, but I'm trying to narrow down what I see as a generic problem "people having issue with setting up sound" to narrowing it down to specific issues that occur most frequently, and find the causes. Thanks for your feedback! _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
DooBeDooBeDo Apprentice
Joined: 21 Aug 2002 Posts: 220 Location: UK
|
Posted: Tue Aug 18, 2009 12:45 am Post subject: |
|
|
For snd-hda-intel there are often problems from incorrect or non-existant Code: | options snd-hda-intel model="XYZ" | in /etc/modprobe.d/alsa.conf
Instructions on how to set this in a section of a guide would be usefull. |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Tue Aug 18, 2009 1:49 am Post subject: |
|
|
I wrote a guide for the wiki, after seeing countless forum threads of screwed-up kernel compilations. Here's an old copy, due to the great wiki "whoops that's what backups are for" disaster. |
|
Back to top |
|
|
RedSquirrel Guru
Joined: 22 Apr 2008 Posts: 336
|
Posted: Tue Aug 18, 2009 2:03 am Post subject: |
|
|
After adding a regular user to the audio group, it is necessary to logout and login again for the change to take effect. It might be an idea to add that to the ALSA guide or to your FAQ.
I have had no trouble with ALSA at all. |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Tue Aug 18, 2009 5:13 am Post subject: |
|
|
The only issue I had with ALSA was addressed in a bug report. I have had no trouble since I did the fix offered in the bug report. As far as setup, I found it easy.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Aug 18, 2009 6:16 am Post subject: |
|
|
DooBeDooBeDo wrote: | For snd-hda-intel there are often problems from incorrect or non-existant Code: | options snd-hda-intel model="XYZ" | in /etc/modprobe.d/alsa.conf
Instructions on how to set this in a section of a guide would be usefull. |
Why would you even specify the model, shouldn't the module just auto-detect it? _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Aug 18, 2009 6:17 am Post subject: |
|
|
PaulBredbury wrote: | I wrote a guide for the wiki, after seeing countless forum threads of screwed-up kernel compilations. Here's an old copy, due to the great wiki "whoops that's what backups are for" disaster. |
Nice article, I like. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Aug 18, 2009 6:18 am Post subject: |
|
|
pappy_mcfae wrote: | The only issue I had with ALSA was addressed in a bug report. I have had no trouble since I did the fix offered in the bug report. As far as setup, I found it easy.
Blessed be!
Pappy |
That feature was incredibly nasty, and I'm glad it got ripped out. Hopefully that'll reduce future confusion. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
DooBeDooBeDo Apprentice
Joined: 21 Aug 2002 Posts: 220 Location: UK
|
Posted: Tue Aug 18, 2009 8:37 am Post subject: |
|
|
beandog wrote: | DooBeDooBeDo wrote: | For snd-hda-intel there are often problems from incorrect or non-existant Code: | options snd-hda-intel model="XYZ" | in /etc/modprobe.d/alsa.conf
Instructions on how to set this in a section of a guide would be usefull. |
Why would you even specify the model, shouldn't the module just auto-detect it? | Yes it probably should. But it doesn't always. My sound is terrible unless I do. |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Aug 18, 2009 3:36 pm Post subject: |
|
|
DooBeDooBeDo wrote: | beandog wrote: | DooBeDooBeDo wrote: | For snd-hda-intel there are often problems from incorrect or non-existant Code: | options snd-hda-intel model="XYZ" | in /etc/modprobe.d/alsa.conf
Instructions on how to set this in a section of a guide would be usefull. |
Why would you even specify the model, shouldn't the module just auto-detect it? | Yes it probably should. But it doesn't always. My sound is terrible unless I do. |
Really? Man, the reports of weird issues with intel-hda just never seems to stop. Which one is yours, exactly?
Edit: Also, it honestly seems like almost all of the recent "ALSA issues" have to do with *that* specific card, too! Sheesh. I might need a FAQ just for that one driver. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
DooBeDooBeDo Apprentice
Joined: 21 Aug 2002 Posts: 220 Location: UK
|
|
Back to top |
|
|
iplayfast l33t
Joined: 08 Jul 2002 Posts: 642 Location: Cambridge On,CA
|
Posted: Tue Aug 25, 2009 5:49 pm Post subject: |
|
|
Regards to your blog post on things we come across that would be helpful if they were documented better.
1. emerge blocks and how to get past them.
1.1 useful utilities available on gentoo and how to use them to get around emerge blocks (reverse dependancy build, equery etc)
2. guide to installing software on Gentoo that doesn't have an ebuild
3. guide to installing network printers specifically in my case a windows network printer that every windows box can use easily but Linux can barely see.
3.1 guide to using scanner on above network printer. If it is even possible.
that's all I can think of off the top of my head. |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Aug 25, 2009 7:50 pm Post subject: |
|
|
iplayfast wrote: | Regards to your blog post on things we come across that would be helpful if they were documented better. |
thanks, but I was referring specfically to ALSA, not Gentoo in general. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
iplayfast l33t
Joined: 08 Jul 2002 Posts: 642 Location: Cambridge On,CA
|
Posted: Tue Aug 25, 2009 8:06 pm Post subject: |
|
|
Well Alsa has never actually been much of a problem for me. HOWEVER, trying to get midi rosegarden, jack and all that stuff to work doesn't ever work as advertised. Perhaps if you feel so inclined you can explore those. |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Aug 25, 2009 8:44 pm Post subject: |
|
|
Jaglover wrote: | The only problem I ever had with ALSA was several versions ago, no sound when "Aggressive power-saving on HD-audio" was turned on. A bug in Intel HDA driver I'd guess. |
Oh yah? what did it do? *curious*. LOL, awesome sig btw. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Aug 25, 2009 8:45 pm Post subject: |
|
|
iplayfast wrote: | Well Alsa has never actually been much of a problem for me. HOWEVER, trying to get midi rosegarden, jack and all that stuff to work doesn't ever work as advertised. Perhaps if you feel so inclined you can explore those. |
Oh gosh, all the things I steer clear of, too... heh. Sorry. Ask the proaudio herd to come up with something. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Tue Aug 25, 2009 9:15 pm Post subject: |
|
|
beandog wrote: | Jaglover wrote: | The only problem I ever had with ALSA was several versions ago, no sound when "Aggressive power-saving on HD-audio" was turned on. A bug in Intel HDA driver I'd guess. |
Oh yah? what did it do? *curious*. LOL, awesome sig btw. |
Well, to be precise, my history with ALSA:
0. As a RH user I didn't have any ALSA troubles, I'd think this was mainly because ALSA wasn't founded yet.
1. As a Debian user I experienced a few problems, minor ones, cannot recall details.
2. With Gentoo, enabling that powersaving feature in kernel conf for my Realtek chip resulted in muted soundcard with 100% certainty.
Re: sig
This was humiliating, but my first vi experience actually ended with reboot ... 11+ years ago ... still remember it ... |
|
Back to top |
|
|
cynyr n00b
Joined: 24 Feb 2005 Posts: 21
|
Posted: Tue Aug 25, 2009 11:35 pm Post subject: dmix not "just working" |
|
|
getting dmix to work. I keep hearing that it should be on by default now, but on my card (see below) i still need to set up dmix to get more than one thing to make sound. For my chipset this is very very poorly documented (I probably should add that to gentoo-wiki). The headphone switch is still not working automatically, the sound card has a headphone switch, it would be "nice" if there was an option to use or not use it, or even better as a second audio out interface. So that maybe i could have some audio go out the speakers, and some out the headphones at the same time. |
|
Back to top |
|
|
stuNNed2 n00b
Joined: 17 Jul 2009 Posts: 32 Location: New Orleans, LA, U.S.
|
Posted: Wed Aug 26, 2009 1:28 am Post subject: OSS / ALSA integration |
|
|
For the longest time I had a card that only worked with OSS drivers. Then they started working in ALSA. Now with ALSA I read sound servers won't be needed anymore unless you are serving your audio over the network. So basic fundamentals of explaining things are needed I would think, like:
What is OSS. What is ALSA. What is a soundserver. Do you really need a soundserver, etc.
I am running only ALSA with no soundserver with my current soundcard and it works fine.
Also why Gentoo ships it's own /etc/init.d/alsasound instead of the one shipped by ALSA would be a good hint. |
|
Back to top |
|
|
BT Guru
Joined: 13 Jun 2004 Posts: 318
|
Posted: Wed Aug 26, 2009 2:44 am Post subject: Re: What are the most common ALSA problems? |
|
|
I've had no trouble configuring ALSA over the years, although I did notice some inconsistency when recommending whether to compile ALSA statically or as modules. The ALSA documentation recommends that users should compile as modules, however the elog from the alsa-utils ebuild appears to recommend the opposite.
alsa-utils wrote: | "The script will load ALSA modules, if you choose to use a modular"
"configuration. The Gentoo ALSA developers recommend you to build"
"your audio drivers into the kernel unless the device is hotpluggable"
"or you need to supply specific options (such as model= to HD Audio)" |
|
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Wed Aug 26, 2009 3:29 am Post subject: Re: OSS / ALSA integration |
|
|
stuNNed2 wrote: | So basic fundamentals of explaining things are needed I would think, like:
What is OSS. What is ALSA. What is a soundserver. Do you really need a soundserver, etc. |
Agreed
stuNNed2 wrote: | Also why Gentoo ships it's own /etc/init.d/alsasound instead of the one shipped by ALSA would be a good hint. |
I didn't even know they had one. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Wed Aug 26, 2009 3:29 am Post subject: Re: What are the most common ALSA problems? |
|
|
BT wrote: | I've had no trouble configuring ALSA over the years, although I did notice some inconsistency when recommending whether to compile ALSA statically or as modules. The ALSA documentation recommends that users should compile as modules, however the elog from the alsa-utils ebuild appears to recommend the opposite.
alsa-utils wrote: | "The script will load ALSA modules, if you choose to use a modular"
"configuration. The Gentoo ALSA developers recommend you to build"
"your audio drivers into the kernel unless the device is hotpluggable"
"or you need to supply specific options (such as model= to HD Audio)" |
|
Oh, yah, that is annoying ... and odd that it'd have *driver* installation instructions on alsa-utils of all places. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
ABCDwp Retired Dev
Joined: 26 Mar 2006 Posts: 79
|
Posted: Wed Aug 26, 2009 4:00 am Post subject: Re: OSS / ALSA integration |
|
|
stuNNed2 wrote: | Also why Gentoo ships it's own /etc/init.d/alsasound instead of the one shipped by ALSA would be a good hint. |
Gentoo uses a different init script system than just about everyone else, and most upstreams do not ship compatible scripts (easy check: if it begins with anything other than "#!/sbin/runscript", it's not compatible; otherwise it probably is). |
|
Back to top |
|
|
FireBurn Apprentice
Joined: 19 Sep 2004 Posts: 170 Location: Edinburgh, UK
|
Posted: Wed Aug 26, 2009 10:43 am Post subject: |
|
|
The only issue I've had recently (that wasn't pulseaudio related) was switching on the new audio jack feature which seemed to kill sound on both machines that had it enabled. I think this was around 2.6.31-rc1 time so I'm not sure if this has been fixed since then
I've never had my card auto detected correctly by the driver however the fallback it uses seems to work fine on both cards
I wish there was an easier way to figure out which is the correct option to use and a way to feed this information back to the ALSA devs to get it added to the driver for auto selection in the next version
Grumble grumble
Oh and I've never gotten HDMI audio working either but I think that's an xf86-video-intel/radeon issue |
|
Back to top |
|
|
|