Luckily (after half an hour of googling) I found this in gnome power manager mailing list.
Have a look at /etc/dbus-1/system.d/hal.conf and change the at_console="true" line to user="username_of_you". Then restart dbus.
And that made the trick :D
(I also added myself to powerdev group... you never know ;) )
adduser [myuser] powerdev
Awesome, man!
ReplyDeleteI've been reading about this all day. I use Debian testing and, it refused to hibernate or suspend. Now, it works!
And was so simple.
Nice discover of you. I problably wouldn't find that tread in Google.
Cheers
Awesome, man!
ReplyDeleteI've been reading about this all day. I use Debian testing and, it refused to hibernate or suspend. Now, it works!
And was so simple.
Nice discover of you. I problably wouldn't find that tread in Google.
Cheers [brunosilva.org]
I'm glad it helped ;)
ReplyDeletestezz
As the file /usr/share/doc/gnome-power-manager/README.Debian ssays, it's sufficient to add the user you want to the 'powerdev' group. If you study the /etc/dbus-1/system.d/hal.conf configuration file, you will notice right below the '<policy at_console="true">' entry, an entry named '<policy group="powerdev">' which allows said group to send anything under "org.freedesktop.Hal.Device.SystemPowerManagement".
ReplyDeleteAs the file /usr/share/doc/gnome-power-manager/README.Debian says, it's sufficient to add the user you want to the 'powerdev' group. If you study the /etc/dbus-1/system.d/hal.conf configuration file, you will notice right below the '<policy at_console="true">' entry, an entry named '<policy group="powerdev">' which allows said group to send anything under "org.freedesktop.Hal.Device.SystemPowerManagement".
ReplyDeleteWell I did that as well, as I said, you never know :D
ReplyDeletestezz
now the question is, why doesn't the debian default configuration *do the right thing* and add new users to the powerdev group? security, presumably, but before doing this fix, I could already do "gnome-power-cmd hibernate" froma command line and hibernate without elevated priviledges, because of the at_console="true" line. So it's a wash, security wise, it just makes the gooey buttons not work.
ReplyDeletebut if you want automagic, i guess you use ubuntu :)
oh, and the suspend/hibernate f-key functions worked, AS LONG AS gnome wasn't running, or more specifically gnome-power-manager. So I think I should put this to the package maintainer, since I fail to see any security policy being enforced clearly.
ReplyDeleteI don't know exactly why it doesn't add new users, but it's pretty annoying to remember to do that each time you create one...
ReplyDelete