KubuntuLaptopKeycodes

Differences between revisions 4 and 6 (spanning 2 versions)
Revision 4 as of 2006-07-09 13:59:09
Size: 1449
Editor: clj46-234
Comment: merged same keycodes
Revision 6 as of 2006-07-10 20:16:29
Size: 2484
Editor: clj46-234
Comment: added request for lshal -m
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
I am working on KubuntuLaptopButtons spec for Edgy and would like to get more reports on keycodes from laptop users. I am working on KubuntuLaptopButtons spec for Edgy and would like to get more reports on keycodes and HAL events from laptop users.
Line 3: Line 3:
Please add your notebook (with your nick) to this table - if you have a key which is not listed, please add new row. Please add your notebook (with your nick) to this table - if you have a key which is not listed yet, please add new row. If you get report, put it into table in following format: {{{keycode / event}}}:
Line 6: Line 6:
|| Sleep || 223 || 223 || || Sleep || 223 / sleep || 223 ||
Line 8: Line 8:
|| Battery/Power modes || 241 || 241 ||
|| Info || 245 || ||
|| Presentation || 205 || ||
|| Mute || 160 || 160 ||
|| Volume Down || 174 || ||
|| Volume Up || 176 || ||
|| Eject || || 36 ||
|| Battery/Power modes || 241 / battery || 241 ||
|| Info || 245 / info || ||
|| Presentation || 205 / presentation || ||
|| Mute || 160 / mute || 160 ||
|| Volume Down || 174 / volumedown || ||
|| Volume Up || 176 / volumeup|| ||
Line 18: Line 17:
Note: you can get keycode by running {{{xev}}} program from command line (termina/Konsole) and then pressing the special laptop keys and searching for keycode, for example output == How to get keycode ==
Y
ou can get keycode by running {{{xev}}} program from command line (terminal/Konsole) and then pressing the special laptop keys and searching for keycode, for example output:
Line 39: Line 39:

== How to get HAL events ==
You can get HAL events by running {{{lshal -m}}} program from command line (terminal/Konsole) and the pressing special laptop keys which will generate output like this:
{{{Start monitoring devicelist:
-------------------------------------------------
platform_i8042_i8042_Kbd_Port_logicaldev_input condition ButtonPressed = sleep
platform_i8042_i8042_Kbd_Port_logicaldev_input condition ButtonPressed = battery
platform_i8042_i8042_Kbd_Port_logicaldev_input condition ButtonPressed = help
platform_i8042_i8042_Kbd_Port_logicaldev_input condition ButtonPressed = presentation
platform_i8042_i8042_Kbd_Port_logicaldev_input condition ButtonPressed = mute
platform_i8042_i8042_Kbd_Port_logicaldev_input condition ButtonPressed = volumedown
platform_i8042_i8042_Kbd_Port_logicaldev_input condition ButtonPressed = volumeup
}}}

I am working on KubuntuLaptopButtons spec for Edgy and would like to get more reports on keycodes and HAL events from laptop users.

Please add your notebook (with your nick) to this table - if you have a key which is not listed yet, please add new row. If you get report, put it into table in following format: keycode / event:

Key

HP nw8240 BR LukaRenko

Toshiba A10 Satellite BR ["Hobbsee"]

Sleep

223 / sleep

223

Hibernate

165

Battery/Power modes

241 / battery

241

Info

245 / info

Presentation

205 / presentation

Mute

160 / mute

160

Volume Down

174 / volumedown

Volume Up

176 / volumeup

Lock screen

146

How to get keycode

You can get keycode by running xev program from command line (terminal/Konsole) and then pressing the special laptop keys and searching for keycode, for example output:

KeyPress event, serial 28, synthetic NO, window 0x5000001,
    root 0x76, subw 0x0, time 1400690129, (70,50), root:(74,102),
    state 0x0, keycode 223 (keysym 0x1008ff10, XF86Standby), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x5000001,
    root 0x76, subw 0x0, time 1400690129, (70,50), root:(74,102),
    state 0x0, keycode 223 (keysym 0x1008ff10, XF86Standby), same_screen YES,
    XLookupString gives 0 bytes:

An easier way to do this is to run:

xev | grep keycode

How to get HAL events

You can get HAL events by running lshal -m program from command line (terminal/Konsole) and the pressing special laptop keys which will generate output like this: {{{Start monitoring devicelist:


platform_i8042_i8042_Kbd_Port_logicaldev_input condition ButtonPressed = sleep platform_i8042_i8042_Kbd_Port_logicaldev_input condition ButtonPressed = battery platform_i8042_i8042_Kbd_Port_logicaldev_input condition ButtonPressed = help platform_i8042_i8042_Kbd_Port_logicaldev_input condition ButtonPressed = presentation platform_i8042_i8042_Kbd_Port_logicaldev_input condition ButtonPressed = mute platform_i8042_i8042_Kbd_Port_logicaldev_input condition ButtonPressed = volumedown platform_i8042_i8042_Kbd_Port_logicaldev_input condition ButtonPressed = volumeup }}}

KubuntuLaptopKeycodes (last edited 2009-03-02 11:17:29 by 195-241-206-92)