Posts Tagged ‘keys’
AV Mode media key patch for 9.10 (Karmic Koala)
I have made a patch for latest sony-laptop module in 2.6.31 kernel to fix broken AV Mode key handling.
If you want to apply this patch please follow fourth step in Finally a brightness How To post but apply this new patch instead of old one.
From: Anton Veretenenko <anton@veretenenko.ru>
Subject: [PATCH] UBUNTU: sony-laptop: Sony Vaio FW series media keys: AV Mode key support broken
Bug: #502751
AV Mode media key support broken on sony-laptop kernel module.
Signed-off-by: Anton Veretenenko <anton@veretenenko.ru>
---
drivers/platform/x86/sony-laptop.c | 2 ++
1 file changed, 2 insertions(+)
--- /usr/src/linux-2.6.31/drivers/platform/x86/sony-laptop.c 2010-01-03 23:21:05.000000000 +0500
+++ drivers/platform/x86/sony-laptop.c 2010-01-04 03:32:20.000000000 +0500
@@ -868,6 +868,8 @@ static struct sony_nc_event sony_100_eve
{ 0x10, SONYPI_EVENT_ANYBUTTON_RELEASED },
{ 0x91, SONYPI_EVENT_PKEY_P2 },
{ 0x11, SONYPI_EVENT_ANYBUTTON_RELEASED },
+ { 0xA1, SONYPI_EVENT_PKEY_P3 },
+ { 0x21, SONYPI_EVENT_ANYBUTTON_RELEASED },
{ 0x81, SONYPI_EVENT_FNKEY_F1 },
{ 0x01, SONYPI_EVENT_FNKEY_RELEASED },
{ 0x82, SONYPI_EVENT_FNKEY_F2 },
Ubuntu 9.10 Karmic Koala beta
I just want to inform you, if you have not tried it yet. Brightness control works out of the box. S1 key works, AV key does not. Headphones jack detection works. Built-in microphone does not. Web camera works in Skype.
Dmesg output when using AV key:
sony-laptop: Unknown event: 0x100 0xa1 sony-laptop: Unknown event: 0x100 0x21
I guess sony-laptop module is without our patch or just a new one. I’ll check sources when I have time.
Stay tuned.
S1 and AV Mode keys
I have updated sony-laptop module patch with enabled S1 and AV Mode media keys. You can map this keys in System->Preferences->Keyboard Shortcuts.
Download new sony-laptop patch (it’s included with patches for the post about brightness). Then do the 4th step in brightness how to.