From owner-freebsd-acpi@FreeBSD.ORG Tue Mar 12 23:22:07 2013 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9CA77111; Tue, 12 Mar 2013 23:22:07 +0000 (UTC) (envelope-from seanwbruno@gmail.com) Received: from mail-pb0-f42.google.com (mail-pb0-f42.google.com [209.85.160.42]) by mx1.freebsd.org (Postfix) with ESMTP id 6BCECAF; Tue, 12 Mar 2013 23:22:07 +0000 (UTC) Received: by mail-pb0-f42.google.com with SMTP id xb4so373959pbc.1 for ; Tue, 12 Mar 2013 16:22:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:subject:from:to:cc:in-reply-to:references:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=XOhWqJP3o7XVAQVhtSXly+yrO62dygcNY9kqM7Fi7fo=; b=pMfIsa+D0BBNp0+5wKzmUySDMyv6CG2Ep+jdVZdroN0161CDnaCSo4kyYxg6jnYL1w DXpuW75DLH/xIjoB/6Tj3yDrHxd2AiSsxtApIQkX/hdpCKRVz2l4ai/8SPvzqyQr2PEd H1UTi0bzzgrPAuwyswHBardIrHqHh1Hv4efpOPm/2QsUTcuoFzvecdH/GPbJML7lEgoB 0/OMINN0KKFBm9HrOXTL5mMrm0i2tBbp0vBsuYiTGtxoTpHRA/6BV0QMSkydeQ+UfPIy 8xx4XpCaYy3LMY1OXYx1bntR56EQ7MvDaDSiznhOOIaNAKXNh4ISKJKidItjTsNYxlOB I3Yg== X-Received: by 10.68.227.202 with SMTP id sc10mr40689697pbc.109.1363130526700; Tue, 12 Mar 2013 16:22:06 -0700 (PDT) Received: from [172.40.3.206] ([122.212.234.130]) by mx.google.com with ESMTPS id kt5sm26887848pbc.30.2013.03.12.16.22.03 (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 12 Mar 2013 16:22:05 -0700 (PDT) Subject: Re: thinkpad keys T520 From: Sean Bruno To: Kevin Oberman In-Reply-To: References: <1363125437.79135.2.camel@localhost> Content-Type: text/plain; charset="us-ascii" Date: Wed, 13 Mar 2013 08:22:02 +0900 Message-ID: <1363130522.79135.8.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org, hiren panchasara 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: Tue, 12 Mar 2013 23:22:07 -0000 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. > > 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