#773086 pulseaudio: Volume resets to mute everytime I login with Gnome (Gnome on Wayland) version 3.14.1 (gnome-shell) on Debian Sid

Package:
pulseaudio
Source:
pulseaudio
Description:
PulseAudio sound server
Submitter:
jkc
Date:
2018-12-05 15:09:04 UTC
Severity:
normal
#773086#5
Date:
2014-12-14 05:50:35 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
1.) edited /etc/apt/sources.list with 'nano /etc/apt/sources.list'
2.) I repaced the contents of that file from Jessie to this sources.list for Sid
Code:
deb http://ftp.us.debian.org/debian unstable main contrib non-free
deb-src http://ftp.us.debian.org/debian unstable main contrib non-free

deb http://ftp.debian.org/debian/ Sid-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ Sid-updates main contrib non-free

deb http://security.debian.org/ Sid/updates main contrib non-free
deb-src http://security.debian.org/ Sid/updates main contrib non-free
3.) After that I ran 'sudo apt-get dist-upgrade'
4.) Then I ran 'sudo apt-get -f dist-upgrade' just to make sure I upgraded to Sid
5.) Then I restarted my computer
6.) I logged in to debian like I usually do (through the default logon screen for gnome)
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
NOTE: Im using Gnome 3.14.1 (I think this is a pulseaudio bug not a gnome-shell bug!)
Ineffective:
1.)Going into Settings -> Sound
2.)Changing the volume with the slider
3.)Logging off than logging back in
   * What was the outcome of this action?
Same issue as before, nothing seems to keep the volume from muting at login!
   * What outcome did you expect instead?
The volume to remember what I set it to in the last session!

#773086#10
Date:
2014-12-16 20:37:39 UTC
From:
To:
Hi,

Could you please edit ~/.pulse/daemon.conf and set the following:

log-target = file:/home/youruser/pulse.log
log-level = debug
log-time = yes


Then restart pulseaudio (pulseaudio -k ; pulseaudio --start), and try
to reproduce the problem.

Then attach the log here so we can see what is happening.

#773086#17
Date:
2014-12-18 01:24:17 UTC
From:
To:
Here's the log!
The bug still exist with the latest updates!

How I reproduce the bug:
1.) Logged off
2.) Logged back in
3.) Found the volume mute itself at logon and at the logon screen for
gnome! Happens both in regular gnome and gnome on wayland! So that wayland
can't be the problem, because it also behave that way with Xorg!

#773086#22
Date:
2015-01-22 19:38:43 UTC
From:
To:
I was having the exact same problem running Pulseaudio 2.0-6.1 on Debian
7.8 using Gnome 3.4.2. I was able to resolve the issue by installing the
alsa-utils and alsa-base packages. I do not know the details as to why
this worked as I am not a programmer. Hope this info is helpful!

#773086#27
Date:
2015-04-21 21:25:03 UTC
From:
To:
Having the same problem too and the alsa-utils work-around did work too.

However, this bug seems to be fixed in current experimental version of
pulseaudio (version 6.0-1): sound is correctly restored when session is
restored.

#773086#32
Date:
2018-12-05 15:06:49 UTC
From:
To:

Package: pulseaudio
Version: 12.2-2
Followup-For: Bug #773086

similarly,
under testing debian buster gnome 3.30.2

at the login,
pulseaudio systematically mutes my IEC958 digital sound output.

motherboard asus prime x370 pro.
internal sound card disabled in the bios.
external sound card asus xonar dgx pci-e in use.
IEC958 optical output .

$ apt policy -t experimental pulseaudio
pulseaudio:
Installed: 12.2-2
Candidate: 12.2-2
Version table :
*** 12.2-2 500
500 https://deb.debian.org/debian testing/main amd64 Packages
100 https://deb.debian.org/debian unstable/main amd64 Packages
100 /var/lib/dpkg/status
10.0-1+deb9u1 100
100 http://deb.debian.org/debian stable/main amd64 Packages
$ sudo apt install --reinstall -s -t experimental pulseaudio
Reading package lists.... Fact
Construction of the dependency tree
Reading status information.... Fact
0 updated, 0 newly installed, 1 reinstalled, 0 to be removed and 232 not
updated.
Inst pulseaudio[12.2-2] (12.2-2 Debian:testing, Debian:unstable[amd64])
Conf pulseaudio (12.2-2 Debian:testing, Debian:unstable[amd64])

as you can see, the pulseaudio testing and experimental packets are the
same.
there is apparently no solution.

I don't have a file ~/.pulse/

respectfully,

alain

Translated with www.DeepL.com/Translator

#773086#37
Date:
2018-12-05 15:07:15 UTC
From:
To:

Package: pulseaudio
Version: 12.2-2
Followup-For: Bug #773086

found a little solution

the script :

$ cat /usr/local/bin/sound.sh
#!/bin/bash

amixer -D pulse set -c 0 IEC958 100 unmute
sleep 10
amixer -D pulse set Master 1+ unmute

the desktop:

$ cat ~/.config/autostart/sound.desktop
[Desktop Entry]
Name=sound
GenericName=sound
Comment=unmute sound
Exec=/usr/local/bin/sound.sh
Terminal=false
Type=Application
X-GNOME-Autostart-enabled=true