From owner-freebsd-acpi@FreeBSD.ORG Tue Aug 17 09:14:55 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F21A16A4CF for ; Tue, 17 Aug 2004 09:14:55 +0000 (GMT) Received: from ns1.interbgc.com (mail.interbgc.com [217.9.224.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 2D2D743D64 for ; Tue, 17 Aug 2004 09:14:54 +0000 (GMT) (envelope-from nike_d@cytexbg.com) Received: (qmail 28328 invoked from network); 17 Aug 2004 09:14:52 -0000 Received: from nike_d@cytexbg.com by keeper.interbgc.com by uid 1002 with qmail-scanner-1.14 (uvscan: v4.2.40/v4374. spamassassin: 2.63. Clear:SA:0(-4.9/8.0):. Processed in 2.313352 secs); 17 Aug 2004 09:14:52 -0000 X-Spam-Status: No, hits=-4.9 required=8.0 Received: from 213-240-202-139.1697748.ddns.cablebg.net (HELO tormentor.totalterror.net) (213.240.202.139) by mail.interbgc.com with SMTP; 17 Aug 2004 09:14:49 -0000 Received: (qmail 87047 invoked from network); 17 Aug 2004 09:17:56 -0000 Received: from unknown (HELO phobos.totalterror.net) (10.0.0.2) by tormentor.totalterror.net with SMTP; 17 Aug 2004 09:17:55 -0000 References: <200408170859.RAA16726@axe-inc.co.jp> Message-ID: X-Mailer: http://www.courier-mta.org/cone/ From: Niki Denev To: takawata@jp.freebsd.org Date: Tue, 17 Aug 2004 12:14:48 +0300 Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=_mimegpg-phobos.totalterror.net-782-1092734088-0002"; micalg=pgp-sha1; protocol="application/pgp-signature" cc: freebsd-hackers@freebsd.org cc: freebsd-acpi@freebsd.org Subject: Re: Driver for Thinkpad Hotkeys. X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2004 09:14:55 -0000 This is a MIME GnuPG-signed message. If you see this text, it means that your E-mail or Usenet software does not support MIME signed messages. --=_mimegpg-phobos.totalterror.net-782-1092734088-0002 Content-Type: text/plain; format=flowed; charset="US-ASCII" Content-Disposition: inline Content-Transfer-Encoding: 7bit takawata@jp.freebsd.org writes: > I updated the driver to be able to change wireless status, by > dev.acpi_tpkey.0.bluetooth, > dev.acpi_tpkey.0.wlan > sysctl value. (WLAN handling may not be correct.) > http://www.init-main.com/acpi_tpkey/acpi_tpkey.c > > In message , Niki Denev > wrote: >>On my X31, when i load acpi_tpkey and start 'devd -dD', i get notifications >>only when pressing the Fn+F3 (screen blank) combination. >>Am i missing something ? > > By default,only Fn+F3,Fn+F4(Suspend - This is handled by this driver, > instead of sleep button driver), and Fn+F12(Suspend to Disk) > will assert notification. > In addition to that, you can transfer control of all *possible* button > to operating system by setting dev.acpi_tpkey.0.key_mask > to dev.acpi_tpkey.0.avail_mask. > This will enable all notifications and disable all default hotkey actions. > > > >>P.S.: the acpi_tpkey_kldload.out file contains the console output, when i >>load the driver. >>and the acpi_tpkey_notify.out file contains the message i get when pressing >>Fn+F3. >>Any other special buttons, (AccessIBM, vol up/down, mute, brightness, key >>light) don't print notify messages, but they continue to work normal. > > That's expected. Those button will not produce any ACPI notification, > though it is dealt by ACPI byte code. > Instead of it, those keys set toggle value to RTC ram and you can access > the Fn+SPC(0x20) and AccessIBM(0x8) value by dev.acpi_tpkey.0.misckey . > (Volume and Brightness toggle can be seen in RTC register, but > it is not exported to user now.) > To assert event from kernel, kernel thread will be needed. > > thanks for the clarification. - Niki --=_mimegpg-phobos.totalterror.net-782-1092734088-0002 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQBBIcyIHNAJ/fLbfrkRApWVAKCGiNg0hJFYD7mzAQJc68kZ1ZvAOACbBOi2 8uRjrHGcBGJvXcOYAsQvc34= =GpUL -----END PGP SIGNATURE----- --=_mimegpg-phobos.totalterror.net-782-1092734088-0002--