Re: [PATCH] ideapad-laptop: add new driver

From: David Woodhouse
Date: Fri Aug 13 2010 - 05:15:35 EST


On Fri, 2010-08-13 at 12:08 +0800, Ike Panhc wrote:
>
> The driver will bind on ACPI HID:VPC2004. When hotkey pressed, the
> notify
> function will be called and query EC to tell which key pressed.
>
> Hotkeys enabled listed below:
> * LCD backlight switch - reports KEY_DISPLAY_OFF
> * One key restore - reports KEY_PROG1
> * Brightness Up/down - reports KEY_BRIGHTNESS_CYCLE
> Both up/down keys reports the same event. Need to find other way to
> detect
> * Touchpad switch - reports KEY_F13
> * Video output switch - reports KEY_SWITCHVIDEOMODE
> * Camera switch - reports KEY_CAMERA
> * Video resolution switch - reports KEY_VIDEO_NEXT
> * S/W rfkill key - reports KEY_WLAN

Hm, interesting. What model (and BIOS version) are you testing with?

On my S10-3, (DMI BIOS version 2ACN23WW, date 03/12/2010), I get these
keys through the normal keyboard controller -- and we can tell the
brightness up/down apart, too.

http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=9cd075e3

Do you see those keycodes too... and do they *stop* arriving through the
keyboard controller when you load your driver?

--
David Woodhouse Open Source Technology Centre
David.Woodhouse@xxxxxxxxx Intel Corporation

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/