Bug 428906

Summary: volume not saved on reboot (not restored on boot)
Product: [Fedora] Fedora Reporter: Mikel Ward <mikel>
Component: pulseaudioAssignee: Lennart Poettering <lpoetter>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 8CC: johan-fedora, pierre-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-09 22:38:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
/etc/alsa/asound.state after setting master volume to 40%
none
/etc/alsa/asound.state after setting master volume to 100% none

Description Mikel Ward 2008-01-15 22:52:32 UTC
If I set my master volume to 50% then reboot, my master volume is 100% when I
log back in.

It turns out /etc/alsa/asound.state doesn't change when I set the master volume
and store the current state.

Comment 1 Mikel Ward 2008-01-15 22:53:41 UTC
Change component from initscripts to alsa-utils.  At first I thought it was due
to /sbin/salsa being called so late in S01reboot, but it now seems it's because
alsactl store isn't doing anything useful.

Comment 2 Mikel Ward 2008-01-15 22:55:04 UTC
Created attachment 291762 [details]
/etc/alsa/asound.state after setting master volume to 40%

Comment 3 Mikel Ward 2008-01-15 22:55:38 UTC
Created attachment 291763 [details]
/etc/alsa/asound.state after setting master volume to 100%

Comment 4 Mikel Ward 2008-01-15 22:59:49 UTC
My master device is described by the GNOME Volume Applet as:
Playback: ALSA PCM: on hw:0 (STAC92xx Analog) via DMA (PulseAudio Mixer)

If I go to File->Change Device, I get the following options:
- HDA Intel (Alsa Mixer)
- SigmaTel STAC9205 (OSS Mixer)
- Playback: ALSA PCM: on hw:0 (STAC92xx Analog) via DMA (PulseAudio Mixer)

Obviously the third of these is selected.



Comment 5 Mikel Ward 2008-01-15 23:11:37 UTC
amixer shows the controls/components for the HDA Intel (Alsa Mixer) device when
I use the "controls" command.

$ amixer -c 0 controls
numid=12,iface=MIXER,name='Front Playback Switch'
numid=11,iface=MIXER,name='Front Playback Volume'
numid=6,iface=MIXER,name='Capture Switch'
numid=9,iface=MIXER,name='Capture Switch',index=1
numid=5,iface=MIXER,name='Capture Volume'
numid=8,iface=MIXER,name='Capture Volume',index=1
numid=4,iface=MIXER,name='Analog Loopback'
numid=13,iface=MIXER,name='IEC958 Playback Con Mask'
numid=14,iface=MIXER,name='IEC958 Playback Pro Mask'
numid=15,iface=MIXER,name='IEC958 Playback Default'
numid=16,iface=MIXER,name='IEC958 Playback Switch'
numid=1,iface=MIXER,name='Digital Input Source'
numid=2,iface=MIXER,name='Input Source'
numid=3,iface=MIXER,name='Input Source',index=1
numid=7,iface=MIXER,name='Mux Capture Volume'
numid=10,iface=MIXER,name='Mux Capture Volume',index=1

Changing the card number to 1 or 2 produces an error.

Yet it sets the PulseAudio device (ALSA PCM: on hw:0 (STAC92xx Analog) via DMA
(PulseAudio Mixer)) when I use the "set" command.
$ amixer set Master 50%
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 65536
  Mono:
  Front Left: Playback 32768 [50%] [on]
  Front Right: Playback 32768 [50%] [on]


Comment 6 Mikel Ward 2008-01-17 03:52:00 UTC
I've been able to work around this by changing the volume control applet to use
device 0: HDA Intel (Alsa mixer).  I also had to change my volume up and down
keys to run "amixer -c 0 cset numid=11 +10%" rather than "amixer set Master
10%+".  It should be obvious this isn't ideal.

Comment 7 Mikel Ward 2008-01-17 04:00:13 UTC
That amixer command doesn't actually work.  amixer set Master accepts %
increments (e.g. 10%+ to turn the volume up 10%), but amixer cset doesn't. :-(

Comment 8 Martin Stransky 2008-02-22 11:12:04 UTC
It's not going to be handled by alsa anymore...

Comment 9 Lennart Poettering 2008-09-09 22:38:38 UTC
PA now saves and restores audio device volumes automatically in rawhide.