[PATCH] Keymap info for Samsung Q45 (and Q70)
Sam Morris
sam at robots.org.uk
Sun Apr 13 07:29:35 PDT 2008
As follows:
diff --git a/fdi/information/10freedesktop/30-keymap-misc.fdi b/fdi/information/10freedesktop/30-keymap-misc.fdi
index d33f601..3a33914 100644
--- a/fdi/information/10freedesktop/30-keymap-misc.fdi
+++ b/fdi/information/10freedesktop/30-keymap-misc.fdi
@@ -117,6 +117,21 @@
<append key="input.keymap.data" type="strlist">e009:brightnessdown</append> <!-- Fn-Down Brightness down -->
<append key="info.capabilities" type="strlist">input.keymap</append>
</match>
+ <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" string="SQ45S70S">
+ <append key="input.keymap.data" type="strlist">e003:battery</append> <!-- Fn+F2 battery icon -->
+ <!-- Fn+F3 euro; generates these scancodes according to showkeys(1): 0x38 0x52 0xd2 0x4f 0xcf 0x50 0xd0 0x48 0xc8 0xb8 -->
+ <append key="input.keymap.data" type="strlist">e002:displaytoggle</append> <!-- Fn+F4 CRT/LCD; this does not work: the kernel still logs "Unknown key pressed (translated set 2, code 0x82 on osa0060/serio0). Use 'setkeycodes e002 <keycode>' to make it known." -->
+ <append key="input.keymap.data" type="strlist">e004:prog1</append> <!-- Fn+F5 backlight on/off; input.h has KEY_BRIGHTNESS_CYCLE but 'make check' does not accept it -->
+ <append key="input.keymap.data" type="strlist">e031:prog2</append> <!-- Fn+F7 run Samsung Magic Doctor (keypress event is generated twice) -->
+ <append key="input.keymap.data" type="strlist">e033:prog3</append> <!-- Fn+F8 switch power mode (battery/dynamic/performance) -->
+ <append key="input.keymap.data" type="strlist">e006:wlan</append> <!-- Fn+F9 Turn On/Off Wireless -->
+ <append key="input.keymap.data" type="strlist">e077:f22</append> <!-- Fn+F10 Touchpad on -->
+ <append key="input.keymap.data" type="strlist">e079:f22</append> <!-- Fn+F10 Touchpad off -->
+ <!-- Fn+F12 scroll lock(?); generates these scancodes according to showkeys(1): 0x46 0xc6 -->
+ <append key="input.keymap.data" type="strlist">e008:brightnessup</append> <!-- Fn+Up Brightness up -->
+ <append key="input.keymap.data" type="strlist">e009:brightnessdown</append> <!-- Fn+Down Brightness down -->
+ <append key="info.capabilities" type="strlist">input.keymap</append>
+ </match>
</match>
<match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" string="TOSHIBA">
Does anyone know what KEY_BRIGHTNESS_CYCLE does? Would it be more
appropriate than 'prog1' for the 'toggle LCD backlight on/off' key? I
tried putting it in the file but HAL would not accept it.
I'd also like to know if anyone can suggest how to get e002 to be
recognised as the 'external display toggle' key; even though running
'loadkeys e002 0x1af' succeeds, the kernel still complains when I press
it.
--
Sam Morris <sam at robots.org.uk>
More information about the hal
mailing list