From owner-freebsd-acpi@FreeBSD.ORG Sun Feb 19 03:51:01 2012 Return-Path: Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FCBE106564A for ; Sun, 19 Feb 2012 03:51:01 +0000 (UTC) (envelope-from pukku@mac.com) Received: from nk11p99mm-asmtpout003.mac.com (nk11p03mm-asmtp993.mac.com [17.158.233.224]) by mx1.freebsd.org (Postfix) with ESMTP id ECEF58FC13 for ; Sun, 19 Feb 2012 03:51:00 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from [10.0.1.2] ([24.60.203.242]) by nk11p03mm-asmtp993.mac.com (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTPSA id <0LZM00FQMD876U40@nk11p03mm-asmtp993.mac.com> for freebsd-acpi@FreeBSD.org; Sat, 18 Feb 2012 18:50:33 -0800 (PST) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7361,1.0.260,0.0.0000 definitions=2012-02-18_05:2012-02-17, 2012-02-18, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1202180347 From: Richard Morse Date: Sat, 18 Feb 2012 21:50:31 -0500 Message-id: To: freebsd-acpi@FreeBSD.org X-Mailer: Apple Mail (2.1257) Cc: Subject: Issue with hang on Thinkpad X120e when i/o ports disabled in bios X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2012 03:51:01 -0000 Hi! When I disable the Bluetooth card (or the Memory Card Slot) in the BIOS (Security > I/O Port Access), FreeBSD hangs at start up just after acpi0 ( on motherboard) shows up. I checked, and I do have the most recent BIOS version (and embedded controller version) installed. Is this something that is a known problem? Thanks, Ricky From owner-freebsd-acpi@FreeBSD.ORG Sun Feb 19 05:03:07 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5882F106564A for ; Sun, 19 Feb 2012 05:03:07 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id DA4AC8FC0C for ; Sun, 19 Feb 2012 05:03:06 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so3621620wib.13 for ; Sat, 18 Feb 2012 21:03:05 -0800 (PST) Received-SPF: pass (google.com: domain of kob6558@gmail.com designates 10.180.109.228 as permitted sender) client-ip=10.180.109.228; Authentication-Results: mr.google.com; spf=pass (google.com: domain of kob6558@gmail.com designates 10.180.109.228 as permitted sender) smtp.mail=kob6558@gmail.com; dkim=pass header.i=kob6558@gmail.com Received: from mr.google.com ([10.180.109.228]) by 10.180.109.228 with SMTP id hv4mr8900054wib.11.1329627785961 (num_hops = 1); Sat, 18 Feb 2012 21:03:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=dmvfkOkJtwKseVVyV2MwLgbrdDYW+HoNzVLHMR3rdxw=; b=o+Tyzyu0+lRbesGH6i3HuKTlphb3rqkeqRiq4zqjCtcDym1+JoSC7MIrvApO4y9N8u r68zMKo8CVLULtE9uPE7e5w44LFuytyzdxb42zl3TWbQRD12M5gIYEwVBSUszGS5w9CP AneU5u5G4eyF74s+pyOinL86CNESba+MLPcIk= MIME-Version: 1.0 Received: by 10.180.109.228 with SMTP id hv4mr7529817wib.11.1329627785893; Sat, 18 Feb 2012 21:03:05 -0800 (PST) Received: by 10.223.158.143 with HTTP; Sat, 18 Feb 2012 21:03:05 -0800 (PST) In-Reply-To: References: Date: Sat, 18 Feb 2012 21:03:05 -0800 Message-ID: From: Kevin Oberman To: Richard Morse Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-acpi@freebsd.org Subject: Re: Issue with hang on Thinkpad X120e when i/o ports disabled in bios X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2012 05:03:07 -0000 On Sat, Feb 18, 2012 at 6:50 PM, Richard Morse wrote: > Hi! When I disable the Bluetooth card (or the Memory Card Slot) in the BI= OS (Security > I/O Port Access), FreeBSD hangs at start up just after acpi0= ( on motherboard) shows up. I checked, and I do have the mos= t recent BIOS version (and embedded controller version) installed. > > Is this something that is a known problem? Not one I have seen on similar (but not identical) models. Have you done a verbose boot to confirm the place it hangs? Frequently the problem is with something that happens just after the last printed item comes out and verbose boot logs will often show that. Both the memory card slot and the Bluetooth are almost certainly connected to the USB, not directly to the PCI, so I tend to suspect USB (or USB related) issues, in which case this is hte wrong list. Of course, I certainly might be wrong. --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com From owner-freebsd-acpi@FreeBSD.ORG Sun Feb 19 07:46:17 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE6E5106566B for ; Sun, 19 Feb 2012 07:46:17 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 852C58FC0C for ; Sun, 19 Feb 2012 07:46:17 +0000 (UTC) Received: by pbcxa7 with SMTP id xa7so5864296pbc.13 for ; Sat, 18 Feb 2012 23:46:17 -0800 (PST) Received-SPF: pass (google.com: domain of sendtomatt@gmail.com designates 10.68.227.36 as permitted sender) client-ip=10.68.227.36; Authentication-Results: mr.google.com; spf=pass (google.com: domain of sendtomatt@gmail.com designates 10.68.227.36 as permitted sender) smtp.mail=sendtomatt@gmail.com; dkim=pass header.i=sendtomatt@gmail.com Received: from mr.google.com ([10.68.227.36]) by 10.68.227.36 with SMTP id rx4mr41291071pbc.165.1329637577184 (num_hops = 1); Sat, 18 Feb 2012 23:46:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; bh=LIddAAyX3/FNVWHnz1U1eNHZQB+NAyx4bYGdA2okISU=; b=jXQ6iiF7OkYXu5WNh4VxY68LRs24ZAvPZYBrWj5m2sNL8T+KjuNAGCuIqEmPY7ZKge dtgEgl4YyOML8eKi7lxYlLY5Kl0bNb8GzVB2MbaDscO9Q9BnkL66sT/a7djDH0f7Xo7N XmcVhEexfMgDbd0pc6hEMKcM0pdd1Dp7ziz8Q= Received: by 10.68.227.36 with SMTP id rx4mr34199571pbc.165.1329636121043; Sat, 18 Feb 2012 23:22:01 -0800 (PST) Received: from bakeneko.local ([74.195.19.178]) by mx.google.com with ESMTPS id 7sm21414388pbw.13.2012.02.18.23.21.55 (version=SSLv3 cipher=OTHER); Sat, 18 Feb 2012 23:21:58 -0800 (PST) Message-ID: <4F40A2D4.6000000@gmail.com> Date: Sat, 18 Feb 2012 23:20:52 -0800 From: matt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120217 Thunderbird/10.0.1 MIME-Version: 1.0 To: Hannes Mehnert References: <4E836C06.9070405@gmail.com> <4E8374A7.90105@gmail.com> <4E9BDF13.4040006@gmail.com> <4F38211D.4070305@mehnert.org> In-Reply-To: <4F38211D.4070305@mehnert.org> X-Enigmail-Version: 1.3.5 Content-Type: multipart/mixed; boundary="------------090206050209050701040502" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-acpi@freebsd.org, freebsd-current@freebsd.org Subject: Re: x220 notes X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2012 07:46:17 -0000 This is a multi-part message in MIME format. --------------090206050209050701040502 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 02/12/12 12:29, Hannes Mehnert wrote: > Hi, > > I recently got a X220 and installed -CURRENT (with kib's 13.1 patch) on= > it - let me add some notes on this thread. > > On 10/17/2011 03:53, Matt wrote: >> On 09/28/11 16:01, Kevin Oberman wrote: >>> On Wed, Sep 28, 2011 at 12:32 PM, Garrett Cooper = >>> wrote: >>>> On Wed, Sep 28, 2011 at 12:25 PM, Matt wrote:= >>>>> On 09/28/11 11:52, Garrett Cooper wrote: >>>>>> On Wed, Sep 28, 2011 at 11:48 AM, Matt wr= ote: >>>>>>> acpi_ibm needs "LEN0068" added to the list of ibm ids at the >>>>>>> beginning of >>>>>>> /usr/src/sys/dev/acpi_support/acpi_ibm.c...I'd write a patch but = that >>>>>>> machine is in a world of ports hurt right now :). >>>>>>> With this many of the sysctls and leds work, still no brightness >>>>>>> (w or >>>>>>> wout >>>>>>> intel DRI from Konstantin...thanks Konstantin!!) > (there's a pr about that kern/164538) > > >> I'm not sure if I mentioned this in another post, but I can confirm th= at >> adjusting brightness in ibm_acpi for me results in corrupting the fan >> speed, which makes me think that addresses have changed, widths/extent= s >> have changed, or something else is different. For what it's worth, >> thinkpad-acpi in Linux does this just fine, although I haven't >> determined if it's through the EC or ACPI...I am thinking EC however. >> >> I have a feeling the answer to brightness (aside from KMS patch for X,= >> which is seperate) might be comparing changelogs for thinkpad ec >> handlers on a platform that works like Linux...the code looks mostly >> similar...can anyone confirm if Open/NetBSD have issues with the >> backlight on these SandyBridge thinkpads? > The brightness work fine on Linux, but not on OpenBSD(-CURRENT). > > But on OpenBSD xbacklight (which uses randr) works to set the brightnes= s > once in X. This unfortunately does not work on FreeBSD (receiving "No > outputs have backlight property" when running xbacklight). > > > Cheers, > > Hannes > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o= rg" I got 10-CURRENT installed on the x220 again. 1. Standard GENERIC kernel 2. Buildworld/installworld from today's CVS 3. No DRM/KMS patches or any other "factors" 4. Witness KDB disabled in loader.conf (otherwise panic on suspend). 5. setting hw.pci.do_power_suspend=3D0 wil prevent some AE_NO_METHOD errors where it tries to set PCI express ports to D2 (the ports themselves, I think...not the attached device) This is what I've found as I investigate the backlight/resume issue. I am not very good at understanding ASL, but here's what I see. 1. _WAK calls a number of display related methods 2. There are apparently brightness related calls here, as well as some other video related calls 3. Some of this behavior depends on /VIGD, whatever that is. 4. The brightness calls seem to connect over LPC to the embedded controll= er 5. Some of the brightness methods check OSI for WIN7 I will add that iasl finds 35 errors in this fine piece of lenovo work. However, none of the errors appear to be near _wak. I've attached an acpidump asl if it helps anyone who has a better eye for ASL and resume/brightness problems. I think we can control brightness at least with acpi_video, it attaches but not correctly..."active=3D0"...I haven't= gone back over its source in comparison with ASL yet either. Probably acpi_ibm will work also, as the acpi methods seem to just call the embedded controller over the lpc bus? Unfortunately it seems something has changed with the ec, as some of the data becomes corrupt when acpi_ibm is loaded. Resume obviously works fine in Win7, works 80-95% of the time in Linux (seems like KMS fail when it doesn't resume on Linux), and it resumes fine on FreeBSD except no video. No bad messages in logs after resume. Matt --------------090206050209050701040502-- From owner-freebsd-acpi@FreeBSD.ORG Sun Feb 19 21:40:04 2012 Return-Path: Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCCBD106564A for ; Sun, 19 Feb 2012 21:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 959058FC13 for ; Sun, 19 Feb 2012 21:40:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1JLe4QM083416 for ; Sun, 19 Feb 2012 21:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1JLe4vb083415; Sun, 19 Feb 2012 21:40:04 GMT (envelope-from gnats) Date: Sun, 19 Feb 2012 21:40:04 GMT Message-Id: <201202192140.q1JLe4vb083415@freefall.freebsd.org> To: freebsd-acpi@FreeBSD.org From: Andriy Gapon Cc: Subject: Re: bin/126162: [acpi] ACPI autoload failed : loading required module "pci" - no such file or directories X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andriy Gapon List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2012 21:40:04 -0000 The following reply was made to PR bin/126162; it has been noted by GNATS. From: Andriy Gapon To: bug-followup@FreeBSD.org, adion@mail.ru Cc: Subject: Re: bin/126162: [acpi] ACPI autoload failed : loading required module "pci" - no such file or directories Date: Sun, 19 Feb 2012 23:32:25 +0200 The report seems rather old. Can the problem still be reproduced? On the newer releases the ACPI code is built into kernel and so there should not be any module loading issue in principle. -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Mon Feb 20 11:07:00 2012 Return-Path: Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CF21106567B for ; Mon, 20 Feb 2012 11:07:00 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5B5388FC1B for ; Mon, 20 Feb 2012 11:07:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1KB70TX090039 for ; Mon, 20 Feb 2012 11:07:00 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1KB6xU7090037 for freebsd-acpi@FreeBSD.org; Mon, 20 Feb 2012 11:06:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 20 Feb 2012 11:06:59 GMT Message-Id: <201202201106.q1KB6xU7090037@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-acpi@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-acpi@FreeBSD.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2012 11:07:00 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/164329 acpi [acpi] hw.acpi.thermal.tz0.temperature shows strange v o kern/163268 acpi [acpi_hp] fix driver detach in absence of CMI o kern/162859 acpi [acpi] ACPI battery/acline monitoring partialy working o kern/161715 acpi [acpi] Dell E6520 doesn't resume after ACPI suspend o kern/161713 acpi [acpi] Suspend on Dell E6520 o kern/160838 acpi [acpi] ACPI Battery Monitor Non-Functional o kern/160419 acpi [acpi_thermal] acpi_thermal kernel thread high CPU usa o kern/158689 acpi [acpi] value of sysctl hw.acpi.thermal.polling_rate ne o kern/154955 acpi [acpi] Keyboard or ACPI doesn't work on Lenovo S10-3 o kern/152438 acpi [acpi]: patch to acpi_asus(4) to add extra sysctls for o kern/152098 acpi [acpi] Lenovo T61p does not resume o i386/146715 acpi [acpi] Suspend works, resume not on a HP Probook 4510s o kern/145306 acpi [acpi]: Can't change brightness on HP ProBook 4510s f i386/144045 acpi [acpi] [panic] kernel trap with acpi enabled o i386/143798 acpi [acpi] shutdown problem with SiS K7S5A o kern/143420 acpi [acpi] ACPI issues with Toshiba o kern/142009 acpi [acpi] [panic] Panic in AcpiNsGetAttachedObject o kern/139088 acpi [acpi] ACPI Exception: AE_AML_INFINITE_LOOP error o amd64/138210 acpi [acpi] acer aspire 5536 ACPI problems (S3, brightness, f kern/137053 acpi [hang] FreeBSD 8.0 BETA2Compaq Mini 700 locks on boot o kern/137042 acpi [acpi] hp laptop's lcd not wakes up after suspend to r o i386/136008 acpi [acpi] Dell Vostro 1310 will not shutdown (Requires us o bin/135349 acpi [patch] teach acpidump(8) to disassemble arbitrary mem o kern/132602 acpi [acpi] ACPI Problem with Intel SS4200: System does not f kern/130683 acpi [ACPI] shutdown hangs after syncing disks - ACPI race? f i386/129953 acpi [acpi] ACPI timeout (CDROM) with Shuttle X27D p kern/128634 acpi [patch] fix acpi_asus(4) in asus a6f laptop o bin/126162 acpi [acpi] ACPI autoload failed : loading required module o kern/123039 acpi [acpi] ACPI AML_BUFFER_LIMIT errors during boot a i386/122887 acpi [panic] [atkbdc] 7.0-RELEASE on IBM HS20 panics immed o kern/121504 acpi [patch] Correctly set hw.acpi.osname on certain machin f kern/119200 acpi [acpi] Lid close switch suspends CPU for 1 second on H f kern/115947 acpi [hang] Dell poweredge 860 hangs when stressed and ACPI f i386/114562 acpi [acpi] cardbus is dead after s3 on Thinkpad T43 with a s kern/112544 acpi [acpi] [patch] Add High Precision Event Timer Driver f f kern/106924 acpi [acpi] ACPI resume returns g_vfs_done() errors and ker o kern/105537 acpi [acpi] problems in acpi on HP Compaq nc6320 f kern/102252 acpi acpi thermal does not work on Abit AW8D (intel 975) o kern/91594 acpi [acpi] FreeBSD > 5.4 w/ACPI fails to detect Intel Pro/ f i386/83018 acpi [install] Installer will not boot on Asus P4S8X BIOS 1 o kern/73823 acpi [request] acpi / power-on by timer support o kern/56024 acpi ACPI suspend drains battery while in S3 f i386/55661 acpi ACPI suspend/resume problem on ARMADA M700 43 problems total. From owner-freebsd-acpi@FreeBSD.ORG Tue Feb 21 18:58:33 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51399106564A for ; Tue, 21 Feb 2012 18:58:33 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 112A98FC19 for ; Tue, 21 Feb 2012 18:58:33 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) by cyrus.watson.org (Postfix) with ESMTPSA id 88B8046B0A; Tue, 21 Feb 2012 13:58:32 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 1B98AB915; Tue, 21 Feb 2012 13:58:32 -0500 (EST) From: John Baldwin To: freebsd-acpi@freebsd.org Date: Tue, 21 Feb 2012 13:57:13 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p10; KDE/4.5.5; amd64; ; ) References: <1328719807459-5467015.post@n5.nabble.com> <201202131014.33895.jhb@freebsd.org> <1329176306514-5480937.post@n5.nabble.com> In-Reply-To: <1329176306514-5480937.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201202211357.13783.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 21 Feb 2012 13:58:32 -0500 (EST) Cc: simplicissimus Subject: Re: ACPI for Asus Notebook N50Vc X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2012 18:58:33 -0000 On Monday, February 13, 2012 6:38:26 pm simplicissimus wrote: > Hello John, >=20 > Thank you very much for your patch. >=20 > This is how my laptop=E2=80=99s behaviour changed: >=20 > % sysctl -a | grep -i asus > hw.acpi.asus.lcd_brightness: 4 > dev.acpi.0.%desc: _ASUS_ Notebook > dev.acpi_asus.0.%desc: Asus N50Vc Laptop Extras > dev.acpi_asus.0.%driver: acpi_asus > dev.acpi_asus.0.%location: handle=3D\_SB_.ATKD > dev.acpi_asus.0.%pnpinfo: _HID=3DATK0100 _UID=3D16843008 > dev.acpi_asus.0.%parent: acpi0 >=20 > hw.acpi.asus.lcd_brightness shows the correct brightness (with acpi_video > loaded). >=20 > My notebook has a combined switch for wifi/bluetooth. > Without (the modified) acpi_asus the Wifi LED would be always off, althou= gh > wifi worked. > By pressing the button, bluetooth was toggled on/off with the correspondi= ng > LED going on/off. >=20 > Now the button cycles through these LED statuses: > both on > both off > wifi only > bluetooth only > Wifi stays on all the time, bluetooth works as it is supposed to (like it > did before). >=20 > Is there a chance to get ATK0110 events working? I tried xev, but had no > output there. >=20 > Thanks in advance Can you try this? BTW, someone should port the asus-laptop.c driver from=20 Linux over to replace acpi_asus.c. Index: acpi_asus.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =2D-- acpi_asus.c (revision 231973) +++ acpi_asus.c (working copy) @@ -379,6 +379,18 @@ static struct acpi_asus_model acpi_asus_models[] =3D .disp_set =3D "SDSP" }, { + .name =3D "N50Vc", + .bled_set =3D "BLED", + .wled_set =3D "WLED", + .brn_get =3D "GPLV", + .brn_set =3D "SPLV", +#if 0 + .lcd_set =3D "\\_SB.PCI0.SBRG.EC0._Q10", +#endif + .disp_get =3D "\\_SB.PCI0.P0P1.VGA.GETD", + .disp_set =3D "SDSP" + }, + { .name =3D "S1x", .mled_set =3D "MLED", .wled_set =3D "WLED", @@ -509,6 +521,9 @@ static struct { =20 ACPI_SERIAL_DECL(asus, "ACPI ASUS extras"); =20 +static int acpi_asus_wapf =3D 1; +TUNABLE_INT_FETCH("hw.acpi.asus.wapf" &acpi_asus_wapf); + /* Function prototypes */ static int acpi_asus_probe(device_t dev); static int acpi_asus_attach(device_t dev); @@ -724,6 +739,8 @@ acpi_asus_attach(device_t dev) { struct acpi_asus_softc *sc; struct acpi_softc *acpi_sc; + ACPI_OBJECT Arg; + ACPI_OBJECT_LIST Args; =20 ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__); =20 @@ -735,6 +752,9 @@ acpi_asus_attach(device_t dev) sc->sysctl_tree =3D SYSCTL_ADD_NODE(&sc->sysctl_ctx, SYSCTL_CHILDREN(acpi_sc->acpi_sysctl_tree), OID_AUTO, "asus", CTLFLAG_RD, 0, ""); + SYSCTL_ADD_INT(&sc->sysctl_ctx, SYSCTL_CHILDREN(sc->sysctl_tree), + OID_AUTO, "wapf", CTLFLAG_RD, &acpi_asus_wapf, 0, + "Argument to pass WAPF method during initialization"); =20 /* Hook up nodes */ for (int i =3D 0; acpi_asus_sysctls[i].name !=3D NULL; i++) { @@ -804,6 +824,9 @@ acpi_asus_attach(device_t dev) /* Activate hotkeys */ AcpiEvaluateObject(sc->handle, "BSTS", NULL, NULL); =20 + /* Configure wlan key. */ + acpi_SetInteger(sc->handle, "WAPF", acpi_asus_wapf); + /* Handle notifies */ if (sc->model->n_func =3D=3D NULL) sc->model->n_func =3D acpi_asus_notify; =2D-=20 John Baldwin From owner-freebsd-acpi@FreeBSD.ORG Tue Feb 21 19:00:33 2012 Return-Path: Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A23521065670 for ; Tue, 21 Feb 2012 19:00:33 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 77E138FC13 for ; Tue, 21 Feb 2012 19:00:33 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1LJ0XS8086576 for ; Tue, 21 Feb 2012 19:00:33 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1LJ0XFl086575; Tue, 21 Feb 2012 19:00:33 GMT (envelope-from gnats) Date: Tue, 21 Feb 2012 19:00:33 GMT Message-Id: <201202211900.q1LJ0XFl086575@freefall.freebsd.org> To: freebsd-acpi@FreeBSD.org From: John Baldwin Cc: Subject: Re: bin/126162: [acpi] ACPI autoload failed : loading required module " pci" - no such file or directories X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Baldwin List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2012 19:00:33 -0000 The following reply was made to PR bin/126162; it has been noted by GNATS. From: John Baldwin To: bug-followup@freebsd.org, adion@mail.ru Cc: Subject: Re: bin/126162: [acpi] ACPI autoload failed : loading required module "pci" - no such file or directories Date: Tue, 21 Feb 2012 13:57:59 -0500 Did you build a kernel without 'device pci'? -- John Baldwin From owner-freebsd-acpi@FreeBSD.ORG Wed Feb 22 00:43:38 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50C861065672 for ; Wed, 22 Feb 2012 00:43:38 +0000 (UTC) (envelope-from hans-wurst19@web.de) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id 27D388FC1B for ; Wed, 22 Feb 2012 00:43:37 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1S00Iz-0004BQ-Cm for freebsd-acpi@freebsd.org; Tue, 21 Feb 2012 16:43:37 -0800 Date: Tue, 21 Feb 2012 16:43:37 -0800 (PST) From: simplicissimus To: freebsd-acpi@freebsd.org Message-ID: <1329871417389-5503811.post@n5.nabble.com> In-Reply-To: <201202211357.13783.jhb@freebsd.org> References: <1328719807459-5467015.post@n5.nabble.com> <201202131014.33895.jhb@freebsd.org> <1329176306514-5480937.post@n5.nabble.com> <201202211357.13783.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: ACPI for Asus Notebook N50Vc X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2012 00:43:38 -0000 Thanks again for your time and the patch; unfortunately it gives me an error message: http://paste.pocoo.org/show/554781/ This is my modified acpi_asus.c : http://paste.pocoo.org/show/554783/ I hope I got the changes to the file right. Regards Simplicissimus -- View this message in context: http://freebsd.1045724.n5.nabble.com/ACPI-for-Asus-Notebook-N50Vc-tp5467015p5503811.html Sent from the freebsd-acpi mailing list archive at Nabble.com. From owner-freebsd-acpi@FreeBSD.ORG Wed Feb 22 19:27:22 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EFC11065670 for ; Wed, 22 Feb 2012 19:27:22 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 658E18FC12 for ; Wed, 22 Feb 2012 19:27:22 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) by cyrus.watson.org (Postfix) with ESMTPSA id A9FC746B0A; Wed, 22 Feb 2012 14:27:21 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 14D6AB941; Wed, 22 Feb 2012 14:27:21 -0500 (EST) From: John Baldwin To: freebsd-acpi@freebsd.org Date: Wed, 22 Feb 2012 08:30:32 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p10; KDE/4.5.5; amd64; ; ) References: <1328719807459-5467015.post@n5.nabble.com> <201202211357.13783.jhb@freebsd.org> <1329871417389-5503811.post@n5.nabble.com> In-Reply-To: <1329871417389-5503811.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201202220830.32110.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 22 Feb 2012 14:27:21 -0500 (EST) Cc: simplicissimus Subject: Re: ACPI for Asus Notebook N50Vc X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2012 19:27:22 -0000 On Tuesday, February 21, 2012 7:43:37 pm simplicissimus wrote: > Thanks again for your time and the patch; unfortunately it gives me an error > message: > > http://paste.pocoo.org/show/554781/ > > This is my modified acpi_asus.c : > > http://paste.pocoo.org/show/554783/ > > I hope I got the changes to the file right. > > Regards > Simplicissimus Oops, try this: Index: acpi_asus.c =================================================================== --- acpi_asus.c (revision 231983) +++ acpi_asus.c (working copy) @@ -379,6 +379,18 @@ static struct acpi_asus_model acpi_asus_models[] = .disp_set = "SDSP" }, { + .name = "N50Vc", + .bled_set = "BLED", + .wled_set = "WLED", + .brn_get = "GPLV", + .brn_set = "SPLV", +#if 0 + .lcd_set = "\\_SB.PCI0.SBRG.EC0._Q10", +#endif + .disp_get = "\\_SB.PCI0.P0P1.VGA.GETD", + .disp_set = "SDSP" + }, + { .name = "S1x", .mled_set = "MLED", .wled_set = "WLED", @@ -509,6 +521,9 @@ static struct { ACPI_SERIAL_DECL(asus, "ACPI ASUS extras"); +static int acpi_asus_wapf = 1; +TUNABLE_INT("hw.acpi.asus.wapf", &acpi_asus_wapf); + /* Function prototypes */ static int acpi_asus_probe(device_t dev); static int acpi_asus_attach(device_t dev); @@ -735,6 +750,9 @@ acpi_asus_attach(device_t dev) sc->sysctl_tree = SYSCTL_ADD_NODE(&sc->sysctl_ctx, SYSCTL_CHILDREN(acpi_sc->acpi_sysctl_tree), OID_AUTO, "asus", CTLFLAG_RD, 0, ""); + SYSCTL_ADD_INT(&sc->sysctl_ctx, SYSCTL_CHILDREN(sc->sysctl_tree), + OID_AUTO, "wapf", CTLFLAG_RD, &acpi_asus_wapf, 0, + "Argument to pass WAPF method during initialization"); /* Hook up nodes */ for (int i = 0; acpi_asus_sysctls[i].name != NULL; i++) { @@ -804,6 +822,9 @@ acpi_asus_attach(device_t dev) /* Activate hotkeys */ AcpiEvaluateObject(sc->handle, "BSTS", NULL, NULL); + /* Configure wlan key. */ + acpi_SetInteger(sc->handle, "WAPF", acpi_asus_wapf); + /* Handle notifies */ if (sc->model->n_func == NULL) sc->model->n_func = acpi_asus_notify; -- John Baldwin From owner-freebsd-acpi@FreeBSD.ORG Thu Feb 23 16:48:02 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1BA8106564A for ; Thu, 23 Feb 2012 16:48:02 +0000 (UTC) (envelope-from rea@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 8B0618FC19 for ; Thu, 23 Feb 2012 16:48:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codelabs.ru; s=two; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=m51bUTXUHpxmI9SN8R9+O5dO/gqOBVltFb6K+q6+kQ4=; b=T5yq8pWFVwHKweBdeb4miH6pAGjZnd7V6rueRcx85CjGiuahT4y9ZwGVQstre0CsZYijSpkvMjYVoMzTuhWpU+kii8JYgMBaNlQimwxG9YCwHlAoMJgm8v751xisI+e6y6YuqF9kRNJx+d4/4WRYc4vKRj8uNqWY4Bd+hvQJ7W8nLOHVw02wdNIg1bxtSnRGYqiZxYseqot1GHROsuitY1ZKhQWxLWQjmMM6bpOxbKG1cM+iTNrAmcUwels7WzJhXK5ajOgpleNGglnknVN773c1Od91hC1nNPbirtJMD6GZpB8ysSE03BgbzqZJyQZIU/yMQGwvUG5xozHOGjadCw==; Received: from phoenix.codelabs.ru (ppp91-77-211-162.pppoe.mtu-net.ru [91.77.211.162]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1S0bb4-0000hf-RQ; Thu, 23 Feb 2012 20:32:47 +0400 Date: Fri, 24 Feb 2012 00:32:52 +0400 From: Eygene Ryabinkin To: John Baldwin Message-ID: <0+M2vszb/dU82qXRQQVP0Kc9jc0@ncIseyzSKuLmU44390diuJpm5m4> References: <1328719807459-5467015.post@n5.nabble.com> <201202131014.33895.jhb@freebsd.org> <1329176306514-5480937.post@n5.nabble.com> <201202211357.13783.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: <201202211357.13783.jhb@freebsd.org> Sender: rea@codelabs.ru Cc: freebsd-acpi@freebsd.org, simplicissimus Subject: Re: ACPI for Asus Notebook N50Vc X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2012 16:48:03 -0000 --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Tue, Feb 21, 2012 at 01:57:13PM -0500, John Baldwin wrote: > Can you try this? BTW, someone should port the asus-laptop.c driver from= =20 > Linux over to replace acpi_asus.c. I was toying with such port some years ago. I will stick together my old patches and will try to push that WIP into the proper shape (unless someone will beat me at it). --=20 Eygene Ryabinkin ,,,^..^,,, [ Life's unfair - but root password helps! | codelabs.ru ] [ 82FE 06BC D497 C0DE 49EC 4FF0 16AF 9EAE 8152 ECFB | freebsd.org ] --17pEHd4RhPHOinZp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iF4EABEIAAYFAk9GonQACgkQFq+eroFS7Ptw9AD/VUbcbqtSSHbi2m+eDjkQU6EQ x8IxLRfQik48s1Y1AWUA/07zX4BIvuObCgJRNseanXEF0r0E4aa/YsVS0EBUC4CR =GJYn -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp-- From owner-freebsd-acpi@FreeBSD.ORG Fri Feb 24 07:25:13 2012 Return-Path: Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30D21106566C; Fri, 24 Feb 2012 07:25:13 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 09B168FC14; Fri, 24 Feb 2012 07:25:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1O7PCaU047140; Fri, 24 Feb 2012 07:25:12 GMT (envelope-from jh@freefall.freebsd.org) Received: (from jh@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1O7PCs3047136; Fri, 24 Feb 2012 07:25:12 GMT (envelope-from jh) Date: Fri, 24 Feb 2012 07:25:12 GMT Message-Id: <201202240725.q1O7PCs3047136@freefall.freebsd.org> To: jh@FreeBSD.org, freebsd-acpi@FreeBSD.org From: jh@FreeBSD.org Cc: Subject: Re: i386/55661: ACPI suspend/resume problem on ARMADA M700 X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2012 07:25:13 -0000 Synopsis: ACPI suspend/resume problem on ARMADA M700 State-Changed-From-To: feedback->closed State-Changed-By: jh State-Changed-When: Fri Feb 24 07:25:12 UTC 2012 State-Changed-Why: Feedback timeout. http://www.freebsd.org/cgi/query-pr.cgi?pr=55661 From owner-freebsd-acpi@FreeBSD.ORG Fri Feb 24 07:25:33 2012 Return-Path: Delivered-To: freebsd-acpi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25D131065670; Fri, 24 Feb 2012 07:25:33 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F1BE68FC14; Fri, 24 Feb 2012 07:25:32 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1O7PWm2047298; Fri, 24 Feb 2012 07:25:32 GMT (envelope-from jh@freefall.freebsd.org) Received: (from jh@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1O7PWRo047294; Fri, 24 Feb 2012 07:25:32 GMT (envelope-from jh) Date: Fri, 24 Feb 2012 07:25:32 GMT Message-Id: <201202240725.q1O7PWRo047294@freefall.freebsd.org> To: niebaopeng@gmail.com, jh@FreeBSD.org, freebsd-acpi@FreeBSD.org From: jh@FreeBSD.org Cc: Subject: Re: kern/102252: acpi thermal does not work on Abit AW8D (intel 975) X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2012 07:25:33 -0000 Synopsis: acpi thermal does not work on Abit AW8D (intel 975) State-Changed-From-To: feedback->closed State-Changed-By: jh State-Changed-When: Fri Feb 24 07:25:32 UTC 2012 State-Changed-Why: Feedback timeout. http://www.freebsd.org/cgi/query-pr.cgi?pr=102252