Re: [PATCH] dell-wmi: add module param to control Dell Instant Launch hotkey processing
From: Pali RohÃr
Date: Sun Nov 29 2015 - 14:50:28 EST
On Thursday 26 November 2015 15:55:56 MichaÅ KÄpieÅ wrote:
> > > /* Shortcut and audio panel keys */
> > >
> > > - { KE_IGNORE, 0xe025, { KEY_RESERVED } },
> > > + { KE_KEY, 0xe025, { KEY_PROG4 } },
> > >
> > > { KE_IGNORE, 0xe026, { KEY_RESERVED } },
> >
> > I'm trying to figure out if those two keys are really reported via
> > keyboard controller or not. They were added 4 years ago in commit
> > f1566f0dc07ec9b5409b348070f5a700032d7881. But from bug report
> > http://bugs.launchpad.net/bugs/815914 there is no information if
> > those two keys are really reported by keyboard controller or not.
> >
> > And if not our problem could be easier...
>
> That would indeed be sweet as this patch could then be shrinked to
> just changing the entry in the sparse keymap. Does anyone have a
> Dell XPS L502X handy? Also, any ideas for making sure no other
> model is generating that keypress?
And now I have info how keys are reported on Dell XPS L502X. Sadly it is
worse as I expected :-( Here is output from Jean-Louis Dupond notebook:
$ sudo /usr/bin/input-events 4
/dev/input/event4
bustype : BUS_I8042
vendor : 0x1
product : 0x1
version : 43841
name : "AT Translated Set 2 keyboard"
phys : "isa0060/serio0/input0"
bits ev : EV_SYN EV_KEY EV_MSC EV_LED EV_REP
waiting for events
10:26:29.945739: EV_MSC MSC_SCAN 219
10:26:29.945739: EV_KEY KEY_LEFTMETA (0x7d) pressed
10:26:29.945739: EV_SYN code=0 value=0
10:26:29.946468: EV_MSC MSC_SCAN 45
10:26:29.946468: EV_KEY KEY_X (0x2d) pressed
10:26:29.946468: EV_SYN code=0 value=0
10:26:29.948469: EV_MSC MSC_SCAN 45
10:26:29.948469: EV_KEY KEY_X (0x2d) released
10:26:29.948469: EV_SYN code=0 value=0
10:26:29.951473: EV_MSC MSC_SCAN 219
10:26:29.951473: EV_KEY KEY_LEFTMETA (0x7d) released
10:26:29.951473: EV_SYN code=0 value=0
x
(Press+release first key with name "Windows Mobility Center control")
(key X was printed to console)
10:26:32.898689: EV_MSC MSC_SCAN 133
10:26:32.898689: EV_KEY KEY_BRIGHTNESSDOWN (0xe0) pressed
10:26:32.898689: EV_SYN code=0 value=0
10:26:32.898730: EV_MSC MSC_SCAN 133
10:26:32.898730: EV_KEY KEY_BRIGHTNESSDOWN (0xe0) released
10:26:32.898730: EV_SYN code=0 value=0
(Press+release second key with name "Instant launch control")
10:26:35.090018: EV_MSC MSC_SCAN 132
10:26:35.090018: EV_KEY KEY_NEXTSONG (0xa3) pressed
10:26:35.090018: EV_SYN code=0 value=0
10:26:35.092765: EV_MSC MSC_SCAN 132
10:26:35.092765: EV_KEY KEY_NEXTSONG (0xa3) released
10:26:35.092765: EV_SYN code=0 value=0
(Press+release third key with name "Audio control-panel control")
As you can see events are send also via keyboard controller!
Key codes are configured by userspace (udev/systemd) and looks like
there is bug in userspace rules (reason for brightnes or nextsong), see:
https://wiki.ubuntu.com/HardwareSupport/Machines/Laptops/Dell/XPS/15
So it is not easy to make both machines (Dell XPS L502X and Dell Vostro
V131) works correctly :-( At least I do not see how.
And that mapping "Windows Mobility Center control" key to combination of
two keys (KEY_LEFTMETA + X) is some total stupid nonsense...
If anybody has idea how to fix this big firmware/BIOS mess please let us
know...
--
Pali RohÃr
pali.rohar@xxxxxxxxx
Attachment:
signature.asc
Description: This is a digitally signed message part.