Gentoo Archives: gentoo-user

From: Iain Buchanan <iaindb@××××××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] tuxonice : suspend/resume via button on keyboard?
Date: Fri, 22 Aug 2008 03:30:55
Message-Id: 20080822125931.12ad4b0f@netspace.net.au
In Reply to: [gentoo-user] tuxonice : suspend/resume via button on keyboard? by "Stefan G. Weichinger"
1 On Thu, 21 Aug 2008 23:03:31 +0200
2 "Stefan G. Weichinger" <lists@×××××.at> wrote:
3
4 >
5 > I am very impressed right now as I see my main workstation suspend to
6 > RAM and resume within seconds, even with 4 gigs of RAM.
7
8 it's nice huh? I don't know why everyone doesn't try it - people think
9 suspending / hibernating is only for laptops!
10
11 > The suspend to swap isn't fully working yet, but anyway, this machine
12 > is on a UPS etc ... I am happy with S2R ...
13 >
14 > My question:
15 >
16 > I have a nice cherry-keyboard here which has a button labelled
17 > "on/off" ...
18 >
19 > how could I make tuxonice suspend AND resume when I press that button?
20
21 If you run gnome-power-manger (configure through
22 gnome-power-preferences) you might find General > "When the suspend
23 button is pressed" does something for that key.
24
25 Otherwise, go to system preferences > keyboard shortcuts. From there
26 you may be able to map the button to the "suspend" action.
27
28 This all requires gnome. Don't know the kde way. Otherwise you can
29 use X tools as well (xmodmap, setxkbmap or whatever the tools are,
30 can't remember!)
31
32 > That would make it even cooler, not having to crawl below the desk to
33 > press the button on the box itself ...
34
35 you could also make it a launcher on your panel / desktop.
36
37 HTH,
38 --
39 Iain Buchanan <iaindb@××××××××××××.au>
40
41 Each man is his own prisoner, in solitary confinement for life.

Replies

Subject Author
Re: [gentoo-user] tuxonice : suspend/resume via button on keyboard? "Stefan G. Weichinger" <lists@×××××.at>