You are not logged in.

#1 2011-12-14 11:42:39

MrZYX
Member
From: Hannover, Germany
Registered: 2011-12-14
Posts: 6
Website

Dell XPS 15 special touch keys

Hi,
I own a Dell XPS 15 (L502x), it has three special touch keys which I would like to use as launchers. However one does nothing, the second decreases display brightness and the third skips the currently playing song. Of course there are regular multimedia keys who already do these jobs. I'm using Gnome3 and here are my observations:

/dev/input/event0
first touch key (settings)
second touch key
third touch key (audio settings)
x
next song multimedia key

/dev/input/event9
brightness down multimedia key


anotation: key pressed, event

mrzyx@mrzyx-laptop ~ % getscancodes /dev/input/event0
Input driver version is 1.0.1
Input device ID: bus 0x11 vendor 0x1 product 0x1 version 0xab41
Input device name: "AT Translated Set 2 keyboard"
219 (0xdb) <- first touch key, press
45 (0x2d) <- first touch key, press
45 (0x2d) <- first touch key, release
219 (0xdb) <- first touch key, release
133 (0x85) <- second touch key, press
133 (0x85) <- second touch key, release
132 (0x84) <- third touch key, press
132 (0x84) <- third touch key, release
45 (0x2d) <- x, press
45 (0x2d) <- x, release
153 (0x99) <- next song multimedia key, press
153 (0x99) <- next song multimedia key, release

annotation: key pressed, xmodmap key by keycode, dumpkeys key by keycode

mrzyx@mrzyx-laptop ~ % sudo showkey
kb mode was RAW
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]

press any key (program terminates 10s after last keypress)...
keycode 125 press <- first touch key, KP_Equal, unused
keycode  45 press <- first touch key, k, x
keycode  45 release
keycode 224 press <- second touch key, XF86Messenger, unused
keycode 224 release
keycode 163 press <- third touch key, XF86AudioMedia, unused
keycode 163 release
keycode 163 press <- next song multimedia key, XF86AudioMedia, unused
keycode 163 release
keycode 224 press <- brightness down multimedia key, XF86Messenger, unused
keycode 224 release


keytouch-editor reveals the brightness down multimedia key is on /dev/input/event9 and has no scancode but the "BRIGHTNESSDOWN" keycode.

gnome shortcuts editor:
first touch key: Mod4+X
second touch key: Brightness down
third touch key: Next song
next song multimedia key: Next song
brightness down multimedia key: Brightness down

Xmodmap/xmodconfig:
171: XF86AudioNext
232: XF86MonBrightnessDown

I'm completely confused now. Any ideas?

Thanks in advance,
Jonne

Last edited by MrZYX (2011-12-14 13:02:48)

Offline

#2 2011-12-14 13:06:12

MrZYX
Member
From: Hannover, Germany
Registered: 2011-12-14
Posts: 6
Website

Re: Dell XPS 15 special touch keys

Ok nevermind, found it out thanks to https://wiki.archlinux.org/index.php/Ma … o_keycodes. Here's what I did to fix it:

/opt/dell_touckeys_keymap

0x90 previoussong # Previous song
0xA2 playpause # Play/Pause
0x99 nextsong # Next song
0xDB computer # First touch key, Dell apparently uses a key sequence here where 0xDB is a modifer, 0x2D stands for the touch key and 0x19 for the monitor toggle
0x85 prog1 # Second touch key
0x84 media # Third touch key

/etc/rc.local

…
# Fix touch keys
/lib/udev/keymap input/event0 /opt/dell_touchkeys_keymap

Offline

#3 2011-12-14 21:40:55

Hohoho
Member
Registered: 2007-06-23
Posts: 222

Re: Dell XPS 15 special touch keys

Awesome, I somewhy thought they weren't configurable. I have the same laptop. Thanks!

Offline

Board footer

Powered by FluxBB