which package owns the gnome quit button?
Matt Price
matt.price at utoronto.ca
Wed Jan 16 19:27:30 UTC 2008
On Wed, 2008-01-16 at 18:11 +0200, Marius Gedminas wrote:
> On Tue, Jan 15, 2008 at 02:29:30PM -0800, Matt Price wrote:
> > as mentioned earlier in this thread, suspend now works for me using
> > pm-suspend, hibernate -F /etc/hibernate/ram.conf, and shutting laptop
> > lid (also works from the gdm login menu); but it fails if i try to quit
> > from the gnome system menu or the gnome panel 'quit' button. i'm just
> > trying to find out who owns these applications so i can look at the code
> > to see what process they invoke to initiate a suspend or hibernate
> > event. anyone know offhand?
>
> gnome-power-manager is another entry point (the battery icon in the
> notification area has suspend and hibernate menu options), and the only
> one that I remember the package name offhand.
>
yeah, that was my thought, but nothing obvious jumps out.
> Take a look at these scripts:
> /usr/bin/gnome-power-cmd.sh
> /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux
> /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux
>
> I'm pretty sure everything goes through a DBUS message to HAL which
> executes the appropriate script.
this the important part of gnomepower-cmd.sh:
> execute_dbus_method ()
> {
> dbus-send --session --dest=org.freedesktop.PowerManagement \
> --type=method_call --print-reply --reply-timeout=2000 \
> /org/freedesktop/PowerManagement \
> org.freedesktop.PowerManagement.$1
> if [ $? -eq 0 ]; then
> echo "Failed"
> fi
> }
>
> if [ "$1" = "suspend" ]; then
> echo "Suspending"
> execute_dbus_method "Suspend"
i don't really understand dbus -- does this message get to hal somehow?
> (The script itself tries to determine
> which of the zillion suspend solutions you have installed and calls that
> one.)
not anymore, at least not in hardy. in hardy only pm-utils is
supported.
thanks though, will work with this.
matt
>
> Marius Gedminas
--
Matt Price
matt.price at utoronto.ca
More information about the Ubuntu-devel-discuss
mailing list