[Pkg-utopia-maintainers] Bug#625926: gnome-applets: mixer_applet2 fails to associate with sound card when auto-logged in at first boot

Daniel Kahn Gillmor dkg at fifthhorseman.net
Tue May 10 01:57:08 UTC 2011


On Sat, 07 May 2011 10:39:16 +0200, Josselin Mouette <joss at debian.org> wrote:
> What you describe sounds like a consolekit startup problem when using
> systemd.
 [...]
> So that would be because permissions on /dev/snd/* devices, set by udev
> through a consolekit helper, are not set when your session starts, but
> they are properly set up later (which means CK has properly registered
> your session).

Hm.  Actually, i'm able to reproduce #625926 without systemd-sysv at all
-- it seems that the permissions on /dev/snd/* *are* getting set
properly as long as the session is in the foreground, but there's no
guarantee that the login session is actually foregrounded when the mixer
applet starts up.

For example, if i go ahead and log in via gdm3 and then immediately
switch to vt1 (ctrl+alt+f1) while the gnome session loads, then the
permissions on /dev/snd/* are restricted during mixer applet
initialization, and the icon gets in its "×" state.

Given that it seems the modern dynamic permissioning happens immediately
upon chvt, it seems like mixer_applet2 needs to subscribe to some
notification feed and update its own state when these things change.

Does such a feed exist?

More generally, how is mixer_applet2 supposed to interact with a
dynamically-appearing (or disappearing) audio device (e.g. a USB
device)?  Perhaps these cases are close enough that they could be
treated identically?

If the right notifications exist, maybe this bug should be assigned back
to gnome-applets.  If they don't exist, maybe it should be assigned to
whichever *kit is supposed to generate them, then once that's fixed,
clone and re-assign the clone to gnome-applets.

I think, anyway :/  I still don't really understand the way all these
pieces fit together in a "modern" freedesktop-driven system.

Regards,

             --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 965 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20110509/4a2687ea/attachment-0001.pgp>


More information about the Pkg-utopia-maintainers mailing list