Re: [mjg@redhat.com: [PATCH] From: Rezwanul Kabir <Rezwanul_Kabir@dell.com>]

Matthew Garrett
2009-11-03T14:36:38Z

On Mon, Nov 02, 2009 at 08:05:25PM -0800, Andy Isaacson wrote:

> The keyboard.c complaints are from when I hit Fn-F8 (display switch). I
> can trigger the same complaint with Fn-Left (display brightness auto),
> with code 240.

Hm. 241 is KEY_VIDEO_NEXT - I thought I'd changed that to be
KEY_SWITCHVIDEOMODE? 240 is KEY_UNKNOWN. I don't think we've currently
got an appropriate key to map the ALS button to.

> I don't know what event causes the "event 0x11" complaint. It seems to
> be purely cosmetic and not directly tied to user interaction?

On my test system, that's the "battery with lightning flash" key. I have
no idea what it's meant to do, or how we're meant to interpret that
event.

> Fn-F8, Display Toggle, gives code 241 on the WMI event8 *and* code 227
> on /dev/input/event4 "Video Bus". That seems ... wrong.

Yup. Unfortunately on my system, it only gets delivered via WMI and not
via ACPI, so doing the same thing as for the brightness keys doesn't
look like it'll work.

--
Matthew Garrett | mjg59@srcf.ucam.org