Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ALSA sound muted at startup -not shown in alsamixer [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
mabhobs
Tux's lil' helper
Tux's lil' helper


Joined: 10 Feb 2006
Posts: 83

PostPosted: Wed Mar 08, 2006 11:51 am    Post subject: ALSA sound muted at startup -not shown in alsamixer [solved] Reply with quote

I have a weird problem with my ibook (kernel 2.6.14-r2) I built in alsa sound in the kernel and the sound works fine except that it is always muted after startup. This, however, is not indicated in alsamixer. What I have to do is to mute PC Speakers and Automute. Then I have to unmute those too again, which makes me able to use the sound card.

I remember once that I muted the startup sound (bell, ring, etc). However, I do not know how I did that.

Anyways, my question now was if it is possible to get the sound work directly after startup. Does anyone know? Does anybody have the same problem?

Help is greatly appreciated. Thank you.


Last edited by mabhobs on Thu Mar 09, 2006 11:52 am; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Mar 08, 2006 12:40 pm    Post subject: Reply with quote

This is a kernel bug, the GPIO pins that have this value set are being read wrong.
I'm not sure when the patches will get in, but here's some of the discussion and patches:
http://patchwork.ozlabs.org/linuxppc/patch?id=4214
http://patchwork.ozlabs.org/linuxppc/patch?id=4424
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Zardam
n00b
n00b


Joined: 20 May 2005
Posts: 17

PostPosted: Wed Mar 08, 2006 12:44 pm    Post subject: Reply with quote

You can try to setup alsamixer like you want, then use "alsactl store" as root to store your mixer settings. Then check if alsasound startup script is launched at boot, it will restore your settings.

If this doesn't work, you can add some lines to "/etc/conf.d/local.start" for automatically do actions on the mixer at startup (like mute and unmute like you do manually)
Back to top
View user's profile Send private message
mabhobs
Tux's lil' helper
Tux's lil' helper


Joined: 10 Feb 2006
Posts: 83

PostPosted: Wed Mar 08, 2006 12:48 pm    Post subject: Reply with quote

Thanks for the quick response. I tried this and it did not work.

Quote:
You can try to setup alsamixer like you want, then use "alsactl store" as root to store your mixer settings. Then check if alsasound startup script is launched at boot, it will restore your settings.


How would a line in "/etc/conf.d/local.start" look like that would mute PC Speaker and Automute first and then unmute both of them? Thank you gain for your help.
Back to top
View user's profile Send private message
Zardam
n00b
n00b


Joined: 20 May 2005
Posts: 17

PostPosted: Wed Mar 08, 2006 12:58 pm    Post subject: Reply with quote

You can use the command "amixer". I dont know the name of the channel you want to control, but the lines to add should look like:

"amixer set control_name mute" or "amixer set control_name unmute".

You can launch amixer without arguments to have a list of control names and properties.
Back to top
View user's profile Send private message
mabhobs
Tux's lil' helper
Tux's lil' helper


Joined: 10 Feb 2006
Posts: 83

PostPosted: Thu Mar 09, 2006 11:50 am    Post subject: Reply with quote

Thanks a lot for all the responses. I am glad that there is a bug filed for this already.

This is the workaround I figured out. Edit the file "/etc/conf.d/local.start" and add the following lines:

Code:

amixer sset 'Auto Mute' mute
amixer sset 'PC Speaker' mute
amixer sset 'Auto Mute' unmute


This fixed the problem for me and I was able to hear sound after startup.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum