<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 07/11/2018 à 05:32, Alexandre
Vaissière a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:feed5f45-043a-5fca-1730-2f6afef2a2c3@fmiw.org">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">Le 06/11/2018 à 23:55, Felipe Sateler
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAAfdZj_YCJjyOBTbJJg8W=WWNW+brKVDjQ_PMzsuv7LS7dPT8A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<div dir="ltr">Control: tags -1 moreinfo<br>
<br>
<div class="gmail_quote">
<div dir="ltr">On Tue, Nov 6, 2018 at 7:27 PM Alexandre
Vaissiere <<a href="mailto:avaiss@fmiw.org"
moz-do-not-send="true">avaiss@fmiw.org</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0

.8ex;border-left:1px #ccc solid;padding-left:1ex">Package:
pulseaudio<br>
Version: 12.2-2<br>
Severity: normal<br>
<br>
<br>
* Expected behaviour<br>
<br>
When I restart my machine, I expect that the sound/mic
state is properly<br>
restored:<br>
- If sound/mic was muted at shutdown, I expect for it to
be muted at startup,<br>
- If sound/mic was unmuted at shutdown, I expect for it to
be unmuted at<br>
startup.<br>
<br>
* Current behaviour<br>
<br>
Currently, whatever the state was at shutdown, mic and
sound are *unmuted* at<br>
startup.<br>
<br>
</blockquote>
<div>This doesn't look like pulseaudio, but that someone is
changing the mute level. The first potential culprit is
gnome-shell. Does this problem happen if you log into a
console instead of gnome? <br>
</div>
</div>
</div>
</blockquote>
<br>
You seem to be right: if I log into a console, and I start
pulseaudio (as it does not start by itself in this case) with
systemctl --user start pulseaudio, then both mic/sound are
correctly muted.<br>
<br>
What is maybe weirder is that if afterthat:<br>
<br>
- I close my console session<br>
- I open a gnome session<br>
<br>
Then in this case, the mic/sound remains muted in gnome.<br>
<br>
In log files, the difference between when it works and when it
does not seems to be the bolded lines, that are not printed when
it works.<br>
<br>
nov. 07 06:22:26 brisingr pulseaudio[1379]: I: [pulseaudio]
module-suspend-on-idle.c: Source
alsa_input.pci-0000_00_1f.3.analog-stereo idle for too long,
suspending ...<br>
nov. 07 06:22:26 brisingr pulseaudio[1379]: I: [alsa-source-ALC257
Analog] alsa-source.c: Device suspended...<br>
nov. 07 06:22:26 brisingr pulseaudio[1379]: D: [pulseaudio]
source.c: alsa_input.pci-0000_00_1f.3.analog-stereo:
suspend_cause: (none) -> IDLE<br>
nov. 07 06:22:26 brisingr pulseaudio[1379]: D: [pulseaudio]
source.c: alsa_input.pci-0000_00_1f.3.analog-stereo: state: IDLE
-> SUSPENDED<br>
nov. 07 06:22:26 brisingr pulseaudio[1379]: D: [pulseaudio]
core.c: Hmm, no streams around, trying to vacuum.<br>
nov. 07 06:22:26 brisingr pulseaudio[1379]: I: [pulseaudio]
module-suspend-on-idle.c: Sink
alsa_output.pci-0000_00_1f.3.analog-stereo idle for too long,
suspending ...<br>
nov. 07 06:22:26 brisingr pulseaudio[1379]: I: [alsa-sink-ALC257
Analog] alsa-sink.c: Device suspended...<br>
nov. 07 06:22:26 brisingr pulseaudio[1379]: D: [pulseaudio]
sink.c: alsa_output.pci-0000_00_1f.3.analog-stereo: suspend_cause:
(none) -> IDLE<br>
nov. 07 06:22:26 brisingr pulseaudio[1379]: D: [pulseaudio]
sink.c: alsa_output.pci-0000_00_1f.3.analog-stereo: state: IDLE
-> SUSPENDED<br>
nov. 07 06:22:26 brisingr pulseaudio[1379]: D: [pulseaudio]
source.c: alsa_output.pci-0000_00_1f.3.analog-stereo.monitor:
suspend_cause: (none) -> IDLE<br>
nov. 07 06:22:26 brisingr pulseaudio[1379]: D: [pulseaudio]
source.c: alsa_output.pci-0000_00_1f.3.analog-stereo.monitor:
state: IDLE -> SUSPENDED<br>
nov. 07 06:22:26 brisingr pulseaudio[1379]: D: [pulseaudio]
core.c: Hmm, no streams around, trying to vacuum.<br>
nov. 07 06:22:26 brisingr pulseaudio[1379]: D: [pulseaudio]
module-udev-detect.c: /dev/snd/controlC0 is accessible: yes<br>
nov. 07 06:22:26 brisingr pulseaudio[1379]: D: [pulseaudio]
module-udev-detect.c: Resuming all sinks and sources of card
alsa_card.pci-0000_00_1f.3.<br>
<b>nov. 07 06:22:30 brisingr pulseaudio[1379]: D:
[alsa-sink-ALC257 Analog] alsa-sink.c: Read hardware volume:
front-left: 30129 / 46% / -20,25 dB, front-right: 30129 /
46% / -20,25 dB</b><b><br>
</b><b>nov. 07 06:22:30 brisingr pulseaudio[1379]: D: [pulseaudio]
sink.c: The mute of sink
alsa_output.pci-0000_00_1f.3.analog-stereo changed from yes to
no.</b><b><br>
</b><b>nov. 07 06:22:30 brisingr pulseaudio[1379]: D:
[alsa-sink-ALC257 Analog] alsa-sink.c: Read hardware volume:
front-left: 30129 / 46% / -20,25 dB, front-right: 30129 /
46% / -20,25 dB</b><b><br>
</b><b>nov. 07 06:22:30 brisingr pulseaudio[1379]: I: [pulseaudio]
module-device-restore.c: Storing volume/mute for device+port
sink:alsa_output.pci-0000_00_1f.3.analog-stereo:analog-output-speaker.</b><b><br>
</b><b>nov. 07 06:22:30 brisingr pulseaudio[1379]: D:
[alsa-source-ALC257 Analog] alsa-source.c: Read hardware volume:
front-left: 20724 / 32% / -30,00 dB, front-right: 20724 /
32% / -30,00 dB</b><b><br>
</b><b>nov. 07 06:22:30 brisingr pulseaudio[1379]: D: [pulseaudio]
source.c: The mute of source
alsa_input.pci-0000_00_1f.3.analog-stereo changed from yes to
no.</b><b><br>
</b><b>nov. 07 06:22:30 brisingr pulseaudio[1379]: I: [pulseaudio]
module-device-restore.c: Storing volume/mute for device+port
source:alsa_input.pci-0000_00_1f.3.analog-stereo:analog-input-internal-mic.</b><b><br>
</b><b>nov. 07 06:22:40 brisingr pulseaudio[1379]: I: [pulseaudio]
module-device-restore.c: Synced.</b><br>
<br>
</blockquote>
<p>After more tests, I noticed that the mute was changed right when
gdm session was killed.</p>
<p> I then guessed that when pulseaudio service spawned by
Debian-gdm user is killed, it somewhat overrode the settings for
sound/speaker that had been set for my user by its own pulseaudio
service right before that.<br>
</p>
<p>And indeed, if I mute speaker and sound in gdm before logging in,
then my speaker/sound are not unmuted anymore, logs become:<br>
</p>
<p>janv. 06 14:09:18 brisingr pulseaudio[1898]: D:
[alsa-source-ALC257 Analog] alsa-source.c: Read hardware volume:
front-left: 65535 / 100% / -0,00 dB, front-right: 65535 / 100% /
-0,00 dB<br>
janv. 06 14:09:18 brisingr pulseaudio[1898]: D: [pulseaudio]
source.c: The reference volume of source
alsa_input.pci-0000_00_1f.3.analog-stereo changed from front-left:
20724 / 32% / -30,00 dB, front-right: 20724 / 32% / -30,00 dB
to front-left: 65535 / 100% / -0,00 dB, front-right: 65535 /
100% / -0,00 dB.<br>
janv. 06 14:09:18 brisingr pulseaudio[1898]: D:
[alsa-source-ALC257 Analog] alsa-source.c: Read hardware volume:
front-left: 65535 / 100% / -0,00 dB, front-right: 65535 / 100% /
-0,00 dB<br>
janv. 06 14:09:18 brisingr pulseaudio[1898]: I: [pulseaudio]
module-device-restore.c: Storing volume/mute for device+port
source:alsa_input.pci-0000_00_1f.3.analog-stereo:analog-input-internal-mic.</p>
<p>So I would say this problem is pulseaudio related only. I have a
workaround: ensures that both Debian-gdm and my user have same
settings.<br>
</p>
<p>Regards,</p>
<p>Alexandre.<br>
</p>
</body>
</html>