public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Andy Isaacson <adi@hexapodia.org>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: linux-acpi@vger.kernel.org
Subject: Re: [mjg@redhat.com: [PATCH] From: Rezwanul Kabir <Rezwanul_Kabir@dell.com>]
Date: Tue, 3 Nov 2009 12:51:01 -0800	[thread overview]
Message-ID: <20091103205101.GZ25713@hexapodia.org> (raw)
In-Reply-To: <20091103143637.GA7673@srcf.ucam.org>

Right, so, brown paper bag time... my testing last night was with
completely the wrong kernel, with a previous version of the patch.

> 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.

Verified with the correct kernel on E4300 with GMA, I get 227 on the WMI
input event device and 227 on the ACPI Video Bus device.

> > 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.

Yes, Fn-F2 (battery with lighting bolt) is the trigger for the "Received
unknown WMI event (0x11)" message.  It also toggles battery charge -- if
I press it when the battery is charging, the battery stops charging:
grep 'charging state' /proc/acpi/battery/BAT0/state
charging state:           charged

Pressing Fn-F2 again gets the battery charging again and triggers
another "unknown WMI event (0x11)" message.

> > 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.

On an E6400 with NVidia graphics, I do get 227 on WMI and do not have a 
Video Bus object (but the VID1 event does show up in acpi_listen).
Appears to be a difference between laptops with Intel GMA versus NVidia,
sigh.

so... condition delivery of KEY_SWITCHVIDEOMODE on whether the videobus
object is present?  Seems kinda nasty...

-andy

      reply	other threads:[~2009-11-03 20:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20091103034212.GF31712@vmware.com>
     [not found] ` <20091102174748.GA21342@srcf.ucam.org>
2009-11-02 17:00   ` [PATCH] From: Rezwanul Kabir <Rezwanul_Kabir@dell.com> Matthew Garrett
2009-11-02 18:19     ` Matthew Garrett
2009-12-10  5:20       ` [PATCH] dell-wmi: Add support for new Dell systems ([PATCH] From: Rezwanul Kabir <Rezwanul_Kabir@dell.com>) Len Brown
2009-11-03  4:05     ` [mjg@redhat.com: [PATCH] From: Rezwanul Kabir <Rezwanul_Kabir@dell.com>] Andy Isaacson
2009-11-03 14:36       ` Matthew Garrett
2009-11-03 20:51         ` Andy Isaacson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091103205101.GZ25713@hexapodia.org \
    --to=adi@hexapodia.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mjg59@srcf.ucam.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox