Bug#350017: [Pkg-xfce-devel] Bug#350017: xfce4-panel: dies on suspend/resume caused by alsa suspend

Simon Huggins huggie at earth.li
Sat Jan 28 18:22:26 UTC 2006


On Thu, Jan 26, 2006 at 05:37:18PM +0100, Florian Lohoff wrote:
> on my ThinkPad T21 xfce4-panel gets killed on suspend/resume using apm
> from /etc/init.d/alsa suspend. This is caused by alsa killing all
> programs having opened a mixer or sound device. Alsa needs to kill all
> programs for me because it needs to unload the snd modules.

Ick.

> I have not included the mixer in the xfce4-panel so i would not expect
> xfce4-panel to open a source device of any kind. I can see this happen
> with strace:

> flo at audiobooks:~$ grep snd /tmp/file
> 19650 open("/dev/snd/controlC0", O_RDONLY) = 5

We can reproduce this.

This is an interesting bug.  The quick fix for you is to uninstall
xfce4-mixer and restart the panel.

The problem appears to be that the panel loads all available plugins
even if they are not displayed to get various bits of information out of
them so that they can be added later.

Most are then unloaded later on (and indeed periodically every 30
seconds through the panel's life) but the mixer plugin isn't.

It's the mixer plugin (linked against libasound2) that holds this file
open.

I haven't worked out why the mixer plugin can't be unloaded but that's
next on my list :)

In any case I thought you'd want to know about the work around.

On my system I can see that xfce-mcs-manager also holds that file open -
I imagine that's sound_settings.so doing it from xfce4-mixer again.

-- 
Simon  [ huggie at earth.li ] *\  "Everyone who is alive, please raise  \**
****** ]-+-+-+-+-+-+-+-+-[ **\   your hand. See, told ya," - Rimmer.  \*
****** [  Htag.pl 0.0.22 ] ***\                                        \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20060128/50da1632/attachment-0001.pgp


More information about the Pkg-xfce-devel mailing list