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 12:07 AM, Rodrigo Javier Tobar Carrizo < [email protected]> wrote: > Bob Hepple wrote: > >> Under gnome, it just never faults, comes up every time. I wonder what it >> might be using to do the job. >> > > It uses the gnome-power-manager utility (the same that displays the AC or > battery icon on the gnome-applet). If you start that one under fluxbox, > you'll be able to use your computer's "sleep" button (or similar) to suspend > it. It has worked without problems for me during the last 2 years. > > Cheers! > > Rodrigo > Interesting - it looks like my suspend button (Fn-F1 FWIW) isn't seen by gnome-power-manager. In fact, xev(1) returns XF86Sleep - so I put this into .fluxbox/keys: XF86Sleep :ExecCommand mysleep mysleep is just this: xscreensaver-command -lock [ -d /proc/acpi/battery/BAT0 ] && sudo pm-suspend --auto-quirks On the other hand, g-p-m _does_ respond to my power button (which is an ACPI event as Kevin says) - it hibernates. /etc/acpi/actions/power.sh on fedora just looks to see if there is a gnome-power-manager and exits if it find one. (Otherwise it does a shutdown -h now). Presumably g-p-m then gets the event? How? So if my lappy doesn't generate ACPI for the suspend key, how do I tell g-p-m to go suspend? "pm-suspend --auto-quirks" doesn't seem to be enough. 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. Hmmmmm Thanks 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 _______________________________________________ Fluxbox-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fluxbox-users