Hi,

I don't know if this is the right place to send this small patch. In case
it is not the place, sorry for the noise (... and do you know the right
place :)? Thanks).

It is just just some remapping in hwdb for a few hotkeys. If you need any
rework in the patch or whatever, please tell me.

There are also two keys not working (not included in the patch):
 KEYBOARD_KEY_158=wlan
 KEYBOARD_KEY_157=mute

udevadm test-builtin says this:

keyboard: mapping scan code 343 (0x157) to key code 113 (0x71)
Error calling EVIOCSKEYCODE: Invalid argument
keyboard: mapping scan code 344 (0x158) to key code 238 (0xee)
Error calling EVIOCSKEYCODE: Invalid argument

I guess it is a problem because of the toshiba_acpi driver has no scancode
for 157/158. I will take a look on that in order to create also a patch
there if needed.

Regards,
JI
From 35a177a0197020ca9d18d42c66a61a71828aac12 Mon Sep 17 00:00:00 2001
From: Jose Ignacio Naranjo <[email protected]>
Date: Sun, 17 Nov 2013 21:11:34 +0100
Subject: [PATCH] hwdb: Support for Toshiba Satellite U940 hotkeys

---
 hwdb/60-keyboard.hwdb | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/hwdb/60-keyboard.hwdb b/hwdb/60-keyboard.hwdb
index 995986d..72cb993 100644
--- a/hwdb/60-keyboard.hwdb
+++ b/hwdb/60-keyboard.hwdb
@@ -1034,6 +1034,13 @@ keyboard:dmi:bvn*:bvr*:bd*:svnTOSHIBA*:pnSatellite*P75-A:pvr*
  KEYBOARD_KEY_a9=switchvideomode                        # switch display outputs
  KEYBOARD_KEY_d4=wlan                                   # RF Switch Off
 
+# Satellite U940
+keyboard:name:Toshiba*input*device:dmi:bvn*:bvr*:bd*:svnTOSHIBA*:pnSATELLITEU940:pvr*
+ KEYBOARD_KEY_13c=brightnessdown
+ KEYBOARD_KEY_13d=brightnessup
+ KEYBOARD_KEY_13e=switchvideomode
+ KEYBOARD_KEY_13f=f21                                   # Touchpad toggle
+
 ###########################################################
 # VIA
 ###########################################################
-- 
1.8.3.2

_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to