[Pkg-pulseaudio-devel] Bug#556971: #556971: pulseaudio does not remember volume settings, always set to 0

Ludovico Cavedon cavedon at debian.org
Thu Dec 24 01:04:37 UTC 2009


Hi,
I found the cause of the issue. This is what happens of first boot/login
(i.e., when there is no ~/.pulse directory).

* boot:
/etc/init.d/alsa-utils start # set volume to default levels
* login:
pulseaudio --start # keep current volume (no saved one available)
* logout:
#pulseaudio keeps running!!
* reboot
/etc/init.d/alsa-utils stop # save current volume and mute mixer
kill pulseudio # save current volume (oops, mixer is mute!)


Second boot/login:
* boot:
/etc/init.d/alsa-utils start # set volume to saved one (good!)
* login:
pulseaudio --start # restore volume to saved one (oops, muted!)

Note that alsa and pulseaudio store volume separately.

I am attaching an easy proof-of-concept fix: prevent alsa-utils from
zeroing the mixer. It work for me.

But I would not blame alsa for doing that. I'd rather think that we
should ensure that pulseaudio gets stopped before "alsa-utils stop" is
called or when the user is logged out.

Thanks,
Ludovico

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pulseaudio-zero-volume.patch
Type: text/x-diff
Size: 488 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-pulseaudio-devel/attachments/20091224/c1e97a13/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-pulseaudio-devel/attachments/20091224/c1e97a13/attachment-0001.pgp>


More information about the Pkg-pulseaudio-devel mailing list