Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] sound levels reset at boot (alsa)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
God Of Atheism
n00b
n00b


Joined: 23 Jan 2012
Posts: 18

PostPosted: Wed Feb 01, 2012 7:42 pm    Post subject: [SOLVED] sound levels reset at boot (alsa) Reply with quote

Hi,

I've seen many similar threads both here and in other forums, as well as purported solutions on wikis and blogs, but so far, nothing helped me to solve this.

When I run
Code:
sudo alsactl store 0
, settings seem to be stored. /var/lib/alsa/asound.state is updated. On reboot, the timestamp on that file remains as it was before the reboot. However, if I run alsamixer, xfce4-mixer, or quodlibet, the actual values are shown to be reset. Even if the timestamp on /var/lib/alsa/asound.state remains. I have no asound.state in /etc, as some solutions pointed to as being problematic.

My /etc/conf.d/alsasound can be seen here.

Does anyone have any ideas how to solve this?


Last edited by God Of Atheism on Fri Feb 03, 2012 5:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
ferreirafm
Guru
Guru


Joined: 28 Jul 2005
Posts: 345
Location: São Paulo, Brazil

PostPosted: Wed Feb 01, 2012 7:58 pm    Post subject: Reply with quote

Hi God Of Atheism,
It sounds your WM mixer isn't enable to restore sound settings. In Kmixer you can enable "restore volume and sound settings" in the "set Kmix" option under "settings" menu. Try to find this option in your preferable mixer.
Hope it helps.
Back to top
View user's profile Send private message
God Of Atheism
n00b
n00b


Joined: 23 Jan 2012
Posts: 18

PostPosted: Fri Feb 03, 2012 7:13 am    Post subject: Reply with quote

Hi ferreirafm,

Thanks, but I found no such option in xfce4-mixer.

I do encounter another phenomenon, apart from the volume being reset at boot, which is that PCM control has disappeared. This happened earlier as well, but then I could add it back in xfce4-mixer, now I can't. Actually, it was absent when I first ran alsamixer, it was xfce4-mixer via which I added it. How do I add that control back?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 6609

PostPosted: Fri Feb 03, 2012 7:55 am    Post subject: Reply with quote

I recommend you forget about asound.state, and use a script.

This stops ALSA from getting confused, if the state file doesn't quite match the controls as ALSA sees them - which can happen, e.g. between ALSA versions.
Back to top
View user's profile Send private message
God Of Atheism
n00b
n00b


Joined: 23 Jan 2012
Posts: 18

PostPosted: Fri Feb 03, 2012 5:04 pm    Post subject: Reply with quote

Hi PaulBredbury,

I made a script and put it in /etc/alsa.d/, but also did rc-update to add (or re-add, I don't think I did that step while setting up alsa) to the boot runlevel. One of those solved it, I'll check sometime which of those by moving the script. In any case I can mark this as solved.

Still, do I need the PCM control (which disappeared)?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 6609

PostPosted: Fri Feb 03, 2012 5:16 pm    Post subject: Reply with quote

God Of Atheism wrote:
do I need the PCM control (which disappeared)?

Probably not. Has its removal meant that you can't adjust the volume properly?

Do you have a "Master" control? Maybe that takes it place.
Back to top
View user's profile Send private message
God Of Atheism
n00b
n00b


Joined: 23 Jan 2012
Posts: 18

PostPosted: Sat Feb 04, 2012 5:15 pm    Post subject: Reply with quote

Hi PaulBredbury,

Thanks. I have the master control. For now the PCM control has reappeared by the way.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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