From owner-freebsd-acpi@FreeBSD.ORG Sun Jul 25 19:30:21 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 F07D516A4CE for ; Sun, 25 Jul 2004 19:30:20 +0000 (GMT) Received: from sana.init-main.com (104.194.138.210.bn.2iij.net [210.138.194.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id 000B243D45 for ; Sun, 25 Jul 2004 19:30:19 +0000 (GMT) (envelope-from takawata@init-main.com) Received: from init-main.com (localhost [127.0.0.1]) by sana.init-main.com (8.12.11/8.12.11) with ESMTP id i6PJS8mD089499 for ; Mon, 26 Jul 2004 04:28:09 +0900 (JST) (envelope-from takawata@init-main.com) Message-Id: <200407251928.i6PJS8mD089499@sana.init-main.com> To: freebsd-acpi@freebsd.org From: takawata@jp.freebsd.org Date: Mon, 26 Jul 2004 04:28:08 +0900 Sender: takawata@init-main.com Subject: ThinkPad X31 Hotkey device 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: Sun, 25 Jul 2004 19:30:21 -0000 Hi, I wrote a ThinkPad Hot key device driver. This will send hot key event for devd and display debug message when hot key event is recognized. I tested on ThinkPad X31 and not tested on ThinkPad i1620 but should work on it. http://www.init-main.com/acpi_tpkey/ From owner-freebsd-acpi@FreeBSD.ORG Mon Jul 26 11:00:57 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 D9E9D16A4CE for ; Mon, 26 Jul 2004 11:00:57 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC5A243D3F for ; Mon, 26 Jul 2004 11:00:57 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i6QB0vej025706 for ; Mon, 26 Jul 2004 11:00:57 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6QB0vcl025700 for acpi@freebsd.org; Mon, 26 Jul 2004 11:00:57 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 26 Jul 2004 11:00:57 GMT Message-Id: <200407261100.i6QB0vcl025700@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: acpi@FreeBSD.org Subject: Current problem reports assigned to you 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: Mon, 26 Jul 2004 11:00:58 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- a [2004/06/09] i386/67770 acpi X11 kills system after upgrade to 5.2.1 1 problem total. From owner-freebsd-acpi@FreeBSD.ORG Mon Jul 26 11:01:45 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 2BFF416A4CE for ; Mon, 26 Jul 2004 11:01:45 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22B4343D3F for ; Mon, 26 Jul 2004 11:01:45 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i6QB1jN5026641 for ; Mon, 26 Jul 2004 11:01:45 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6QB1iJK026636 for freebsd-acpi@freebsd.org; Mon, 26 Jul 2004 11:01:44 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 26 Jul 2004 11:01:44 GMT Message-Id: <200407261101.i6QB1iJK026636@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-acpi@FreeBSD.org Subject: Current problem reports assigned to you 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: Mon, 26 Jul 2004 11:01:45 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/09/10] kern/56659 acpi ACPI trouble on IBM ThinkPad X31 f [2004/01/31] kern/62194 acpi kern/acpi: Unable to map IRQ on device cb 2 problems total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/07/22] i386/54756 acpi ACPI suspend/resume problem on CF-W2 lapt o [2003/08/20] kern/55822 acpi No ACPI power off with SMP kernel o [2003/12/17] i386/60317 acpi FreeBSD 5.2rc1 doesn't boot with ACPI ena 3 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/08/11] i386/55473 acpi Mouse broken on some AWARD BIOS with ACPI o [2004/03/17] misc/64365 acpi ACPI problems o [2004/05/28] kern/67309 acpi zzz reboot computer (ACPI S3) 3 problems total. From owner-freebsd-acpi@FreeBSD.ORG Mon Jul 26 17:09:02 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 0162916A4CE for ; Mon, 26 Jul 2004 17:09:02 +0000 (GMT) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5BD943D5C for ; Mon, 26 Jul 2004 17:09:01 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.34] (adsl-67-127-84-57.dsl.snfc21.pacbell.net [67.127.84.57]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id i6QH8wrb003795 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 26 Jul 2004 10:09:01 -0700 Message-ID: <41053A0C.8010906@root.org> Date: Mon, 26 Jul 2004 10:06:20 -0700 From: Nate Lawson User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: takawata@jp.freebsd.org References: <200407251928.i6PJS8mD089499@sana.init-main.com> In-Reply-To: <200407251928.i6PJS8mD089499@sana.init-main.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-acpi@freebsd.org Subject: Re: ThinkPad X31 Hotkey device 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: Mon, 26 Jul 2004 17:09:02 -0000 takawata@jp.freebsd.org wrote: > Hi, I wrote a ThinkPad Hot key device driver. > This will send hot key event for devd and > display debug message when hot key event is > recognized. > I tested on ThinkPad X31 and > not tested on ThinkPad i1620 but should work on it. > > http://www.init-main.com/acpi_tpkey/ Thanks! Some comments: * New drivers should use style(9) (especially 8 space tabs) * acpi_tpkey_call_{get,set}_method() should be replaced with acpi_{Get,Set}Integer() (see acpi.c) * No need to call acpi_get_type() in the probe method -- the ACPI_PNP_PROBE function handles this. * SYSCTL_OUT/IN can be replaced by sysctl_handle_int. See acpi_toshiba.c for good examples of all this. -- -Nate From owner-freebsd-acpi@FreeBSD.ORG Mon Jul 26 19:10:06 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 7B5AF16A4CF for ; Mon, 26 Jul 2004 19:10:06 +0000 (GMT) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2EF843D45 for ; Mon, 26 Jul 2004 19:10:05 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id IBA74465; Mon, 26 Jul 2004 12:10:05 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 5A2205D08; Mon, 26 Jul 2004 12:10:05 -0700 (PDT) To: Nate Lawson In-reply-to: Your message of "Fri, 16 Jul 2004 14:36:49 PDT." <20040716213649.CF9725D09@ptavv.es.net> Date: Mon, 26 Jul 2004 12:10:05 -0700 From: "Kevin Oberman" Message-Id: <20040726191005.5A2205D08@ptavv.es.net> cc: acpi@freebsd.org Subject: More on suspend problems in CURRENT on IBM T30 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: Mon, 26 Jul 2004 19:10:06 -0000 More on problems suspending in CURRENT. After the latest round of updates, I tried suspend (S3) again. Again the backlight stayed on, but I noticed one interesting thing that MIGHT be relevant. After I start the suspend, the backlight DOES turn off. But, at the very end of the suspend procedure, it turns back on! Here is the sequence with approximate times: % acpiconf -s 3 Pause for about 1.5 seconds Screen blanks (back-light on) for about 2 seconds Appox. 1 KHz beep Backlight turns off for about .2 seconds Screen turns back on and unblanks Approx. 600 Hz. beep All of this is with jhb's acpi_dpms patch to acpi_video.c (with changes to accommodate recent revisions to acpi_video.c). From owner-freebsd-acpi@FreeBSD.ORG Tue Jul 27 04:26:44 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 596F616A4CE for ; Tue, 27 Jul 2004 04:26:44 +0000 (GMT) Received: from fuf.mingrone.org (fuf.mingrone.org [204.251.2.34]) by mx1.FreeBSD.org (Postfix) with SMTP id EB6DA43D2F for ; Tue, 27 Jul 2004 04:26:43 +0000 (GMT) (envelope-from joey@mingrone.org) Received: (qmail 46469 invoked from network); 27 Jul 2004 04:26:42 -0000 Received: from fuf.mingrone.org (HELO localhost) (204.251.2.34) by fuf.mingrone.org with SMTP; 27 Jul 2004 04:26:42 -0000 From: Joey Mingrone To: freebsd-acpi@FreeBSD.org Date: Tue, 27 Jul 2004 01:26:37 -0300 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline X-UID: 25 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200407270126.37545.joey@mingrone.org> Subject: acpi on asus m6n 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, 27 Jul 2004 04:26:44 -0000 Hi, I'm sending this message after reading the "Using and Debugging FreeBSD ACPI" section in the handbook. My system is an Asus M6800N running BIOS version 0209A. The output from uname -a is: FreeBSD karlsruhe.mingrone.org 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #3: Sat Jul 17 20:27:38 ADT 2004 root@karlsruhe.mingrone.org:/usr/obj/usr/src/sys/KARLSRUHE_MINGRONE_ORG_2004-07-17 i386 Description of the buggy behavior: - no battery status - suspend to S3 often works (with lots of errors in syslog) but it sometimes doesn't (network interfaces won't come back up and on rare occasions the system will lock up) - suspend to S4 works, but resuming doesn't. Hitting keys doesn't bring the system back up and hitting the power button causes a reboot with warning messages about the filesystems not being properly dismounted. hw.acpi.disable_on_poweroff="0" in /boot/loader.conf doesn't seem to make any difference. - DPMS works to turn the monitor off some of the time, and on occasion the monitor will turn off while I'm working (I have it set to turn the monitor off after 15 minutes of inactivity) Output from "sysctl hw.acpi'': hw.acpi.supported_sleep_state: S3 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S1 hw.acpi.lid_switch_state: S1 hw.acpi.standby_state: S1 hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 5 hw.acpi.s4bios: 0 hw.acpi.verbose: 0 hw.acpi.disable_on_poweroff: 1 hw.acpi.reset_video: 1 hw.acpi.cpu.cx_supported: C2/1 hw.acpi.cpu.cx_lowest: 0 hw.acpi.cpu.cx_history: 30977197/0 hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 30 hw.acpi.thermal.tz0.temperature: 3312 hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: 3732 hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 3782 hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.acline: -1 hw.acpi.battery.life: -1 hw.acpi.battery.time: -1 hw.acpi.battery.state: 7 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 See http://mingrone.org/m6n for: ASL (acpidump -t -d): boot -v output asl compile errors This Linux patch (which doesn't patch the ASL cleanly) might be helpful: http://www.tzi.de/~adieling/asusm6n-acpi/ I think that's everything. I'm going to play with the ASL and if I come up with any improvements I'll post a diff here. Also, I hope I didn't scare anyone away who was considering this system. 5.2.1p#9 runs quite well on it. ..nice screen, gigabit network adapter and 802.11b/g works with NDISulator. Joey From owner-freebsd-acpi@FreeBSD.ORG Tue Jul 27 14:37:20 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 1052016A4CE; Tue, 27 Jul 2004 14:37:20 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E63E143D31; Tue, 27 Jul 2004 14:37:19 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from freefall.freebsd.org (jhb@localhost [127.0.0.1]) i6REbJDW080607; Tue, 27 Jul 2004 14:37:19 GMT (envelope-from jhb@freefall.freebsd.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6REbJrD080603; Tue, 27 Jul 2004 14:37:19 GMT (envelope-from jhb) Date: Tue, 27 Jul 2004 14:37:19 GMT From: John Baldwin Message-Id: <200407271437.i6REbJrD080603@freefall.freebsd.org> To: jhb@FreeBSD.org, acpi@FreeBSD.org, freebsd-acpi@FreeBSD.org Subject: Re: i386/67770: X11 kills system after upgrade to 5.2.1 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, 27 Jul 2004 14:37:20 -0000 Synopsis: X11 kills system after upgrade to 5.2.1 Responsible-Changed-From-To: acpi->freebsd-acpi Responsible-Changed-By: jhb Responsible-Changed-When: Tue Jul 27 14:36:55 GMT 2004 Responsible-Changed-Why: Change owner so all the ACPI PRs show up in one list. http://www.freebsd.org/cgi/query-pr.cgi?pr=67770 From owner-freebsd-acpi@FreeBSD.ORG Tue Jul 27 14:37:20 2004 Return-Path: Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1052016A4CE; Tue, 27 Jul 2004 14:37:20 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E63E143D31; Tue, 27 Jul 2004 14:37:19 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from freefall.freebsd.org (jhb@localhost [127.0.0.1]) i6REbJDW080607; Tue, 27 Jul 2004 14:37:19 GMT (envelope-from jhb@freefall.freebsd.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6REbJrD080603; Tue, 27 Jul 2004 14:37:19 GMT (envelope-from jhb) Date: Tue, 27 Jul 2004 14:37:19 GMT From: John Baldwin Message-Id: <200407271437.i6REbJrD080603@freefall.freebsd.org> To: jhb@FreeBSD.org, acpi@FreeBSD.org, freebsd-acpi@FreeBSD.org Subject: Re: i386/67770: X11 kills system after upgrade to 5.2.1 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, 27 Jul 2004 14:37:20 -0000 Synopsis: X11 kills system after upgrade to 5.2.1 Responsible-Changed-From-To: acpi->freebsd-acpi Responsible-Changed-By: jhb Responsible-Changed-When: Tue Jul 27 14:36:55 GMT 2004 Responsible-Changed-Why: Change owner so all the ACPI PRs show up in one list. http://www.freebsd.org/cgi/query-pr.cgi?pr=67770 From owner-freebsd-acpi@FreeBSD.ORG Tue Jul 27 17:04:38 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 AC67616A4CE for ; Tue, 27 Jul 2004 17:04:38 +0000 (GMT) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12FA443D49 for ; Tue, 27 Jul 2004 17:04:38 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.1.102] (ddsl-66-42-172-210.fuse.net [66.42.172.210]) (authenticated bits=0)i6RGrojr004155 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 27 Jul 2004 12:53:50 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: acpi@FreeBSD.org Date: Tue, 27 Jul 2004 12:59:15 -0400 User-Agent: KMail/1.6.2 References: <20040712.200815.74734634.nyan@jp.FreeBSD.org> <40FE9BEA.7060802@root.org> <20040724221344.GE85709@fasolt.home.paeps.cx> In-Reply-To: <20040724221344.GE85709@fasolt.home.paeps.cx> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200407271259.24724.mistry.7@osu.edu> X-Spam-Status: No, hits=-4.9 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE, QUOTED_EMAIL_TEXT,RCVD_IN_ORBS,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_KMAIL version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: Re: Generic hotkey script (was: Re: Panasonic acpi driver) 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, 27 Jul 2004 17:04:38 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 24 July 2004 06:13 pm, Philip Paeps wrote: > On 2004-07-21 09:38:02 (-0700), Nate Lawson wrote: > > I don't want us to import any device-specific hotkey scripts (i.e., asu= s, > > panasonic, toshiba, etc.) but instead have a single general-purpose > > script and have the kernel translate device-specific tables of hotkey > > values to generic ones. That way a single script can look for the > > generic "volume up/down" buttons and act accordingly. > > > > Please email me if you're interested in working on that. > > I've been thinking about this a while ago, but it somehow got itself stuck > on my 'maybe later' stack. My idea was to have devd do the magic here.=20 > Agree on some constants (ACPI_VOLUME_UP, ACPI_VOLUME_MUTE, > ACPI_HOTKEY_1,...) that the specific drivers could send to devd using > acpi_UserNotify(). > > We could then have a devd script (much like we also have power_profile, or > we could rename that to 'acpi_event' or something similar) to catch these > events. > > notify 10 { > match "system" "ACPI"; > match "subsystem" "HOTKEY"; > action "/etc/rc.d/acpi_event $notify"; > }; > > To avoid having a notify section for every different device specific acpi > driver, we could either have them all be ACPI_MODULE_NAME("HOTKEY"), or we > could register them under an umbrella hotkey driver. The latter approach > might be nicer. Then we could also add other non-acpi hotkey gadgets (ir > remote controls maybe? :-)) under it? > > I'd be interested in hacking at this. > > - Philip This would be nice. I'd be able to put some time into this since it would = be=20 good to get it committed before the freeze. I think the=20 ACPI_MODULE_NAME("HOTKEY") way would be best for now since you could always= =20 just have other non-acpi devices use another devd entry that would just cal= l=20 the acpi_hotkey script action. I'll try on modifying my script for the=20 acpi_fuji driver to be generic. =2D --=20 Anish Mistry =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBBonrxqA5ziudZT0RAqSVAJ9nyHHgDMWuGjIn4zIBYVsvq1pH9wCgqtRi EwA61QFdGmY+dpVKhleZ6Dc=3D =3Dz16N =2D----END PGP SIGNATURE----- From owner-freebsd-acpi@FreeBSD.ORG Tue Jul 27 20:17:27 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 1651916A4CE for ; Tue, 27 Jul 2004 20:17:27 +0000 (GMT) Received: from shrike.submonkey.net (cpc2-cdif3-6-0-cust204.cdif.cable.ntl.com [81.103.67.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9365543D2F for ; Tue, 27 Jul 2004 20:17:26 +0000 (GMT) (envelope-from setantae@submonkey.net) Received: from setantae by shrike.submonkey.net with local (Exim 4.41 (FreeBSD)) id 1BpYO3-0000Hv-PK; Tue, 27 Jul 2004 21:17:23 +0100 Date: Tue, 27 Jul 2004 21:17:23 +0100 From: Ceri Davies To: acpi@FreeBSD.org Message-ID: <20040727201723.GA424@submonkey.net> Mail-Followup-To: Ceri Davies , acpi@FreeBSD.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.6i Sender: Ceri Davies cc: ceri@submonkey.net Subject: Fatal trap 12 with ACPI enabled 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, 27 Jul 2004 20:17:27 -0000 --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I have a Compaq Presario 2178EA and am upgrading from 5.2.1-RELEASE to -CURRENT. ACPI in 5.2.1-RELEASE seems to work OK, but with the new kernel I get a fatal trap on boot when ACPI is enabled just after the hard disk is probed; details below. Since there's a lot of information to give here, I've put a copy of the ASL and a verbose boot log with ACPI both enabled and disabled up at http://shrike.submonkey.net/~setantae/acpi/ - I'll happily try various values of debug.acpi.disable if someone can give me a pointer which ones to start with. For the archives, the trap is: GEOM: Configure ad0s1, start 32256 length 15035779584 end 15035811839 GEOM: Configure ad0s2, start 15035811840 length 14966396928 end 300022087= 67 ata1-master: pio=3D0x0c wdma=3D0x22 udma=3D0xffffffff cable=3D80pin ATAPI_RESET time =3D 17040us =20 =20 Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address =3D 0x3c fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc04b5dea stack pointer =3D 0x10:0xc0c21c84 frame pointer =3D 0x10:0xc0c21cdc code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 0 (swapper) [thread 0] Stopped at ata_generic_transaction+0x6a6: testb $0x1,0x3c(%eax) db> tr ata_generic_transaction(c159e708) at ata_generic_transaction+0x6a6 ata_start(c14f1200,c14f1320,0,c07e1e01,57) at ata_start+0x17b ata_queue_request(c159e708,c,0,c,8) at ata_queue_request+0x185 ata_controlcmd(c14f12a8,8,0,0,0,0) at ata_controlcmd+0x80 ata_identify_devices(c14f1200) at ata_identify_devices+0x150 ata_boot_attach(0) at ata_boot_attach+0x27 run_interrupt_driven_config_hooks(0,c1ec00,c1e000,0,c0441325) at run_interrupt_driven_config_hooks+0x18 mi_startup() at mi_startup+0x96 begin() at begin+0x2c db> Ceri --=20 It is not tinfoil, it is my new skin. I am a robot. --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBBrhTocfcwTS3JF8RAoTaAKCtUuyNG8IKj8TxfDtd4GDXhRMWkACcDoJP nz0j7kpbrWI/cyEgbmFxBwM= =cID7 -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA-- From owner-freebsd-acpi@FreeBSD.ORG Tue Jul 27 21:22:49 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 3503016A4CE for ; Tue, 27 Jul 2004 21:22:49 +0000 (GMT) Received: from shrike.submonkey.net (cpc2-cdif3-6-0-cust204.cdif.cable.ntl.com [81.103.67.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id D675543D39 for ; Tue, 27 Jul 2004 21:22:48 +0000 (GMT) (envelope-from setantae@submonkey.net) Received: from setantae by shrike.submonkey.net with local (Exim 4.41 (FreeBSD)) id 1BpZPJ-0000Xx-S5; Tue, 27 Jul 2004 22:22:45 +0100 Date: Tue, 27 Jul 2004 22:22:45 +0100 From: Ceri Davies To: acpi@FreeBSD.org Message-ID: <20040727212245.GC424@submonkey.net> Mail-Followup-To: Ceri Davies , acpi@FreeBSD.org References: <20040727201723.GA424@submonkey.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kfjH4zxOES6UT95V" Content-Disposition: inline In-Reply-To: <20040727201723.GA424@submonkey.net> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.6i Sender: Ceri Davies cc: ceri@submonkey.net Subject: Re: Fatal trap 12 with ACPI enabled 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, 27 Jul 2004 21:22:49 -0000 --kfjH4zxOES6UT95V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 27, 2004 at 09:17:23PM +0100, Ceri Davies wrote: > =20 > Fatal trap 12: page fault while in kernel mode > cpuid =3D 0; apic id =3D 00 > fault virtual address =3D 0x3c > fault code =3D supervisor read, page not present > instruction pointer =3D 0x8:0xc04b5dea > stack pointer =3D 0x10:0xc0c21c84 > frame pointer =3D 0x10:0xc0c21cdc > code segment =3D base 0x0, limit 0xfffff, type 0x1b > =3D DPL 0, pres 1, def32 1, gran 1 > processor eflags =3D interrupt enabled, resume, IOPL =3D 0 > current process =3D 0 (swapper) > [thread 0] > Stopped at ata_generic_transaction+0x6a6: testb $0x1,0x3c(%eax) > db> tr > ata_generic_transaction(c159e708) at ata_generic_transaction+0x6a6 > ata_start(c14f1200,c14f1320,0,c07e1e01,57) at ata_start+0x17b > ata_queue_request(c159e708,c,0,c,8) at ata_queue_request+0x185 > ata_controlcmd(c14f12a8,8,0,0,0,0) at ata_controlcmd+0x80 > ata_identify_devices(c14f1200) at ata_identify_devices+0x150 > ata_boot_attach(0) at ata_boot_attach+0x27 > run_interrupt_driven_config_hooks(0,c1ec00,c1e000,0,c0441325) at > run_interrupt_driven_config_hooks+0x18 > mi_startup() at mi_startup+0x96 > begin() at begin+0x2c > db> Setting hint.apm.0.disabled =3D 0 fixes this. Ceri --=20 It is not tinfoil, it is my new skin. I am a robot. --kfjH4zxOES6UT95V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBBselocfcwTS3JF8RAgWjAJ9z6u3zFfIPe+prwwRbauBOMj7WWgCgkqxs k+TCsX5MBAgN/rfbgKPr188= =SFjy -----END PGP SIGNATURE----- --kfjH4zxOES6UT95V-- From owner-freebsd-acpi@FreeBSD.ORG Fri Jul 30 17:01:06 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 648B716A4CE; Fri, 30 Jul 2004 17:01:06 +0000 (GMT) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9C9743D3F; Fri, 30 Jul 2004 17:01:05 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.34] (adsl-67-127-84-57.dsl.snfc21.pacbell.net [67.127.84.57]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id i6UH0lra007105; Fri, 30 Jul 2004 10:00:47 -0700 Message-ID: <410A7E8E.5080902@root.org> Date: Fri, 30 Jul 2004 09:59:58 -0700 From: Nate Lawson User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 To: acpi@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Fwd: ACPI @ Ottawa Linux Symposium 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: Fri, 30 Jul 2004 17:01:06 -0000 Here's some nice info on the state of Linux ACPI and a general description of the issues involved. -------- Original Message -------- Date: 29 Jul 2004 23:34:18 -0400 From: Len Brown To: ACPI Developers FYI, Here are the slides I used to discuss ACPI at OLS last week: http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/doc/ACPI_OLS_2004.sxi (Open Office Format) Here is the paper from the proceedings: http://www.finux.org/Reprints/Reprint-Brown-OLS2004.pdf cheers, -Len