View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Wed Jun 08, 2016 8:45 am Post subject: master volume for intel pch not saved[solved] |
|
|
I would like to save the volume level of the master control for my hda intel pch
g50-80 ~ # cat /proc/asound/cards
0 [HDMI ]: HDA-Intel - HDA Intel HDMI
HDA Intel HDMI at 0xd1310000 irq 45
1 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xd1314000 irq 44
I'm using pulseaudio which is my default sound card, the volume level for that gets saved just fine, but I do not want to open alsamixer every time I boot the system
thanks
Last edited by Adel Ahmed on Mon Jun 20, 2016 11:33 am; edited 1 time in total |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Wed Jun 08, 2016 10:09 am Post subject: |
|
|
The alsasound init script should usually save and restore the mixer levels, do you have that in your default runlevel? |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Wed Jun 08, 2016 7:00 pm Post subject: |
|
|
yes but I'm using systemd, would you happen to know what I should use instead? |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Mon Jun 13, 2016 6:09 pm Post subject: |
|
|
bump |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Fri Jun 17, 2016 7:50 am Post subject: |
|
|
here's the cause of the problem:
g50-80 ~ # alsactl restore
alsactl: state_lock:125: file /var/lib/alsa/asound.state lock error: No such file or directory
alsactl: load_state:1683: Cannot open /var/lib/alsa/asound.state for reading: No such file or directory |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Fri Jun 17, 2016 6:07 pm Post subject: |
|
|
sorry forgot to mention:
g50-80 ~ # alsactl store
alsactl: state_lock:125: file /var/lib/alsa/asound.state lock error: No such file or directory
I tried restoring and the audio level was not saved |
|
Back to top |
|
|
sebB l33t
Joined: 02 Mar 2011 Posts: 806 Location: S.O. France
|
Posted: Fri Jun 17, 2016 11:12 pm Post subject: |
|
|
Can you post Code: | ls -l /var/lib/alsa/ |
Try to save the conf in over location
Code: | alsactl --file /whereyouwant/asound.state store |
|
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Sat Jun 18, 2016 6:35 pm Post subject: |
|
|
g50-80 ~ # ls -l /var/lib/alsa/
total 0
g50-80 ~ # alsactl --file /media/hdd/asound.state store
g50-80 ~ # ls -l /media/hdd/asound.state
-rw-r--r-- 1 root root 5142 Jun 18 20:08 /media/hdd/asound.state
restoring from this directory is working just fine
g50-80 ~ # chmod 777 /var/lib/alsa/
g50-80 ~ # alsactl store
alsactl: state_lock:125: file /var/lib/alsa/asound.state lock error: No such file or directory
/usr/sbin/alsactl --file /var/lib/alsa/file store
works just fine, I've changed the unit file to exec that command, let's see how things go, thanks alot |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Mon Jun 20, 2016 11:23 am Post subject: |
|
|
yup works like a charm, thanks |
|
Back to top |
|
|
|