From owner-freebsd-acpi@FreeBSD.ORG Sun Oct 3 07:24:33 2010 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 740901065672 for ; Sun, 3 Oct 2010 07:24:33 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id C391D8FC17 for ; Sun, 3 Oct 2010 07:24:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id o937OTTb048787; Sun, 3 Oct 2010 18:24:30 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sun, 3 Oct 2010 18:24:29 +1100 (EST) From: Ian Smith To: "Alexandre \"Sunny\" Kovalenko" In-Reply-To: <1286051977.1655.45.camel@RabbitsDen.RabbitsLawn.verizon.net> Message-ID: <20101003174833.V62022@sola.nimnet.asn.au> References: <4C732522.1010400@gmail.com> <4CA556EB.902@gmail.com> <20101001144505.C62022@sola.nimnet.asn.au> <20101002142419.G62022@sola.nimnet.asn.au> <1286051977.1655.45.camel@RabbitsDen.RabbitsLawn.verizon.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Matt , freebsd-acpi@freebsd.org, Paul B Mahol Subject: Re: Sleep/Lenovo SL410 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, 03 Oct 2010 07:24:33 -0000 On Sat, 2 Oct 2010, Alexandre "Sunny" Kovalenko wrote: > On Sat, 2010-10-02 at 16:34 +1000, Ian Smith wrote: > > On Fri, 1 Oct 2010, Paul B Mahol wrote: > > > On 10/1/10, Ian Smith wrote: > > > > On Thu, 30 Sep 2010, Matt wrote: > > > > > Success! [..] > > > > > acpiconf -s4 causes shutdown, does not resume on power on. > > > > > > > > Suspend To Disk is not expected to work; your laptop (like most) has no > > > > BIOS support for S4, as per your hw.acpi.s4bios: 0 > > > > > > Suspend to disk does not work because FreeBSD does not support it. > > > (s4bios is irrelevant here) > > > > Ah, when did that break? It worked fine on my old Compaq 1500c ('99!) > > on FreeBSD 5.5, s4bios=1, though for another reason I couldn't usually > > run ACPI on it, and APM STD and STR work. I found a message from someone > > with a Dell Inspiron something a few years ago reporting S4BIOS working, > > modulo a fixable screen resume issue that he had resuming from S3 also. > On my IBM ThinkPad 701C "Butterfly" BIOS-supported suspend-to-disk broke > somewhere between 4.11 and 5.2.1. Upon resume in 5.2.1 system would go > into endless loop of ata timeouts and never come back. I haven't tried since 5.5. Have you tried it again with 7|8|9? I realise that machines supporting S4BIOS are becoming rarities (a bit like real modems vs 'winmodems' I guess) but has anyone heard of anyone succeeding - or failing - to hibernate with machines that used to work? I'm pretty sure I'd have noticed posts/PRs re this, in acpi@ at least. The 1500c is still in service, still using APM, so I can't pull it down to test either this or its big issue with ACPI back then (not switching to battery power on loss of AC - clunk!) Maybe when I get a Soekris or similar box going, paqi can be put out to pasture for its 12th birthday, like an old working horse :) cheers, Ian From owner-freebsd-acpi@FreeBSD.ORG Sun Oct 3 17:55:50 2010 Return-Path: Delivered-To: acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D15B1065679 for ; Sun, 3 Oct 2010 17:55:50 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 017308FC0C for ; Sun, 3 Oct 2010 17:55:49 +0000 (UTC) Received: by iwn10 with SMTP id 10so1291922iwn.13 for ; Sun, 03 Oct 2010 10:55:49 -0700 (PDT) Received: by 10.231.31.1 with SMTP id w1mr8803517ibc.162.1286127071199; Sun, 03 Oct 2010 10:31:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.166.77 with HTTP; Sun, 3 Oct 2010 10:30:51 -0700 (PDT) In-Reply-To: <20101004004508.R62022@sola.nimnet.asn.au> References: <20101003094814.2B50B106575D@hub.freebsd.org> <20101004004508.R62022@sola.nimnet.asn.au> From: Eitan Adler Date: Sun, 3 Oct 2010 13:30:51 -0400 Message-ID: To: Ian Smith Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: acpi@freebsd.org, freebsd-questions@freebsd.org Subject: Re: ACPI & battery issues 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, 03 Oct 2010 17:55:50 -0000 I was told to bring this to acpi@'s attention On Sun, Oct 3, 2010 at 10:47 AM, Ian Smith wrote: > In freebsd-questions Digest, Vol 330, Issue 10, Message: 5 > On Sat, 2 Oct 2010 10:42:23 -0400 Eitan Adler wrot= e: > > =C2=A0> I see > =C2=A0> ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for > =C2=A0> [EmbeddedControl] (20100331/evregion-588) > =C2=A0> ACPI Error (psparse-0633): Method parse/execution failed > =C2=A0> [\\_SB_.PCI0.LPCB.BAT1._BST] (Node 0xc6adba60), > =C2=A0> AE_NO_HARDWARE_RESPONSE > =C2=A0> > =C2=A0> repeatedly in dmesg > =C2=A0> > =C2=A0> sysctl's relating to battery information is also slow: > =C2=A0> % time sysctl hw.acpi.battery.state > =C2=A0> hw.acpi.battery.state: 7 > =C2=A0> sysctl hw.acpi.battery.state =C2=A00.00s user 2.18s system 72% cp= u 3.006 total > =C2=A0> > =C2=A0> % time sysctl hw.acpi.battery > =C2=A0> hw.acpi.battery.life: -1 > =C2=A0> hw.acpi.battery.time: -1 > =C2=A0> hw.acpi.battery.state: 7 > =C2=A0> hw.acpi.battery.units: 1 > =C2=A0> hw.acpi.battery.info_expire: 5 > =C2=A0> sysctl hw.acpi.battery =C2=A00.00s user 6.58s system 67% cpu 9.77= 9 total > =C2=A0> > =C2=A0> also note that the life and time are both negative one. > =C2=A0> > =C2=A0> This is on a Lenovo G530 laptop. > > The Embedded Controller timed out so battery info is unknown / bogus, > which appears quite likely the issue reported here: > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D150517 It might be the same issue - but I am able to use shutdown -p to shutdown. > > If you're sure you have the latest Lenovo BIOS/EC updates, try posting > your report above to the freebsd-acpi list, also providing OS version > (uname -a) and contents of /var/run/dmesg.boot I'm unsure if I have the latest BIOS, however the vendor's only update tool requires windows - which I don't have a copy of to run it. Machine info: FreeBSD AlphaBeta.local 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 http://isis.poly.edu/~eitan/files/dmesg.boot If its relevant here is acpidump -dt http://isis.poly.edu/~eitan/files/AlphaBeta.acpidump.asl.gz --=20 Eitan Adler From owner-freebsd-acpi@FreeBSD.ORG Mon Oct 4 11:06:50 2010 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 EC81E1065670 for ; Mon, 4 Oct 2010 11:06:50 +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 BFF638FC2E for ; Mon, 4 Oct 2010 11:06:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o94B6oM9065740 for ; Mon, 4 Oct 2010 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o94B6oq0065738 for freebsd-acpi@FreeBSD.org; Mon, 4 Oct 2010 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 4 Oct 2010 11:06:50 GMT Message-Id: <201010041106.o94B6oq0065738@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, 04 Oct 2010 11:06:51 -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/150517 acpi [acpi] acpi_ec does not work properly on Lenovo S10[e] 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 o amd64/144551 acpi [acpi] ACPI issues on SuperMicro X7SPA-H o 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/142263 acpi [acpi] ACPI regression on Asus K8N7-E deluxe motherboa o kern/142009 acpi [acpi] [panic] Panic in AcpiNsGetAttachedObject o amd64/140751 acpi [acpi] BIOS resource allocation and FreeBSD ACPI in TO o kern/139088 acpi [acpi] ACPI Exception: AE_AML_INFINITE_LOOP error o amd64/138210 acpi [acpi] acer aspire 5536 ACPI problems (S3, brightness, o bin/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/135070 acpi [acpi] [patch] BIOS resource allocation and FreeBSD AC o kern/132602 acpi [acpi] ACPI Problem with Intel SS4200: System does not o kern/130683 acpi [ACPI] shutdown hangs after syncing disks - ACPI race? o i386/129953 acpi [acpi] ACPI timeout (CDROM) with Shuttle X27D o kern/129618 acpi [acpi] Problem with ACPI on HP Pavilion DV2899 laptop o kern/129563 acpi [acpi] sleep broken on IBM/Lenovo T61 in amd64 mode p kern/128634 acpi [patch] fix acpi_asus(4) in asus a6f laptop o kern/124744 acpi [acpi] [patch] incorrect _BST result validation for To o kern/124412 acpi [acpi] power off error on Toshiba M40 laptop o kern/123039 acpi [acpi] ACPI AML_BUFFER_LIMIT errors during boot o kern/121504 acpi [patch] Correctly set hw.acpi.osname on certain machin o amd64/121439 acpi [boot] Installation of FreeBSD 7.0 fails: ACPI problem o kern/121102 acpi [acpi_fujitsu] [patch] update acpi_fujitsu for the P80 o kern/120515 acpi [acpi] [patch] acpi_alloc_wakeup_handler: can't alloc o kern/119356 acpi [acpi]: i386 ACPI wakeup not work due resource exhaust o kern/119200 acpi [acpi] Lid close switch suspends CPU for 1 second on H o kern/118973 acpi [acpi]: Kernel panic with acpi boot o kern/116939 acpi [acpi] PCI-to-PCI misconfigured for bus three and can o i386/114562 acpi [acpi] cardbus is dead after s3 on Thinkpad T43 with a o kern/114165 acpi [acpi] Dell C810 - ACPI problem s kern/112544 acpi [acpi] [patch] Add High Precision Event Timer Driver f o kern/108954 acpi [acpi] 'sleep(1)' sleeps >1 seconds when speedstep (Cx o kern/108695 acpi [acpi]: Fatal trap 9: general protection fault when in o kern/108488 acpi [acpi] ACPI-1304: *** Error: Method execution failed o kern/108017 acpi [acpi]: Acer Aspire 5600 o 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 o kern/104625 acpi ACPI on ASUS A8N-32 SLI/ASUS P4P800 does not show ther o kern/102252 acpi acpi thermal does not work on Abit AW8D (intel 975) o kern/97383 acpi Volume buttons on IBM Thinkpad crash system with ACPI s i386/91748 acpi acpi problem on Acer TravelMare 4652LMi (nvidia panic, s kern/91038 acpi [panic] [ata] [acpi] 6.0-RELEASE on Fujitsu Siemens Am s kern/90243 acpi Laptop fan doesn't turn off (ACPI enabled) (Packard Be o i386/83018 acpi [install] Installer will not boot on Asus P4S8X BIOS 1 o i386/79081 acpi ACPI suspend/resume not working on HP nx6110 o kern/76950 acpi ACPI wrongly blacklisted on Micron ClientPro 766Xi sys o kern/73823 acpi [request] acpi / power-on by timer support o i386/72566 acpi ACPI, FreeBSD disables fan on Compaq Armada 1750 o i386/69750 acpi Boot without ACPI failed on ASUS L5 o kern/56024 acpi ACPI suspend drains battery while in S3 o i386/55661 acpi ACPI suspend/resume problem on ARMADA M700 57 problems total. From owner-freebsd-acpi@FreeBSD.ORG Tue Oct 5 09:10:04 2010 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 6A2B8106566C for ; Tue, 5 Oct 2010 09:10: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 3A9308FC1E for ; Tue, 5 Oct 2010 09:10:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o959A4ot078618 for ; Tue, 5 Oct 2010 09:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o959A41C078615; Tue, 5 Oct 2010 09:10:04 GMT (envelope-from gnats) Date: Tue, 5 Oct 2010 09:10:04 GMT Message-Id: <201010050910.o959A41C078615@freefall.freebsd.org> To: freebsd-acpi@FreeBSD.org From: Andriy Gapon Cc: Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) 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: Tue, 05 Oct 2010 09:10:04 -0000 The following reply was made to PR kern/150517; it has been noted by GNATS. From: Andriy Gapon To: David Naylor Cc: bug-followup@freebsd.org Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) Date: Tue, 05 Oct 2010 12:09:02 +0300 on 02/10/2010 09:31 David Naylor said the following: > On Monday 27 September 2010 07:53:51 Andriy Gapon wrote: >> Since you already looked at the linux code, could you please post a link to >> a place where the problematic condition is handled there? >> >> P.S. A service like http://lxr.linux.no/ or similar might be convenient. > > Sorry for the slow reply. Your email was mistaken as spam. I've told gmail > to behave. > > It has been a long time since I looked at the code. The function in question > is http://lxr.linux.no/linux+v2.6.35.7/drivers/acpi/ec.c#L217 with the actual > check for controller reset at L238. > > Of note is the delay at L254. It looks like it is almost the same thing my > patch does, except it waits before whereas my patch waits after. David, can you dig up what kind of error messages you were getting from EC before your patch? I also looked at your changes and at what Linux does and came up with some changes to make our EC code more robust. They are significantly based on your patch, but also add some additional logic from Linux code. Can you try the patch? http://people.freebsd.org/~avg/acpi_ec.patch Thanks a lot! P.S. I can describe why I didn't include some parts of your changes and what new changes I made and "borrowed" from Linux, but later, if you'd like. -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Tue Oct 5 18:00:08 2010 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 066BE106564A for ; Tue, 5 Oct 2010 18:00:07 +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 BA91C8FC15 for ; Tue, 5 Oct 2010 18:00:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o95I07nO031873 for ; Tue, 5 Oct 2010 18:00:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o95I07HB031862; Tue, 5 Oct 2010 18:00:07 GMT (envelope-from gnats) Date: Tue, 5 Oct 2010 18:00:07 GMT Message-Id: <201010051800.o95I07HB031862@freefall.freebsd.org> To: freebsd-acpi@FreeBSD.org From: David Naylor Cc: Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Naylor List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 18:00:08 -0000 The following reply was made to PR kern/150517; it has been noted by GNATS. From: David Naylor To: Andriy Gapon Cc: bug-followup@freebsd.org Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) Date: Tue, 5 Oct 2010 19:54:14 +0200 --nextPart3785335.Aben0vuXi3 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Tuesday 05 October 2010 11:09:02 Andriy Gapon wrote: > on 02/10/2010 09:31 David Naylor said the following: > > On Monday 27 September 2010 07:53:51 Andriy Gapon wrote: > >> Since you already looked at the linux code, could you please post a li= nk > >> to a place where the problematic condition is handled there? > >>=20 > >> P.S. A service like http://lxr.linux.no/ or similar might be convenien= t. > >=20 > > Sorry for the slow reply. Your email was mistaken as spam. I've told > > gmail to behave. > >=20 > > It has been a long time since I looked at the code. The function in > > question is http://lxr.linux.no/linux+v2.6.35.7/drivers/acpi/ec.c#L217 > > with the actual check for controller reset at L238. > >=20 > > Of note is the delay at L254. It looks like it is almost the same thing > > my patch does, except it waits before whereas my patch waits after. >=20 > David, >=20 > can you dig up what kind of error messages you were getting from EC before > your patch? I ran a stress test of the EC by doing `while true; do acpiconf -i0; done` = and=20 the error messages that produced are: acpi_ec0: wait timed out (no response), forcing polled mode acpi_ec0: EcRead: failed waiting to get data ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for=20 [EmbeddedControl] (20100915/evregion-588) ACPI Error: Method parse/execution failed [\\_SB_.BAT0._STA] (Node=20 0xc4328520), AE_NO_HARDWARE_RESPONSE (20100915/psparse-633) ACPI Error: Method execution failed [\\_SB_.BAT0._STA] (Node 0xc4328520),=20 AE_NO_HARDWARE_RESPONSE (20100915/uteval-185) acpi_ec0: EcRead: failed waiting to get data ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for=20 [EmbeddedControl] (20100915/evregion-588) ACPI Error: Method parse/execution failed [\\_SB_.BAT0._STA] (Node=20 0xc4328520), AE_NO_HARDWARE_RESPONSE (20100915/psparse-633) ACPI Error: Method execution failed [\\_SB_.BAT0._STA] (Node 0xc4328520),=20 AE_NO_HARDWARE_RESPONSE (20100915/uteval-185) acpi_ec0: EcRead: failed waiting to get data ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for=20 [EmbeddedControl] (20100915/evregion-588) ACPI Error: Method parse/execution failed [\\_SB_.BAT0.UPBS] (Node=20 0xc43284a0), AE_NO_HARDWARE_RESPONSE (20100915/psparse-633) ACPI Error: Method parse/execution failed [\\_SB_.BAT0._BST] (Node=20 0xc43284e0), AE_NO_HARDWARE_RESPONSE (20100915/psparse-633) acpi_ec0: EcRead: failed waiting to get data ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for=20 [EmbeddedControl] (20100915/evregion-588) ACPI Error: Method parse/execution failed [\\_SB_.BAT0._STA] (Node=20 0xc4328520), AE_NO_HARDWARE_RESPONSE (20100915/psparse-633) ACPI Error: Method execution failed [\\_SB_.BAT0._STA] (Node 0xc4328520),=20 AE_NO_HARDWARE_RESPONSE (20100915/uteval-185) acpi_ec0: EcRead: failed waiting to get data ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for=20 [EmbeddedControl] (20100915/evregion-588) ACPI Error: Method parse/execution failed [\\_SB_.BAT0._STA] (Node=20 0xc4328520), AE_NO_HARDWARE_RESPONSE (20100915/psparse-633) ACPI Error: Method execution failed [\\_SB_.BAT0._STA] (Node 0xc4328520),=20 AE_NO_HARDWARE_RESPONSE (20100915/uteval-185) acpi_ec0: EcRead: failed waiting to get data ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for=20 [EmbeddedControl] (20100915/evregion-588) ACPI Error: Method parse/execution failed [\\_SB_.BAT0._BST] (Node=20 0xc43284e0), AE_NO_HARDWARE_RESPONSE (20100915/psparse-633) acpi_ec0: EcRead: failed waiting to get data ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for=20 [EmbeddedControl] (20100915/evregion-588) ACPI Error: Method parse/execution failed [\\_TZ_.TZ00._TMP] (Node=20 0xc4328b80), AE_NO_HARDWARE_RESPONSE (20100915/psparse-633) The messages are not always consistent; sometimes they occur during boot. = =20 Also sometimes the EC fails to powerdown the computer. =20 > I also looked at your changes and at what Linux does and came up with some > changes to make our EC code more robust. They are significantly based on > your patch, but also add some additional logic from Linux code. >=20 > Can you try the patch? > http://people.freebsd.org/~avg/acpi_ec.patch > Thanks a lot! Two notes about your patch: - EcCheckStatus has changed position in the file resulting in a larger tha= n=20 required change. =20 - You no longer dynamically switch to polled mode. Was that intentional? Your patchs works. No errors were reported during the stress test, however= =20 running acpiconf takes a noticeably longer time to complete (before and wit= h=20 my patch it was instantaneous). Setting debug.acpi.ec.timeout=3D25 improve= s=20 responsiveness (reducing to 5 resulting in GPE query failed messages). =20 Accoring to time acpiconf takes upto 3 seconds to complete, after setting=20 debug.acpi.ec.timeout it takes upto 0.24 seconds. =20 I changed EC_POLL_DELAY back to 5 and that didn't change anything. =20 > P.S. I can describe why I didn't include some parts of your changes and > what new changes I made and "borrowed" from Linux, but later, if you'd > like. --nextPart3785335.Aben0vuXi3 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEABECAAYFAkyrZkoACgkQUaaFgP9pFrJNvgCfTh+WLv+e8iUj45svPg39is4L EdgAoI72O51NeYgANB03UpwXC70L9gFg =nPj/ -----END PGP SIGNATURE----- --nextPart3785335.Aben0vuXi3-- From owner-freebsd-acpi@FreeBSD.ORG Tue Oct 5 18:30:06 2010 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 3D2101065674 for ; Tue, 5 Oct 2010 18:30:06 +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 11DB78FC0C for ; Tue, 5 Oct 2010 18:30:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o95IU52l063888 for ; Tue, 5 Oct 2010 18:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o95IU5vN063885; Tue, 5 Oct 2010 18:30:05 GMT (envelope-from gnats) Date: Tue, 5 Oct 2010 18:30:05 GMT Message-Id: <201010051830.o95IU5vN063885@freefall.freebsd.org> To: freebsd-acpi@FreeBSD.org From: Andriy Gapon Cc: Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) 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: Tue, 05 Oct 2010 18:30:06 -0000 The following reply was made to PR kern/150517; it has been noted by GNATS. From: Andriy Gapon To: David Naylor Cc: bug-followup@freebsd.org Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) Date: Tue, 05 Oct 2010 21:28:18 +0300 on 05/10/2010 20:54 David Naylor said the following: > On Tuesday 05 October 2010 11:09:02 Andriy Gapon wrote: >> Can you try the patch? >> http://people.freebsd.org/~avg/acpi_ec.patch >> Thanks a lot! > > Two notes about your patch: > - EcCheckStatus has changed position in the file resulting in a larger than > required change. Yes, it's now needed in a function that is defined earlier. I could just have added a declaration for EcCheckStatus(), but for some reason I decided to move its definition. > - You no longer dynamically switch to polled mode. Was that intentional? Yes. My opinion is that it should be up to user to forcefully switch to polled mode. Although perhaps this is an unwelcome change for some users. Need to weight pros and cons. > Your patchs works. No errors were reported during the stress test, however > running acpiconf takes a noticeably longer time to complete (before and with > my patch it was instantaneous). Setting debug.acpi.ec.timeout=25 improves > responsiveness (reducing to 5 resulting in GPE query failed messages). > > Accoring to time acpiconf takes upto 3 seconds to complete, after setting > debug.acpi.ec.timeout it takes upto 0.24 seconds. > > I changed EC_POLL_DELAY back to 5 and that didn't change anything. I will investigate this. Thank you! -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Tue Oct 5 19:10:03 2010 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 81474106564A for ; Tue, 5 Oct 2010 19:10:03 +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 531D38FC08 for ; Tue, 5 Oct 2010 19:10:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o95JA3fP005822 for ; Tue, 5 Oct 2010 19:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o95JA3ox005819; Tue, 5 Oct 2010 19:10:03 GMT (envelope-from gnats) Date: Tue, 5 Oct 2010 19:10:03 GMT Message-Id: <201010051910.o95JA3ox005819@freefall.freebsd.org> To: freebsd-acpi@FreeBSD.org From: David Naylor Cc: Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Naylor List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 19:10:03 -0000 The following reply was made to PR kern/150517; it has been noted by GNATS. From: David Naylor To: Andriy Gapon Cc: bug-followup@freebsd.org Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) Date: Tue, 5 Oct 2010 21:01:35 +0200 --nextPart3774253.k86G1yU3gG Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Tuesday 05 October 2010 20:28:18 Andriy Gapon wrote: > on 05/10/2010 20:54 David Naylor said the following: > > On Tuesday 05 October 2010 11:09:02 Andriy Gapon wrote: > >> Can you try the patch? > >> http://people.freebsd.org/~avg/acpi_ec.patch > >> Thanks a lot! > >=20 > > Two notes about your patch: > > - EcCheckStatus has changed position in the file resulting in a larger > > than > >=20 > > required change. >=20 > Yes, it's now needed in a function that is defined earlier. > I could just have added a declaration for EcCheckStatus(), but for some > reason I decided to move its definition. >=20 > > - You no longer dynamically switch to polled mode. Was that > > intentional? >=20 > Yes. My opinion is that it should be up to user to forcefully switch to > polled mode. Although perhaps this is an unwelcome change for some users. > Need to weight pros and cons. >=20 > > Your patchs works. No errors were reported during the stress test, > > however running acpiconf takes a noticeably longer time to complete > > (before and with my patch it was instantaneous). Setting > > debug.acpi.ec.timeout=3D25 improves responsiveness (reducing to 5 > > resulting in GPE query failed messages). > >=20 > > Accoring to time acpiconf takes upto 3 seconds to complete, after setti= ng > > debug.acpi.ec.timeout it takes upto 0.24 seconds. > >=20 > > I changed EC_POLL_DELAY back to 5 and that didn't change anything. >=20 > I will investigate this. > Thank you! Thanks, I've tried but have not been able to isolate the cause. Polled mod= e=20 works perfectly. Something my patch was unable to do. =20 --nextPart3774253.k86G1yU3gG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEABECAAYFAkyrdhMACgkQUaaFgP9pFrLHiQCeM+1kVlq4poGSZ3rdEdornCuI PrMAn21LNhbMKbSgo+g3fBoVQa5YE9Ft =PBE8 -----END PGP SIGNATURE----- --nextPart3774253.k86G1yU3gG-- From owner-freebsd-acpi@FreeBSD.ORG Wed Oct 6 11:30:07 2010 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 057B9106566C for ; Wed, 6 Oct 2010 11:30:06 +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 E28B68FC14 for ; Wed, 6 Oct 2010 11:30:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o96BU6B8072380 for ; Wed, 6 Oct 2010 11:30:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o96BU68F072377; Wed, 6 Oct 2010 11:30:06 GMT (envelope-from gnats) Date: Wed, 6 Oct 2010 11:30:06 GMT Message-Id: <201010061130.o96BU68F072377@freefall.freebsd.org> To: freebsd-acpi@FreeBSD.org From: Andriy Gapon Cc: Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) 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: Wed, 06 Oct 2010 11:30:07 -0000 The following reply was made to PR kern/150517; it has been noted by GNATS. From: Andriy Gapon To: David Naylor Cc: bug-followup@freebsd.org Subject: Re: kern/150517: [acpi] acpi_ec does not work properly on Lenovo S10[e] (due to dynamic switching to polled mode) Date: Wed, 06 Oct 2010 14:24:46 +0300 on 05/10/2010 22:01 David Naylor said the following: > Thanks, I've tried but have not been able to isolate the cause. Polled mode > works perfectly. Something my patch was unable to do. David, when you see those long delays, do you have polling enabled or disabled? Also, before my patch, did your system use to fallback to polled mode automatically? Thanks! -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Thu Oct 7 16:46:39 2010 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 E75881065670 for ; Thu, 7 Oct 2010 16:46:39 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 42C488FC0C for ; Thu, 7 Oct 2010 16:46:38 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA17487 for ; Thu, 07 Oct 2010 19:46:37 +0300 (EEST) (envelope-from avg@freebsd.org) Message-ID: <4CADF96D.8040908@freebsd.org> Date: Thu, 07 Oct 2010 19:46:37 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100920 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-acpi@freebsd.org X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: acpi_ec: request for review and testing 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, 07 Oct 2010 16:46:40 -0000 Here's a patch for acpi_ec that is developed in cooperation with David Naylor who also did all the testing: http://people.freebsd.org/~avg/acpi_ec.2.patch The patch quite aggressively changes a few things and tries to make logic more robust with respect to EC behavior. I ask everybody, who is able to help, to test the patch, please. I am interested in all kinds of reports. If your EC "misbehaves", then there is a chance that the patch will fix that. If your EC works fine, then make sure that I don't break it with the patch. Short description of the changes: - attempt to retry some commands for which it is possible (read, query) - always make a short sleep before checking EC status in polled mode - periodically poll EC status in interrupt mode - change logic for detecting broken interrupt delivery and falling back to polled mode - check that EC is ready for input before starting a new command, wait if necessary Big thanks in advance. -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Fri Oct 8 13:06:15 2010 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 CB1431065675 for ; Fri, 8 Oct 2010 13:06:15 +0000 (UTC) (envelope-from buganini@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id A08308FC1F for ; Fri, 8 Oct 2010 13:06:15 +0000 (UTC) Received: by pxi17 with SMTP id 17so279666pxi.13 for ; Fri, 08 Oct 2010 06:06:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=uSHXK90M/65Vsoz4+6n51KzFVHf2sYZexIErupwl86I=; b=bH8N/2FVapYJQcfKgPReHwL46uAmEw1HdyD6E7dm6QJdAGSCF3HhBi0KWgc5W8/b/5 sVdQYaDLyQxXnZ4gWtEDGofGFpuiL6cKKNB84ydwo7us5b22IbaKC+DD1C2BPo/Zgytb Ad8U9XWytiGAKd1toM1CmH4EUvPY5dbKVSydk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=lpBeSYMrqNCHsOyUXRjaF7Jv+KakOvmj3VUhesv4NTEmYIlMXcHSi2ByWU4uVl3tJw y6l/Ay9kU5jVvBp4JOIQmsvxZsy6dkkBlPg2E/LeCgsDITuuHyla3ka7mH5nLjipwJpP IsfnuvGHcrBK8rW5sIq6ts6TwU4SHsx80WLco= MIME-Version: 1.0 Received: by 10.114.132.2 with SMTP id f2mr2572015wad.131.1286541352581; Fri, 08 Oct 2010 05:35:52 -0700 (PDT) Received: by 10.231.31.195 with HTTP; Fri, 8 Oct 2010 05:35:52 -0700 (PDT) In-Reply-To: References: <20101003094814.2B50B106575D@hub.freebsd.org> <20101004004508.R62022@sola.nimnet.asn.au> Date: Fri, 8 Oct 2010 20:35:52 +0800 Message-ID: From: Buganini To: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: Re: ACPI & battery issues 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, 08 Oct 2010 13:06:15 -0000 My lenovo G450 laptop have same problem, battery state only works (and works well) when power cable is not plugged. I've tried http://people.freebsd.org/~avg/acpi_ec.2.patch with 9.0-CURRENT r213569 the problem still remains. -- Buganini From owner-freebsd-acpi@FreeBSD.ORG Fri Oct 8 15:34:39 2010 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 BE0BB106564A; Fri, 8 Oct 2010 15:34:39 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.31.25]) by mx1.freebsd.org (Postfix) with ESMTP id 7B8AD8FC0A; Fri, 8 Oct 2010 15:34:39 +0000 (UTC) Received: from [87.79.144.216] (helo=r500.local) by smtprelay02.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1P4ELR-0007CR-25; Fri, 08 Oct 2010 16:54:49 +0200 Date: Fri, 8 Oct 2010 16:53:16 +0200 From: Fabian Keil To: Andriy Gapon Message-ID: <20101008165316.04393116@r500.local> In-Reply-To: <4CADF96D.8040908@freebsd.org> References: <4CADF96D.8040908@freebsd.org> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd9.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/_1LP/Nh2rGHlAV9D.LkdASU"; protocol="application/pgp-signature" X-Df-Sender: 775067 Cc: freebsd-acpi@freebsd.org Subject: Re: acpi_ec: request for review and testing 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, 08 Oct 2010 15:34:39 -0000 --Sig_/_1LP/Nh2rGHlAV9D.LkdASU Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Andriy Gapon wrote: > Here's a patch for acpi_ec that is developed in cooperation with David > Naylor who also did all the testing: > http://people.freebsd.org/~avg/acpi_ec.2.patch Thanks a lot. =20 > The patch quite aggressively changes a few things and tries to make > logic more robust with respect to EC behavior. >=20 > I ask everybody, who is able to help, to test the patch, please. > I am interested in all kinds of reports. > If your EC "misbehaves", then there is a chance that the patch will fix > that. If your EC works fine, then make sure that I don't break it with > the patch. About three weeks ago I started getting boot problems which may or may not be acpi-related. I reported them on freebsd-current@ in the thread 'geli boot issues with recent kernels', the message id is <20100918155100.5b74cdb2@r500.local>. =20 I applied avg's patch yesterday and the system (ThinkPad R500) bootet successfully from battery, three times in a row. Of course this could just have been an coincidence and as I csup'ed before applying the patch the problem may also have been fixed in HEAD already, but I didn't see any obvious fixes there. I'll probably have time for some more tests this weekend. Fabian --Sig_/_1LP/Nh2rGHlAV9D.LkdASU Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkyvMF8ACgkQBYqIVf93VJ1A6wCgwOb9QwO8bsHtN0riuAqLN3rY MXwAn0mYDZ8a7tWV9bFRDRdvg9vspy03 =1Xhr -----END PGP SIGNATURE----- --Sig_/_1LP/Nh2rGHlAV9D.LkdASU-- From owner-freebsd-acpi@FreeBSD.ORG Fri Oct 8 16:13:11 2010 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 6958E106578A for ; Fri, 8 Oct 2010 16:13:11 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 9739D8FC19 for ; Fri, 8 Oct 2010 16:13:10 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA08719; Fri, 08 Oct 2010 19:13:07 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4CAF4313.4080800@icyb.net.ua> Date: Fri, 08 Oct 2010 19:13:07 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100920 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Buganini References: <20101003094814.2B50B106575D@hub.freebsd.org> <20101004004508.R62022@sola.nimnet.asn.au> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: ACPI & battery issues 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, 08 Oct 2010 16:13:11 -0000 on 08/10/2010 15:35 Buganini said the following: > My lenovo G450 laptop have same problem, > battery state only works (and works well) when power cable is not plugged. > > I've tried http://people.freebsd.org/~avg/acpi_ec.2.patch with > 9.0-CURRENT r213569 > the problem still remains. Do you get any new messages when that happens? If yes, can you post (all of) them? Verbose dmesg and ASL dump are welcome too. -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Fri Oct 8 17:18:25 2010 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 835F71065749; Fri, 8 Oct 2010 17:18:25 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de [80.67.31.31]) by mx1.freebsd.org (Postfix) with ESMTP id 158648FC19; Fri, 8 Oct 2010 17:18:24 +0000 (UTC) Received: from [87.79.144.216] (helo=r500.local) by smtprelay04.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1P4GaN-0006Ly-8e; Fri, 08 Oct 2010 19:18:23 +0200 Date: Fri, 8 Oct 2010 19:18:09 +0200 From: Fabian Keil To: Andriy Gapon Message-ID: <20101008191809.67921dc4@r500.local> In-Reply-To: <20101008165316.04393116@r500.local> References: <4CADF96D.8040908@freebsd.org> <20101008165316.04393116@r500.local> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd9.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_//VbypWtuBYpKOvkguEeonMf"; protocol="application/pgp-signature" X-Df-Sender: 775067 Cc: freebsd-acpi@freebsd.org Subject: Re: acpi_ec: request for review and testing 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, 08 Oct 2010 17:18:25 -0000 --Sig_//VbypWtuBYpKOvkguEeonMf Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Fabian Keil wrote: > Andriy Gapon wrote: >=20 > > Here's a patch for acpi_ec that is developed in cooperation with David > > Naylor who also did all the testing: > > http://people.freebsd.org/~avg/acpi_ec.2.patch >=20 > Thanks a lot. > =20 > > The patch quite aggressively changes a few things and tries to make > > logic more robust with respect to EC behavior. > >=20 > > I ask everybody, who is able to help, to test the patch, please. > > I am interested in all kinds of reports. > > If your EC "misbehaves", then there is a chance that the patch will fix > > that. If your EC works fine, then make sure that I don't break it with > > the patch. >=20 > About three weeks ago I started getting boot problems which may or > may not be acpi-related. I reported them on freebsd-current@ in > the thread 'geli boot issues with recent kernels', the message id > is <20100918155100.5b74cdb2@r500.local>. > =20 > I applied avg's patch yesterday and the system (ThinkPad R500) > bootet successfully from battery, three times in a row. >=20 > Of course this could just have been an coincidence and as I csup'ed > before applying the patch the problem may also have been fixed in HEAD > already, but I didn't see any obvious fixes there. A recent kernel without the patch just booted three times in a row, too, so all I can say for now is that the patch didn't cause any obvious problems. Fabian --Sig_//VbypWtuBYpKOvkguEeonMf Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkyvUl4ACgkQBYqIVf93VJ29CwCeIqoQJbS4T8zHe+rSEnI+5R2V a4IAn31E/q7y5LGBjHXNY7KSr9yui/Oy =h9Ox -----END PGP SIGNATURE----- --Sig_//VbypWtuBYpKOvkguEeonMf-- From owner-freebsd-acpi@FreeBSD.ORG Fri Oct 8 18:52:42 2010 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 16F6C106566B for ; Fri, 8 Oct 2010 18:52:42 +0000 (UTC) (envelope-from buganini@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id D2C418FC18 for ; Fri, 8 Oct 2010 18:52:41 +0000 (UTC) Received: by iwn8 with SMTP id 8so1538777iwn.13 for ; Fri, 08 Oct 2010 11:52:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=z5Zcns8CVFTLtruDApc5PDSVnOzbw7QkKjf5yn564Ag=; b=qvhWjAkcRaCi3GZo8Ibp0TXyDHHj0pbdGonNiWmK44B0zv4M5yNI+kJLT/wHdMTtiO cd4JUy+d+PcywpkihUVAlVNWzNqP/3nvEPGzbM3unuRkPAHHe/4A2IxYoYWInmX52X1q PjloenfJ18UKhfgQDJRtDcS1c8/yIhfYueo2g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=x9v1H3NgdeM/DOic7JMiGCiIs+dozAlQLx6ea6j36PNERztsq/r9MY/P5dMI3k0cPc tOGPptezq9GyFqTt2IjY2kI5arccb3SHzdqRlFVxC1TC3xL0TyCQLPsn3y9Rokf8/IFm y0D8uJN+jAVurlFbM0DPXpz3aeRyOKnS8q/v8= MIME-Version: 1.0 Received: by 10.231.31.1 with SMTP id w1mr2544695ibc.162.1286563960910; Fri, 08 Oct 2010 11:52:40 -0700 (PDT) Received: by 10.231.31.195 with HTTP; Fri, 8 Oct 2010 11:52:40 -0700 (PDT) In-Reply-To: <4CAF4313.4080800@icyb.net.ua> References: <20101003094814.2B50B106575D@hub.freebsd.org> <20101004004508.R62022@sola.nimnet.asn.au> <4CAF4313.4080800@icyb.net.ua> Date: Sat, 9 Oct 2010 02:52:40 +0800 Message-ID: From: Buganini To: Andriy Gapon Content-Type: text/plain; charset=UTF-8 Cc: freebsd-acpi@freebsd.org Subject: Re: ACPI & battery issues 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, 08 Oct 2010 18:52:42 -0000 On Sat, Oct 9, 2010 at 12:13 AM, Andriy Gapon wrote: > on 08/10/2010 15:35 Buganini said the following: >> My lenovo G450 laptop have same problem, >> battery state only works (and works well) when power cable is not plugged. >> >> I've tried http://people.freebsd.org/~avg/acpi_ec.2.patch with >> 9.0-CURRENT r213569 >> the problem still remains. > > Do you get any new messages when that happens? > If yes, can you post (all of) them? nothing new in dmesg when I plug/unplug power cable > Verbose dmesg and ASL dump are welcome too. http://security-hole.info/~buganini/dmesg.boot http://security-hole.info/~buganini/G450.asl -- Buganini From owner-freebsd-acpi@FreeBSD.ORG Fri Oct 8 19:03:35 2010 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 CEDC0106566B for ; Fri, 8 Oct 2010 19:03:35 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 228E58FC0A for ; Fri, 8 Oct 2010 19:03:34 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id WAA10451; Fri, 08 Oct 2010 22:03:32 +0300 (EEST) (envelope-from avg@icyb.net.ua) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1P4IE8-000Ap5-7i; Fri, 08 Oct 2010 22:03:32 +0300 Message-ID: <4CAF6B04.5010605@icyb.net.ua> Date: Fri, 08 Oct 2010 22:03:32 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100918 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Buganini References: <20101003094814.2B50B106575D@hub.freebsd.org> <20101004004508.R62022@sola.nimnet.asn.au> <4CAF4313.4080800@icyb.net.ua> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: ACPI & battery issues 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, 08 Oct 2010 19:03:35 -0000 on 08/10/2010 21:52 Buganini said the following: > On Sat, Oct 9, 2010 at 12:13 AM, Andriy Gapon wrote: >> on 08/10/2010 15:35 Buganini said the following: >>> My lenovo G450 laptop have same problem, >>> battery state only works (and works well) when power cable is not plugged. >>> >>> I've tried http://people.freebsd.org/~avg/acpi_ec.2.patch with >>> 9.0-CURRENT r213569 >>> the problem still remains. >> >> Do you get any new messages when that happens? >> If yes, can you post (all of) them? > nothing new in dmesg when I plug/unplug power cable And when you query battery state? >> Verbose dmesg and ASL dump are welcome too. > http://security-hole.info/~buganini/dmesg.boot > http://security-hole.info/~buganini/G450.asl Thanks! -- Andriy Gapon From owner-freebsd-acpi@FreeBSD.ORG Fri Oct 8 19:12:31 2010 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 B89C7106566B for ; Fri, 8 Oct 2010 19:12:31 +0000 (UTC) (envelope-from buganini@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 72EC88FC1F for ; Fri, 8 Oct 2010 19:12:31 +0000 (UTC) Received: by gxk8 with SMTP id 8so539409gxk.13 for ; Fri, 08 Oct 2010 12:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=rIGuNUvRIdSmtSO5yXG64VYZ1RrXmcB5y/1VUzL44qo=; b=wswElQH9yEq4o6HnXLp4auqN5gAMskWRsXOwAlFcrkyU88Ha/pBY6Eu1U6BtbQuRUC vys9Q9g5lJHtZXJ0jG3hIzDKrT9d+FMLCxuQ+meWznxFOgi6r3Ujco+CnHPxdJ3SbWAi oZnqauJ8GqfKd88flQYTgyq4NyRbLGhtBkU7w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=fxU4dAdqfDgs/Hbsm2XpkKVRAl9uyGpcWoljyHsjtwmltKzfBYTcqFxFV9JbZqroHE MdQILfz2JvhCIg8jrXMT+ifqywbDPE/vhDUwe1ds2w7SsB2YqfzNSLn3xueUdHiOLk5J 6qzxaiWol0fw2A38b2G7yyRXrkHbv8tpsMA3w= MIME-Version: 1.0 Received: by 10.151.92.9 with SMTP id u9mr3601111ybl.319.1286565149861; Fri, 08 Oct 2010 12:12:29 -0700 (PDT) Received: by 10.231.31.195 with HTTP; Fri, 8 Oct 2010 12:12:29 -0700 (PDT) In-Reply-To: <4CAF6B04.5010605@icyb.net.ua> References: <20101003094814.2B50B106575D@hub.freebsd.org> <20101004004508.R62022@sola.nimnet.asn.au> <4CAF4313.4080800@icyb.net.ua> <4CAF6B04.5010605@icyb.net.ua> Date: Sat, 9 Oct 2010 03:12:29 +0800 Message-ID: From: Buganini To: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: Re: ACPI & battery issues 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, 08 Oct 2010 19:12:31 -0000 On Sat, Oct 9, 2010 at 3:03 AM, Andriy Gapon wrote: > And when you query battery state? //boot with power cable plugged # sysctl hw.acpi.battery hw.acpi.battery.life: -1 hw.acpi.battery.time: -1 hw.acpi.battery.state: 7 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 # dmesg battery0: battery initialization failed, giving up //unplug # sysctl hw.acpi.battery hw.acpi.battery.life: 98 hw.acpi.battery.time: 220 hw.acpi.battery.state: 1 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 # dmesg system power profile changed to 'economy' acpi_acad0: Off Line //plug # sysctl hw.acpi.battery hw.acpi.battery.life: -1 hw.acpi.battery.time: -1 hw.acpi.battery.state: 7 hw.acpi.battery.units: 1 hw.acpi.battery.info_expire: 5 # dmesg system power profile changed to 'performance' acpi_acad0: On Line (no "battery0: battery initialization failed, giving up" this time) BTW, acpi_ibm is not suitable for lenovo G450, so some function key is not working. -- Buganini From owner-freebsd-acpi@FreeBSD.ORG Sat Oct 9 07:59:20 2010 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 4DA14106564A for ; Sat, 9 Oct 2010 07:59:20 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 944B08FC0C for ; Sat, 9 Oct 2010 07:59:19 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id KAA19862; Sat, 09 Oct 2010 10:59:16 +0300 (EEST) (envelope-from avg@icyb.net.ua) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1P4UKq-000EOV-9r; Sat, 09 Oct 2010 10:59:16 +0300 Message-ID: <4CB020D3.2050201@icyb.net.ua> Date: Sat, 09 Oct 2010 10:59:15 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100918 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: Buganini References: <20101003094814.2B50B106575D@hub.freebsd.org> <20101004004508.R62022@sola.nimnet.asn.au> <4CAF4313.4080800@icyb.net.ua> <4CAF6B04.5010605@icyb.net.ua> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@FreeBSD.org Subject: Re: ACPI & battery issues 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: Sat, 09 Oct 2010 07:59:20 -0000 on 08/10/2010 22:12 Buganini said the following: > On Sat, Oct 9, 2010 at 3:03 AM, Andriy Gapon wrote: >> And when you query battery state? > > //boot with power cable plugged > > # sysctl hw.acpi.battery > hw.acpi.battery.life: -1 > hw.acpi.battery.time: -1 > hw.acpi.battery.state: 7 > hw.acpi.battery.units: 1 > hw.acpi.battery.info_expire: 5 > > # dmesg > battery0: battery initialization failed, giving up If you don't see any error messages from EC, then this is probably not an EC issue. The problem might be in one of the battery drivers (acpi_smbat, acpi_cmbat) or entirely somewhere else. > //unplug > > # sysctl hw.acpi.battery > hw.acpi.battery.life: 98 > hw.acpi.battery.time: 220 > hw.acpi.battery.state: 1 > hw.acpi.battery.units: 1 > hw.acpi.battery.info_expire: 5 > > # dmesg > system power profile changed to 'economy' > acpi_acad0: Off Line > > //plug > > # sysctl hw.acpi.battery > hw.acpi.battery.life: -1 > hw.acpi.battery.time: -1 > hw.acpi.battery.state: 7 > hw.acpi.battery.units: 1 > hw.acpi.battery.info_expire: 5 > > # dmesg > system power profile changed to 'performance' > acpi_acad0: On Line > > (no "battery0: battery initialization failed, giving up" this time) > > > BTW, acpi_ibm is not suitable for lenovo G450, so some function key is > not working. > > -- > Buganini -- Andriy Gapon