Re: On a sony VAIO Z12C5E: sony-laptop: Unknown event: 0x100 0xa6, etc.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 24, 2010 at 07:22:55PM +0100, Gyorgy Jeney wrote:
> Hello,
> 
> On a Sony VAIO Z12C9E, I get some messages from the kernel when
> certain buttons are pressed:
> 
> "Assist" pressed: sony-laptop: Unknown event: 0x100 0xa6
> "Assist" released: sony-laptop: Unknown event: 0x100 0x26
> "VAIO" pressed: sony-laptop: Unknown event: 0x100 0xa5
> "VAIO" released: sony-laptop: Unknown event: 0x100 0x25

I wonder what keycodes we should associate these to... Maybe KEY_HELP
and KEY_SETUP?

> CDROM eject key pressed: sony-laptop: Unknown event: 0x100 0xa4
> CDROM eject key released: sony-laptop: Unknown event: 0x100 0x24
> 
> What bothers me about this is I get a bunch of messages on my console
> each time the DVD tray is opened, but I guess it shouldn't be hard to

Humm, do you mean that you get that 0xa4 event when pressing the button
_on_ the CD tray or is there an extra button somewhere that triggers
that?

> make these events "do the right thing".

yes, it's easy with the information you provided.
The attached patch should get the keys reported on the input subsystem
and show up on the event device (check with evtest) and X (check with
xev).

One last thing, to keep my DSDT list up-to-date would you mind sending
me the dump of your laptop's DSDT table?

commit fa7eab94364436a567e20792c678bc72b334a3e0
Author: Mattia Dongili <malattia@xxxxxxxx>
Date:   Thu Nov 25 07:13:21 2010 +0900

    sony-laptop: support additional hotkeys on the Z series
    
    These new events were still unmapped in sony-laptop, add them and map them to
    KEY_HELP, KEY_SETUP and KEY_EJECT respectively.
    
    "Assist" pressed: sony-laptop: Unknown event: 0x100 0xa6
    "Assist" released: sony-laptop: Unknown event: 0x100 0x26
    "VAIO" pressed: sony-laptop: Unknown event: 0x100 0xa5
    "VAIO" released: sony-laptop: Unknown event: 0x100 0x25
    CDROM eject key pressed: sony-laptop: Unknown event: 0x100 0xa4
    CDROM eject key released: sony-laptop: Unknown event: 0x100 0x24
    
    Reported-by: Gyorgy Jeney <nog.lkml@xxxxxxxxx>
    Cc: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
    Cc: Matthew Garrett <mjg@xxxxxxxxxx>
    Signed-off-by: Mattia Dongili <malattia@xxxxxxxx>

diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c
index 8eecf81..ce9b901 100644
--- a/drivers/platform/x86/sony-laptop.c
+++ b/drivers/platform/x86/sony-laptop.c
@@ -906,6 +906,12 @@ static struct sony_nc_event sony_100_events[] = {
 	{ 0x1f, SONYPI_EVENT_ANYBUTTON_RELEASED },
 	{ 0xa1, SONYPI_EVENT_MEDIA_PRESSED },
 	{ 0x21, SONYPI_EVENT_ANYBUTTON_RELEASED },
+	{ 0xa4, SONYPI_EVENT_CD_EJECT_PRESSED },
+	{ 0x24, SONYPI_EVENT_ANYBUTTON_RELEASED },
+	{ 0xa5, SONYPI_EVENT_SETTINGKEY_PRESSED },
+	{ 0x25, SONYPI_EVENT_ANYBUTTON_RELEASED },
+	{ 0xa6, SONYPI_EVENT_HELP_PRESSED },
+	{ 0x26, SONYPI_EVENT_ANYBUTTON_RELEASED },
 	{ 0, 0 },
 };
 
-- 
mattia
:wq!
--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux