[Pkg-acpi-devel] Bug#655394: [PATCH] Let acpi-support not handle power stuff if gnome3 is handling it already

Matthijs Kooijman matthijs at stdin.nl
Wed Jan 11 12:05:06 UTC 2012


Hey folks,

I also encountered this bug: both gnome3 and acpid were handling
powerbutton presses.

A bit of digging showed that the gnome-power-manager has been deprecated
and the relevant parts of it have been integrated into
gnome-settings-daemon since 3.1.4. This means the current check for
gnome-power-manager is no longer sufficient.

The attached patch makes acpi-support check if gnome-settings-daemon is
running, but only if the installed version is 3.1.4 or newer.

This check might be a bit of a hack right now, but I guess the entire
"is process X running, then don't handle the key" is in a way. I guess
the "perfect" solution would be to connect to gnome-settings-daemon and
find out if the "power" and/or "media-keys" plugins are really enabled
(like what seems to happen for dcop?).

It seems something like this could happen through DBus, but
gnome-settings-daemon is only active on the session bus and I doubt it's
possible to implement this reliably (since you don't know where the dbus
session for the user lives?).

Having said that, I guess this patch is a sufficient solution?

Gr.

Matthijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnome3-acpi-support.diff
Type: text/x-diff
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-acpi-devel/attachments/20120111/a3548048/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-acpi-devel/attachments/20120111/a3548048/attachment.pgp>


More information about the Pkg-acpi-devel mailing list