You are not logged in.

#1 2012-11-19 22:14:24

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

[solved'ish] volume levels reset to max every reboot...

hi, i have done some reading and alsa-store and alsa-restore and meant to run at startup and shutdown, obviously to store and resume alsa level settings, but every boot my levels are at max.... i have alsa-utils installed incase anyone asks.

Last edited by ninjaprawn (2012-11-23 16:02:14)


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#2 2012-11-19 22:26:44

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [solved'ish] volume levels reset to max every reboot...

cat /proc/1/comm


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2012-11-19 22:32:25

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: [solved'ish] volume levels reset to max every reboot...

[danny@HPMachine ~]$ cat /proc/1/comm
systemd
[danny@HPMachine ~]$


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#4 2012-11-22 21:39:31

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: [solved'ish] volume levels reset to max every reboot...

just trying to work through this issue myself... ran systemctl --all to see if I could see anything "odd" and found this;

alsa-restore.service                                         loaded inactive dead          Restore Sound Card State
alsa-store.service                                           loaded inactive dead          Store Sound Card State

I can understand the restore being dead, but surely store should be "waiting"? i will do some more playing... hopefully post a solution incase anyone else has this issue...

EDIT - in fact scrap that idea.... just checked the following;

systemctl show -p WantedBy alsa-store
WantedBy=shutdown.target

obviously, store is only meant to come alive at shutdown.... so either shutdown isnt starting it, or the service is failing..... more digging required....

Last edited by ninjaprawn (2012-11-22 21:51:00)


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#5 2012-11-22 21:52:24

rix
Member
Registered: 2012-07-25
Posts: 238

Re: [solved'ish] volume levels reset to max every reboot...

What about set it manually? I used to do it  that way with init and still with systemd. And it works.

Offline

#6 2012-11-23 16:01:56

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: [solved'ish] volume levels reset to max every reboot...

hmmm ok, well thanks @rix... im now going with the manual method, but not exactly what I wanted.


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#7 2012-11-23 16:12:52

rix
Member
Registered: 2012-07-25
Posts: 238

Re: [solved'ish] volume levels reset to max every reboot...

I see, but it's more easy write a simple script. And it works. Even with Systemd. You'd use a .service or a cron job.

Offline

#8 2012-11-23 16:17:19

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: [solved'ish] volume levels reset to max every reboot...

nah, i am just using amixer in openbox autostart file. even simpler smile


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#9 2012-11-23 16:21:06

rix
Member
Registered: 2012-07-25
Posts: 238

Re: [solved'ish] volume levels reset to max every reboot...

Yep, it was because I use Dwm and don't know enough about Openbox. smile

Offline

#10 2012-11-23 16:26:15

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [solved'ish] volume levels reset to max every reboot...

I assume that you probably have persistent loggin enabled, yeah?  I beleive it is the default these days actually.  If so, are there errors thrown out by the alsa-store.service on shutdown?

If a simple script is enough for you, maybe just masking the alsa-store and alsa-restore services and just use something like /usr/lib/systemd/system-shutdown?  I am not sure if that is run too late, but I would think it should probably work to run alsa store from there.

Offline

#11 2012-11-23 20:55:15

rix
Member
Registered: 2012-07-25
Posts: 238

Re: [solved'ish] volume levels reset to max every reboot...

@ WonderWoofy:
how the heck do you know so many stuff my friend? smile
Sincerly I don't even understood your statement.

Offline

#12 2012-11-23 21:18:19

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [solved'ish] volume levels reset to max every reboot...

You may want to set the volume right once, so "alsactl store" by hand once, and then let it go. alsa-store.service may fail at shutdown, but it won't matter if the right volumes are already stored, yes?

alsa-restore.service is actually not much needed - it's redundant with a udev rule (/usr/lib/udev/rules.d/90-alsa-restore.rules) that does "alsactl restore" for each sound card as udev first sees it. I've tested here with alsa-restore.service completely disabled, and my volume levels still do get set properly at boot by just the udev rule.

Offline

#13 2012-11-24 16:58:03

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: [solved'ish] volume levels reset to max every reboot...

ataraxia wrote:

You may want to set the volume right once, so "alsactl store" by hand once, and then let it go. alsa-store.service may fail at shutdown, but it won't matter if the right volumes are already stored, yes?

alsa-restore.service is actually not much needed - it's redundant with a udev rule (/usr/lib/udev/rules.d/90-alsa-restore.rules) that does "alsactl restore" for each sound card as udev first sees it. I've tested here with alsa-restore.service completely disabled, and my volume levels still do get set properly at boot by just the udev rule.

cool.... thanks for that... that worked for me to smile


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

Board footer

Powered by FluxBB