[Bug 929619] New: "systemctl daemon-reload" turns volume up
http://bugzilla.novell.com/show_bug.cgi?id=929619 Bug ID: 929619 Summary: "systemctl daemon-reload" turns volume up Classification: openSUSE Product: openSUSE Factory Version: 201503* Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Sound Assignee: tiwai@suse.com Reporter: jslaby@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 633227 --> http://bugzilla.novell.com/attachment.cgi?id=633227&action=edit alsa info # amixer -c 1; systemctl daemon-reload; sleep 5; amixer -c 1 Simple mixer control 'PCM',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 110 Mono: Front Left: Playback 70 [64%] [-20.00dB] [on] Front Right: Playback 70 [64%] [-20.00dB] [on] Simple mixer control 'PCM',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 110 Mono: Front Left: Playback 91 [83%] [-9.50dB] [on] Front Right: Playback 91 [83%] [-9.50dB] [on] This means almost every zypper dup the volume is turned up. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=929619
Takashi Iwai
http://bugzilla.novell.com/show_bug.cgi?id=929619
Jiri Slaby
I don't see this on my machine... Does it happen without PulseAudio running?
How can I test. Whenever I kill pulseaudio, it restarts...
The only calls I can think of are alsa-store.service and alsa-restore.service, which basically just call "/usr/sbin/alsactl store" and "/usr/sbin/alsactl restore". Could you try to call these two commands manually and see whether the same problem appears?
No, it is not reproducible using these two commands. FWIW # systemctl status alsa-store.service alsa-restore.service ● alsa-store.service - Store Sound Card State Loaded: loaded (/usr/lib/systemd/system/alsa-store.service; static; vendor preset: disabled) Active: inactive (dead) ● alsa-restore.service - Restore Sound Card State Loaded: loaded (/usr/lib/systemd/system/alsa-restore.service; static; vendor preset: disabled) Active: inactive (dead) since Mon 2015-05-18 12:20:44 CEST; 1min 28s ago Process: 6193 ExecStart=/usr/sbin/alsactl restore (code=exited, status=0/SUCCESS) Main PID: 6193 (code=exited, status=0/SUCCESS) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=929619
--- Comment #3 from Takashi Iwai
(In reply to Takashi Iwai from comment #1)
I don't see this on my machine... Does it happen without PulseAudio running?
How can I test. Whenever I kill pulseaudio, it restarts...
You need to modify /etc/pulse/client.conf (or equivalent) and set "autospawn = no". -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=929619
--- Comment #4 from Jiri Slaby
http://bugzilla.novell.com/show_bug.cgi?id=929619
--- Comment #5 from Takashi Iwai
http://bugzilla.novell.com/show_bug.cgi?id=929619
Takashi Iwai
http://bugzilla.novell.com/show_bug.cgi?id=929619
Jiri Slaby
http://bugzilla.novell.com/show_bug.cgi?id=929619
Takashi Iwai
The same it occurred, it dismissed -- I no longer encounter this bug :/.
OK, let's close for now. Feel free to reopen if you see the strange ghost again. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=929619
http://bugzilla.novell.com/show_bug.cgi?id=929619#c8
Jiri Slaby
http://bugzilla.novell.com/show_bug.cgi?id=929619
http://bugzilla.novell.com/show_bug.cgi?id=929619#c9
Takashi Iwai
http://bugzilla.novell.com/show_bug.cgi?id=929619
http://bugzilla.novell.com/show_bug.cgi?id=929619#c10
--- Comment #10 from Jiri Slaby
What if running only "alsactl restore"? This should restore the saved state, and this might be different from the state you had.
If systemctl daemon-reload doesn't invoke alsa-store.service, the current state won't be saved. Then it invokes alsa-restore.service and it restores the formerly saved state that can be different from the latest state.
This seems to be the case. "alsactl restore" sets the low-volume state set by some previous alsactl store.
Note that the above is the story in the system level. In the user-level, each application may do store and restore the mixer state by itself. PA does it, too, and kmix used to do it.
So, we need to isolate which does it. That is, reproduce this in runlevel 3 without PA. Then the culprit is likely "alsactl restore" call.
I cannot reproduce after reboot, i.e. ATM. I don't know what precedes the state. Maybe update of some package? But netiher PA, alsa-utils, nor systemd was updated recently. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=929619
http://bugzilla.novell.com/show_bug.cgi?id=929619#c11
--- Comment #11 from Takashi Iwai
So, we need to isolate which does it. That is, reproduce this in runlevel 3 without PA. Then the culprit is likely "alsactl restore" call.
I cannot reproduce after reboot, i.e. ATM. I don't know what precedes the state. Maybe update of some package? But netiher PA, alsa-utils, nor systemd was updated recently.
This is also what I couldn't get it at all. I hate to dig into systemd code to understand what (and how/why) it does... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=929619
http://bugzilla.novell.com/show_bug.cgi?id=929619#c12
Jiri Slaby
http://bugzilla.novell.com/show_bug.cgi?id=929619
http://bugzilla.novell.com/show_bug.cgi?id=929619#c13
Takashi Iwai
http://bugzilla.novell.com/show_bug.cgi?id=929619
http://bugzilla.novell.com/show_bug.cgi?id=929619#c14
Jiri Slaby
participants (1)
-
bugzilla_noreply@novell.com