hibernate/sleep function in hoary
Marius Gedminas
marius at pov.lt
Tue Feb 15 12:41:49 UTC 2005
On Tue, Feb 15, 2005 at 01:29:40PM +0100, Simon Santoro wrote:
> | 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.)
> yes, I see the keycode with xev. it's 223. I tryed to map it with the
> keybindings_commands, but this does'nt work either (but this is probably
> a different issue).
I believe you need to specify the keysym, not the keycode there. If it
does not have a keysym assigned, you can run the following command
xmodmap -e 'keycode 223 = F20'
(you can add it to ~/.gnomerc) and then use F20 in metacity's
keybindings.
Or perhaps just entering 0xd3 would work? I'm not sure.
> |>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.
>
> that would be nice :)
Perhaps you should file a bug in bugzilla.ubuntu.com -- say that you
have mapped this key to the Sleep function in keyboard bindings dialog,
but it does not actually do anything.
Marius Gedminas
--
Just a note: quantum gravity discussions are _clearly_ on-topic in
c.l.py.
-- Peter Hansen on comp.lang.python
-------------- 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/9db27ed2/attachment.sig>
More information about the ubuntu-users
mailing list