Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
master volume for intel pch not saved[solved]
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
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Wed Jun 08, 2016 8:45 am    Post subject: master volume for intel pch not saved[solved] Reply with quote

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
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Wed Jun 08, 2016 10:09 am    Post subject: Reply with quote

The alsasound init script should usually save and restore the mixer levels, do you have that in your default runlevel?
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Wed Jun 08, 2016 7:00 pm    Post subject: Reply with quote

yes but I'm using systemd, would you happen to know what I should use instead?
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Mon Jun 13, 2016 6:09 pm    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Mon Jun 13, 2016 9:16 pm    Post subject: Reply with quote

https://bbs.archlinux.org/viewtopic.php?id=147206 systemd/alsa-restore doesn't work
https://bugzilla.redhat.com/show_bug.cgi?id=1012716 Set master output channel volume level does not survive a reboot
https://bbs.archlinux.org/viewtopic.php?id=183211[SOLVED] Alsa is always muted on reboot


https://bbs.archlinux.org/viewtopic.php?id=192887 systemd randomly resetting master ALSA volume [SOLVED]


Tl;dr:

use a custom restore script
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Fri Jun 17, 2016 7:50 am    Post subject: Reply with quote

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
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Jun 17, 2016 2:19 pm    Post subject: Reply with quote

Looks like the script isn't running at all ?


The instructions are posted in my last post:

Code:
alsactl store




so set up your alsa stuff, run alsactl store and then proceed with further steps
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Fri Jun 17, 2016 6:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
sebB
l33t
l33t


Joined: 02 Mar 2011
Posts: 806
Location: S.O. France

PostPosted: Fri Jun 17, 2016 11:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Sat Jun 18, 2016 6:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1523

PostPosted: Mon Jun 20, 2016 11:23 am    Post subject: Reply with quote

yup works like a charm, thanks
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