From owner-freebsd-acpi@FreeBSD.ORG Wed Mar 13 02:46:12 2013 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BDD27491; Wed, 13 Mar 2013 02:46:12 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx1.freebsd.org (Postfix) with ESMTP id 61BC8A2B; Wed, 13 Mar 2013 02:46:12 +0000 (UTC) Received: by mail-ve0-f182.google.com with SMTP id ox1so390168veb.41 for ; Tue, 12 Mar 2013 19:46:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=+yBjRX9ZPSBE6h3AINKn72deTTJUEKnvANNbFCEdkGA=; b=mMfDvKF7gAhDoUM1e0wRAtvxtEIH/mkBmPNu0iowTK11+OGxcuL6GR1gPj1F2ofZJx pRm1wkFNc4dypilOzxS01/afwSs3LngHeG5VvzIoaHEqCg9wpo44CfVW1gu7TyUTC3ZU fnaaecSNtvYFU77JZ21hh9XTYg24ijw39G3eZ30z3BuqR6WtzWaqjUtnlDg/ssRh6dpG bwKWKSPbQvVI0+HqCLXbn4i/iD//pLjyFK2ltFpcJnf7NVaHEKVTLJnnuVWZ6DqlunzI 68cxdfnIAJCTspg+8AS+DUlFegRdR7ExxE0QDg+oLK7ZLG7MT02eLirmKvw8DOpmhY5q PGzA== MIME-Version: 1.0 X-Received: by 10.52.19.200 with SMTP id h8mr6437738vde.60.1363142285205; Tue, 12 Mar 2013 19:38:05 -0700 (PDT) Received: by 10.58.198.107 with HTTP; Tue, 12 Mar 2013 19:38:05 -0700 (PDT) In-Reply-To: <1363130522.79135.8.camel@localhost> References: <1363125437.79135.2.camel@localhost> <1363130522.79135.8.camel@localhost> Date: Tue, 12 Mar 2013 19:38:05 -0700 Message-ID: Subject: Re: thinkpad keys T520 From: hiren panchasara To: Sean Bruno Content-Type: text/plain; charset=UTF-8 Cc: Kevin Oberman , freebsd-acpi@freebsd.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Mar 2013 02:46:12 -0000 On Tue, Mar 12, 2013 at 4:22 PM, Sean Bruno wrote: > On Tue, 2013-03-12 at 15:56 -0700, Kevin Oberman wrote: >> On Tue, Mar 12, 2013 at 2:57 PM, Sean Bruno >> wrote: >> the Fn key seems to send the system the same key command as >> the power >> button *should* send. This leads to many problems on this >> machine. >> >> How can I start tracing code the key strokes for keys that are >> not the >> normal keyboard keys? e.g. the Fn key or vol up/down and the >> power >> button? >> >> If I load acpi_ibm(4), it doesn't seem to ever get used so I >> am confused >> as to where to start. As Sean pointed out, we are on this mysterious journey to find out what happens when buttons are pressed. I am playing with my T420 to understand how physical button press event is sent down to acpi_ibm via devd. I've started putting "device_printf" inside acpi_ibm to see if individual functions are getting called or not. I was not seeing anything in dmesg until I set following: sysctl dev.acpi_ibm.0.events=1 >From the manpage, it seems, this tunable enables ACPI events and set the eventmask to availmask. where eventmask is how things are laid out specific to your hardware and availmask is what all you want to intercept by acpi_ibm. Is this a correct assumption or I am completely off the track here? Also, I am trying to find out pin layout for T420 and T520 as acpi_ibm(4) lists for T41p. If someone can help me find it, that will be awesome. Thanks in advance, Hiren >> >> Sean, >> >> I'm confused. I also have a T520, but the Fn key does not seem to >> mis-behave on it at all. I have not gotten brightness adjustment to >> work correctly to this point, but Fn has never triggered a power >> operation for me. Your statement about acpi_ibm(4) is also baffling as >> I have no problems with it with 9.1-Stable or head. It was broken in >> some earlier versions before the Lenovo ID was added. >> >> Does your ThinkLight turn on and off if you set >> dev.acpi_ibm.0.thinklight? When you press Fn+PgUp? Both work on my >> T520. >> >> Perhaps I am not completely understanding the issue. >> >> -- >> R. Kevin Oberman, Network Engineer >> E-mail: rkoberman@gmail.com > > > On my T520, I do not need acpi_ibm(4) for the thinklight to function. > It works with/without the module loaded. > > Hiren and I found adding this to the driver section of xorg.conf allows > the fn-brightness keys to work: > Option "RegistryDwords" "EnableBrightnessControl=1" > > The audio "mute" button actually seems to be working through the sound > driver. > > The fn key seems to generate an unhandled APIC0 event, that is processed > somewhere as a shutdown event. I'm using XFCE4 as my desktop and all > the parts that come with it. > > Sean >