From: Corentin Chary on
On Fri, Aug 13, 2010 at 6:08 AM, Ike Panhc <ike.pan(a)canonical.com> wrote:
> ideapad-laptop is a new driver which enable hotkeys on Lenovo Ideapad laptops
>
> 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
>
> The developing git tree as reference:
> �git://kernel.ubuntu.com/ikepanhc/ideapad-laptop.git
>
> This patch made against current checkout of mainline kernel.

Cool, now we got two ideapad drivers :p.

David just sent an rfkill driver to this list. Maybe you could merge your work ?

Thanks,
--
Corentin Chary
http://xf.iksaif.net
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Ike Panhc on
On 08/13/2010 02:37 PM, Corentin Chary wrote:
> On Fri, Aug 13, 2010 at 6:08 AM, Ike Panhc <ike.pan(a)canonical.com> wrote:
>> ideapad-laptop is a new driver which enable hotkeys on Lenovo Ideapad laptops
>>
>> 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
>>
>> The developing git tree as reference:
>> git://kernel.ubuntu.com/ikepanhc/ideapad-laptop.git
>>
>> This patch made against current checkout of mainline kernel.
>
> Cool, now we got two ideapad drivers :p.
>
> David just sent an rfkill driver to this list. Maybe you could merge your work ?
>
> Thanks,
Could you point me where is the rfkill driver? Sorry I do not find it.

I will see what I can do.

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Corentin Chary on
> Could you point me where is the rfkill driver? Sorry I do not find it.
>
> I will see what I can do.
>
> Thanks.
>

Here is the thread
http://thread.gmane.org/gmane.linux.drivers.platform.x86.devel/471

--
Corentin Chary
http://xf.iksaif.net
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Ike Panhc on
On 08/13/2010 03:01 PM, Corentin Chary wrote:
>> Could you point me where is the rfkill driver? Sorry I do not find it.
>>
>> I will see what I can do.
>>
>> Thanks.
>>
>
> Here is the thread
> http://thread.gmane.org/gmane.linux.drivers.platform.x86.devel/471
>
Yes, I believe I can. will read patch from David and merge.

But I think i will not use \_SB_.SECN as major interface. I know there is
another command code of EC that can access HW switch status and shutdown
the interface.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: David Woodhouse on
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(a)intel.com Intel Corporation

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