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

Michael Meskes meskes at debian.org
Wed Jan 11 14:09:07 UTC 2012


On Wed, Jan 11, 2012 at 01:05:06PM +0100, Matthijs Kooijman wrote:
> 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?).

Did you look into PowerDevilRunning() in the same file? This function gets the
module information from KDE. I guess the Gnome version could work similarly.

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

Actually the dbus version would be preferable if doable.

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at googlemail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL





More information about the Pkg-acpi-devel mailing list