Re: fluxbox and suspend

Bob Hepple <[email protected]>
Newsgroups gmane.comp.window-managers.fluxbox.user
Message-ID <[email protected]>
On Tue, Oct 26, 2010 at 2:04 PM, Bob Hepple <[email protected]> wrote:
>
> Another interesting experiment - I can tie the power button to 'suspend' instead of 'hibernate' in g-p-m and it looks like it works. I'll try it out for a while and see if there is an improvement.
>

... well that didn't work out so well! Under fluxbox, when g-p-m wants
to suspend it thinks about it for about 5 seconds and then does the
business. Unfortunately it doesn't always come back up again.

Under gnome, by contrast, 'suspend' happens almost instantly and it
comes back up much more reliably. There is some secret business
happening here. Unfortunately, the man pages (upower, upowerd) and the
g-p-m online doco show almost no detail at all.

I tried using strace on g-p-m but it showed nothing that made much
sense, so state of play is that none of the following work reliably
for fluxbox:

gnome-power-manager

pm-suspend [--auto-quirks]

echo [-n] mem > /sys/power/state

dbus-send --system --print-reply --dest=org.freedesktop.Hal
/org/freedesktop/Hal/devices/computer
org.freedesktop.Hal.Device.SystemPowerManagement.Suspend

dbus-send --system --print-reply --dest="org.freedesktop.UPower"
/org/freedesktop/UPower org.freedesktop.UPower.Suspend

Looks like if I want reliable suspend, I'm going to have to stick with
gnome on the laptop - apart from the fact that gnome generally sucks,
it hurts doubly that the main reason I have to use it is that they've
failed to document what's going on under the covers. Gnomes don't do
'man' by the look of it! In fact, the freedesktop project seems to
have a general abhorrence to documentation.

Sigh! Can no-one save me from the clutches of gnome?


Bob

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.