Bug#255793: capplets: gnome-settings-daemon grabs the mixer and won't let go

Martin Schwenke Martin Schwenke <martin@meltin.net>, 255793@bugs.debian.org
Wed, 23 Jun 2004 13:40:50 +1000


Package: capplets
Version: 1:2.6.1-7
Severity: normal


My sound module (cs46xx) needs to be unloaded when I suspend.  It has
always been this way - although there are moves to fix it.  However,
suddenly I can't remove the sound module because something has the
sound device open:

# lsof | grep snd
gnome-set 15944    martins   34u   CHR      116,0                2624 /dev/snd/controlC0
esd       15954    martins  mem    CHR     116,16                2800 /dev/snd/pcmC0D0p
esd       15954    martins    6u   CHR     116,16                2800 /dev/snd/pcmC0D0p

I use esd so, at suspend time, I can put esd into standby-mode and
remove the sound module.  Now I can't do that because
gnome-settings-daemon has the mixer open.

The worst thing about this is I haven't assigned any volume changing
functionality to any keys, so I don't want anything to touch the
mixer, and there seems to be no way of changing this stupid behaviour.
Nothing in a control panel, nothing in gconf-editor.

Notes:

* Turning off the "Enable sound server startup" and killing
  gnome-settings-daemon, and having it restart, doesn't help.

  Note: If I turn the above on, surely I want to multiplex my sound
  and I don't want anything permanently grabbing the device?

* I have "Sounds for events" disabled".

* I have no keys bound to adjust sound volume or whatever.

* Switching off "Sound an audible bell" doesn't help.

Why does gnome-settings-daemon have the mixer open when it isn't going
to use it?  Perhaps it needs a "Don't mess with sound at all"
checkbox?  Perhaps it should check to see if it is going to need the
mixer before opening it?  Hmmm...

I've decided to work around it by renaming the default mixer device,
killing gnome-settings-daemon, waiting for it to restart and then
renaming the mixer device back again...  That means only need to work
around the problems once every login... unless, of course,
gnome-settings-daemon is restarted somewhere along the line...

Thanks...

peace & happiness,
martin

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.6
Locale: LANG=C, LC_CTYPE=C

Versions of packages capplets depends on:
ii  capplets-data             1:2.6.1-7      configuration applets for GNOME 2 
ii  gnome-control-center      1:2.6.1-7      The GNOME Control Center for GNOME
ii  gnome-desktop-data        2.6.1-2        Common files for GNOME 2 desktop a
ii  gnome-icon-theme          1.2.3-1        GNOME Desktop icon theme
ii  gnome-panel               2.6.1-4        Launch and/or dock GNOME 2 applica
ii  gnome-session             2.6.1-5        The GNOME 2 Session Manager
ii  libart-2.0-2              2.3.16-5       Library of functions for 2D graphi
ii  libasound2                1.0.5-1        Advanced Linux Sound Architecture 
ii  libatk1.0-0               1.6.1-2        The ATK accessibility toolkit
ii  libaudiofile0             0.2.6-4        Open-source version of SGI's audio
ii  libbonobo2-0              2.6.2-2        Bonobo CORBA interfaces library
ii  libbonoboui2-0            2.6.1-1        The Bonobo UI library
ii  libc6                     2.3.2.ds1-13   GNU C Library: Shared libraries an
ii  libeel2-2                 2.6.2-1        Eazel Extensions Library (for GNOM
ii  libesd-alsa0 [libesd0]    0.2.29-1       Enlightened Sound Daemon (ALSA) - 
ii  libfontconfig1            2.2.2-2        generic font configuration library
ii  libfreetype6              2.1.7-2.1      FreeType 2 font engine, shared lib
ii  libgail-common            1.4.1-1        GNOME Accessibility Implementation
ii  libgail17                 1.4.1-1        GNOME Accessibility Implementation
ii  libgconf2-4               2.6.1-2        GNOME configuration database syste
ii  libgcrypt7                1.1.90-1.1     LGPL Crypto library - runtime libr
ii  libglade2-0               1:2.4.0-1      Library to load .glade files at ru
ii  libglib2.0-0              2.4.2-1        The GLib library of C routines
ii  libgnome-desktop-2        2.6.1-2        Utility library for loading .deskt
ii  libgnome-keyring0         0.2.1-2        GNOME keyring services library
ii  libgnome2-0               2.6.1-5        The GNOME 2 library - runtime file
ii  libgnomecanvas2-0         2.6.1.1-2      A powerful object-oriented display
ii  libgnomeui-0              2.6.1.1-2      The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0            2.6.1.1-3      The GNOME virtual file-system libr
ii  libgnutls10               1.0.4-3        GNU TLS library - runtime library
ii  libgpg-error0             0.7-1          library for common error values an
ii  libgtk2.0-0               2.4.3-1        The GTK+ graphical user interface 
ii  libice6                   4.3.0.dfsg.1-5 Inter-Client Exchange library
ii  libjpeg62                 6b-9           The Independent JPEG Group's JPEG 
ii  libmetacity0              1:2.8.1-3      Common library of lightweight GTK2
ii  libnautilus2-2            2.6.3-2        libraries for nautilus components 
ii  liborbit2                 1:2.10.2-1.1   libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0             1.4.0-4        Layout and rendering of internatio
ii  libpopt0                  1.7-4          lib for parsing cmdline parameters
ii  libsm6                    4.3.0.dfsg.1-5 X Window System Session Management
ii  libstartup-notification0  0.6-2          library for program launch feedbac
ii  libtasn1-2                0.2.7-2        Manage ASN.1 structures (runtime)
ii  libx11-6                  4.3.0.dfsg.1-5 X Window System protocol client li
ii  libxext6                  4.3.0.dfsg.1-5 X Window System miscellaneous exte
ii  libxft2                   2.1.2-6        FreeType-based font drawing librar
ii  libxklavier8              1.02-2         X Keyboard Extension high-level AP
ii  libxml2                   2.6.10-3       GNOME XML library
ii  libxrandr2                4.3.0.dfsg.1-5 X Window System Resize, Rotate and
ii  libxrender1               0.8.3-7        X Rendering Extension client libra
ii  nautilus                  2.6.3-2        file manager and graphical shell f
ii  xlibs                     4.3.0.dfsg.1-5 X Window System client libraries m
ii  zlib1g                    1:1.2.1.1-3    compression library - runtime

-- no debconf information