File: NOTES

package info (click to toggle)
hotkey-setup 0.1-17
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 148 kB
  • ctags: 37
  • sloc: ansic: 243; sh: 111; makefile: 57
file content (43 lines) | stat: -rw-r--r-- 1,471 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
When the machine should be put to sleep in some fashion:

KEY_SLEEP signals Suspend to RAM (Suspend, technically called "standby")
KEY_SUSPEND signals Suspend to Disk (Hibernate, technically called "suspend"...)

KEY_MAIL is used in preference to KEY_EMAIL.

For functions that have not been assigned a named Linux kernel keycode,
with a value <=255, then the following aliases are used:

KEY_LOCK=$KEY_COFFEE
KEY_PRESENTATION=$KEY_F23

# This has been assigned 236 now
KEY_BATTERY=236

# Acer 1690, VGA toggle
KEY_VIDEOOUT=$KEY_F20

# Toshiba (and other) Tablets,
# the support to actually rotate the screen is only in very recent i810 drivers.
#KEY_ROTATESCREEN=$KEY_F21

# ThinkPad Fn+Spacebar (called "Zoom")
KEY_VIDEOMODECYCLE=$KEY_F22

# ThinkPad Fn+PgUp (called ThinkLight)
# On Apple laptop, under-keyboard lighting
KEY_LIGHT=$KEY_F19

# All the laptops except 1 Medion (Acer) I've seen using ACPI for the wifikey hotkey.
#KEY_WIFI=$KEY_CONNECT

Avoiding remapping already mapped hotkeys.  'atkbd.hk' contains a list of the keycodes
and KEY_NAME mappings used by the 'drivers/input/keyboard/atkbd.c' driver at boot-time.
This may be useful as a reference and for grepping out entries that don't actually need
to be matched.

  awk '/^setkeycodes/{x=strtonum("0x"$2);if(x>127)x-=(0xe000-128);sub("^.","",$3);print$3"="x }' *.hk \
  | xargs -d"\n" -n1 grep -c < key-constants | grep -cv 0

 -- Paul Sladen <ubuntu@paul.sladen.org>  Thu, 02 Mar 2006 04:00:09 +0000