You are not logged in.

#1 2010-03-15 12:34:15

legolas558
Member
Registered: 2009-09-08
Posts: 97

ALSA volume not saved when closing XFCE session

Each time I reboot/shutdown my volume levels are not saved. I am using XFCE desktop environment and don't know where to look to fix this issue...

Has anybody already experienced it?


.-.   ,---,---.--.
| |__  \ \ \ \`//.
`----'`--'`--'`--'

Offline

#2 2010-03-15 13:24:26

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: ALSA volume not saved when closing XFCE session

legolas558 wrote:

Has anybody already experienced it?

I have big_smile

Offline

#3 2010-03-15 13:25:14

phantasmik
Member
Registered: 2010-03-15
Posts: 15

Re: ALSA volume not saved when closing XFCE session

add alsa to your daemons in /etc/rc.conf

http://wiki.archlinux.org/index.php/Als … at_startup

EDIT: screwed up the url

Last edited by phantasmik (2010-03-15 13:30:13)


Enthusiast

Offline

#4 2010-03-15 16:28:30

legolas558
Member
Registered: 2009-09-08
Posts: 97

Re: ALSA volume not saved when closing XFCE session

phantasmik wrote:

add alsa to your daemons in /etc/rc.conf

http://wiki.archlinux.org/index.php/Als … at_startup

EDIT: screwed up the url

You should first ask: do you have alsa in your daemons?

Because I have.


.-.   ,---,---.--.
| |__  \ \ \ \`//.
`----'`--'`--'`--'

Offline

#5 2010-03-15 16:31:26

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: ALSA volume not saved when closing XFCE session

legolas558 wrote:
phantasmik wrote:

add alsa to your daemons in /etc/rc.conf

http://wiki.archlinux.org/index.php/Als … at_startup

EDIT: screwed up the url

You should first ask: do you have alsa in your daemons?

Because I have.

Wonderful. Anything else one should first ask you haven't told us?


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#6 2010-03-15 17:00:37

legolas558
Member
Registered: 2009-09-08
Posts: 97

Re: ALSA volume not saved when closing XFCE session

toad wrote:
legolas558 wrote:
phantasmik wrote:

add alsa to your daemons in /etc/rc.conf

http://wiki.archlinux.org/index.php/Als … at_startup

EDIT: screwed up the url

You should first ask: do you have alsa in your daemons?

Because I have.

Wonderful. Anything else one should first ask you haven't told us?

Please go trolling elsewhere. Thanks


.-.   ,---,---.--.
| |__  \ \ \ \`//.
`----'`--'`--'`--'

Offline

#7 2010-03-15 17:27:04

phantasmik
Member
Registered: 2010-03-15
Posts: 15

Re: ALSA volume not saved when closing XFCE session

legolas558 wrote:
phantasmik wrote:

add alsa to your daemons in /etc/rc.conf

http://wiki.archlinux.org/index.php/Als … at_startup

EDIT: screwed up the url

You should first ask: do you have alsa in your daemons?

Because I have.

Weak.


Enthusiast

Offline

#8 2010-03-15 17:44:36

legolas558
Member
Registered: 2009-09-08
Posts: 97

Re: ALSA volume not saved when closing XFCE session

phantasmik wrote:
legolas558 wrote:
phantasmik wrote:

add alsa to your daemons in /etc/rc.conf

http://wiki.archlinux.org/index.php/Als … at_startup

EDIT: screwed up the url

You should first ask: do you have alsa in your daemons?

Because I have.

Weak.

Weak what? What festival is this? Can you please all focus on Arch Linux problems instead? Otherwise I'd be posting elsewhere


.-.   ,---,---.--.
| |__  \ \ \ \`//.
`----'`--'`--'`--'

Offline

#9 2010-03-15 19:03:35

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: ALSA volume not saved when closing XFCE session

Easy, my dear fellows... Easy. The subject problem does exist.

Offline

#10 2010-03-15 19:36:26

legolas558
Member
Registered: 2009-09-08
Posts: 97

Re: ALSA volume not saved when closing XFCE session

Llama wrote:

Easy, my dear fellows... Easy. The subject problem does exist.

Yes and I can't really understand the reason...perhaps the alsa daemon fails at shutting down or at saving the values?

Llama do you also have alsa enabled as a daemon, do you?

Last edited by legolas558 (2010-03-15 19:39:13)


.-.   ,---,---.--.
| |__  \ \ \ \`//.
`----'`--'`--'`--'

Offline

#11 2010-03-15 19:37:58

legolas558
Member
Registered: 2009-09-08
Posts: 97

Re: ALSA volume not saved when closing XFCE session

If I manually start/stop the ALSA daemon the volume levels are successfully restored, so it is not a problem of the ALSA init script


.-.   ,---,---.--.
| |__  \ \ \ \`//.
`----'`--'`--'`--'

Offline

#12 2010-03-15 20:05:41

phantasmik
Member
Registered: 2010-03-15
Posts: 15

Re: ALSA volume not saved when closing XFCE session

http://wiki.archlinux.org/index.php/Als … at_startup

did you try the solution listed in the wiki:

Run alsactl store once to create /etc/asound.state.

# alsactl store

Edit /etc/rc.conf and add "alsa" to the list of daemons to start on boot-up. This will store the mixer settings on every shutdown and restore them when you boot.

If the mixer settings are not loaded on boot-up, add the following line to /etc/rc.local:
# alsactl restore

These methods still may not work, or you may prefer to have audio settings for individual users. In this case, run alsactl store -f ~/.asoundrc as a normal user. This will save and restore volume settings on a per user basis. To automate this process, add the respective commands to ~/.bash_login and ~/.bash_logout, or the correct locations for the shell of your choice.
For zsh, use ~/.zlogin and ~/.zlogout.

Last edited by phantasmik (2010-03-15 20:06:02)


Enthusiast

Offline

#13 2010-04-16 19:15:02

Cape
Member
From: Mogliano Veneto, Italy
Registered: 2008-11-15
Posts: 105

Re: ALSA volume not saved when closing XFCE session

phantasmik wrote:

http://wiki.archlinux.org/index.php/Als … at_startup

did you try the solution listed in the wiki:

Run alsactl store once to create /etc/asound.state.

# alsactl store

Edit /etc/rc.conf and add "alsa" to the list of daemons to start on boot-up. This will store the mixer settings on every shutdown and restore them when you boot.

If the mixer settings are not loaded on boot-up, add the following line to /etc/rc.local:
# alsactl restore

These methods still may not work, or you may prefer to have audio settings for individual users. In this case, run alsactl store -f ~/.asoundrc as a normal user. This will save and restore volume settings on a per user basis. To automate this process, add the respective commands to ~/.bash_login and ~/.bash_logout, or the correct locations for the shell of your choice.
For zsh, use ~/.zlogin and ~/.zlogout.

mmm... well this should definitely work, but some times ago (like a month) it was doing it without this. Perhaps an upgrade or something screwed up the config file?

Offline

#14 2010-04-16 19:17:34

Cape
Member
From: Mogliano Veneto, Italy
Registered: 2008-11-15
Posts: 105

Re: ALSA volume not saved when closing XFCE session

Now wait a second! It's not alsa, it's gnome volume applet that doesn't store the volume on exit!
Sorry for flooding... ;-)

Offline

#15 2010-04-16 22:24:11

legolas558
Member
Registered: 2009-09-08
Posts: 97

Re: ALSA volume not saved when closing XFCE session

I don't have GNOME.

However it appears to work recently. I also tried Cape's suggested approach


.-.   ,---,---.--.
| |__  \ \ \ \`//.
`----'`--'`--'`--'

Offline

Board footer

Powered by FluxBB