Re: [gpm] GNOME Power Manager on Debian Etch



Le lundi 13 f�ier 2006 �1:48 +0000, Richard Hughes a �it :
> On Sun, 2006-02-12 at 17:25 +0100, Julien Valroff wrote:
> > Hi,
> > 
> > Since dbus, hal and co. were updated this night in Debian etch, I could
> > compile and install a Debian package of GNOME Power Manager (based on
> > 0.3.4 package from Ubuntu).
> > 
> > I notice 2 annoying things:
> > 
> > * hibernate/suspend do not work:
> > Nothing happens when using the context menu of the notification area
> > icon. I usually use suspend2, which works great my laptop.
> > Launching manually /usr/share/hal/scripts/hal-system-power-hibernate
> > successfully does a suspend-to-disk.
> 
> Have you edited /etc/dbus/system.d/hal.conf and added your user ID? I
> don't think debian has the at_console PAM stuff needed for this to "just
> work" yet -- Alejandro, can you confirm as I think you mentioned you
> bugzilla'd the debian hal package with a few fixes.

This problem was fixed as follows:
1/ Add the wanted user(s) to the hal group: adduser foo hal

2/ Edit /etc/dbus-1/system.d/hal.conf (note the -1) and change the
"policy" part to <policy group="108"> (where 108 is the id of the hal
group on your system)

-- Alternatively, if you want to authorize only 1 user, you can manage
the policy with the user id, eg.: <policy user="1032">

3/ If using hibernate also for suspend-to-ram, apply the attached patch
to /usr/share/hal/scripts/hal-system-power-suspend

> > * Unknown time:
[...]
> If a editing hal.conf, and a newer g-p-m does not fix things, can you
> grab a g-p-m and hald verbose trace please, the details for this are
> found here: http://www.gnome.org/projects/gnome-power-manager/bugs.html

I do this immediately as changing hal policy hasn't fixed this problem.

Thanks again for your answers.

Cheers,
Julien
--- hal-system-power-suspend~	2006-02-13 18:25:07.000000000 +0100
+++ hal-system-power-suspend	2006-02-13 18:24:50.000000000 +0100
@@ -49,6 +49,10 @@
 	if [ -x "/usr/bin/powersave" ] ; then
 	    $POWERSAVED_SUSPEND2RAM
 	    RET=$?
+	elif [ -x "/usr/sbin/hibernate" ] ; then
+	    # Use hibernate configured for suspend-to-ram
+	    /usr/sbin/hibernate -F/etc/hibernate/ram.conf
+	    RET=$?
 	elif [ -x "/usr/sbin/pmi" ] ; then
 	    /usr/sbin/pmi action suspend force
 	    RET=$?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]