You are not logged in.
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
cat /proc/1/comm
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
[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
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 StateI 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.targetobviously, 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
What about set it manually? I used to do it that way with init and still with systemd. And it works.
Offline
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
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
nah, i am just using amixer in openbox autostart file. even simpler ![]()
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
Yep, it was because I use Dwm and don't know enough about Openbox. ![]()
Offline
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
@ WonderWoofy:
how the heck do you know so many stuff my friend? ![]()
Sincerly I don't even understood your statement.
Offline
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
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 ![]()
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