hibernate/sleep function in hoary
Marius Gedminas
marius at pov.lt
Tue Feb 15 11:37:30 UTC 2005
On Tue, Feb 15, 2005 at 08:03:14AM +0100, Simon Santoro wrote:
> I tryed the suspend to RAM function in Hoary and it worked (by executing
> the /etc/acpi/sleep.sh script), but I can find a way to map my sleep key
> of the laptop to execute that script.
Do you have acpid and acpi-support installed?
What happens when you press your sleep key? Does an entry appear in
/var/log/acpid? When I press Fn+F4 on my Thinkpad I see
received event "ibm/hotkey HKEY 00000080 00001004"
/etc/acpi/events/ibm-sleepbtn recognizes this key and tells acpid to run
/etc/acpi/sleep.sh.
If you see an entry in /var/log/acpid, but nothing happens, then you
might need to add a config file in /etc/acpi/events.
What sort of laptop do you have?
> In the "Keyboard Shortcuts" menu
> in gnome I can find a "Sleep" Action, and the sleep key of the Laptop
> maps to 0xdf, but it does nothing.
If you do not get an ACPI event in /var/log/acpid, but see an actual X
keycode (e.g. with xev), then forget about /etc/acpi/events. However I
am not sure what is the right way to configure sleep in this case.
(I would start up gconf-editor, and edit /apps/metacity/keybinding_commands
and /apps/metacity/global_keybindings to map the Sleep key to the sleep
script, but I am sure this is not the Right Way.)
> Is there another way to execute that
> script when i press the sleep button? What is the correct way to
> configure it?
My understanding is that it should just work out of the box without the
need to configure anything manually.
Marius Gedminas
--
I'm a shareware signature! Send $2 if you use me, $10 for a manual.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050215/79474ab6/attachment.sig>
More information about the ubuntu-users
mailing list