Re: ACPI & battery issues

2010-10-04 Thread Eitan Adler
> Eitan,
>
> I've attached the patch - this came from David Naylor on the ACPI list. If I 
> understand what he told me at the time, it doesn't fix the problem entirely - 
> but I can't pretend I understand ACPI. I know it means that on my S10e I no 
> longer get spammed with ACPI errors - and that my battery status and shutdown 
> work properly.
>
> The patch applies to /usr/src/sys/dev/acpica/acpi_ec.c
>
> It needs some new entries in /boot/loader.conf to adjust the timeouts and 
> delays - which you can tinker with. The settings given are what works for me 
> - but search the acpi list archives for David's original email:
>
> debug.acpi.ec.delay="200"
> debug.acpi.ec.gpe="1"
> debug.acpi.ec.timeout="100"
>
> Hope it helps,
>
>
>
> Peter Harrison.

Thanks for the patch. Unfortunately the hard drive in the laptop in
question broke and I'm waiting for a replacement. I will test it when
I reinstall freeBSD though. Thanks for the patch.



-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ACPI & battery issues

2010-10-04 Thread Peter Harrison
Saturday,  2 October 2010 at 17:01:41 -0400, Eitan Adler said:
> On Sat, Oct 2, 2010 at 4:01 PM,   wrote:
> > I get the same messages with the stock acpi on a Lenovo S10e. Someone on 
> > the acpi list (who's name I forget) wrote a patch which removes the error. 
> > If you think it might help I'll root it out and forward it on.
> 
> 
> I'll be happy to take a look at the patch and see if it solves my
> problem. does the patch just remove the error message or solve a
> specific problem that might be causing the issue?

Eitan,

I've attached the patch - this came from David Naylor on the ACPI list. If I 
understand what he told me at the time, it doesn't fix the problem entirely - 
but I can't pretend I understand ACPI. I know it means that on my S10e I no 
longer get spammed with ACPI errors - and that my battery status and shutdown 
work properly.

The patch applies to /usr/src/sys/dev/acpica/acpi_ec.c

It needs some new entries in /boot/loader.conf to adjust the timeouts and 
delays - which you can tinker with. The settings given are what works for me - 
but search the acpi list archives for David's original email:

debug.acpi.ec.delay="200"
debug.acpi.ec.gpe="1"
debug.acpi.ec.timeout="100"

Hope it helps,



Peter Harrison.

> 
> 
> 
> 
> >
> ...
> > I see
> > ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for
> > [EmbeddedControl] (20100331/evregion-588)
> > ACPI Error (psparse-0633): Method parse/execution failed
> > [\\_SB_.PCI0.LPCB.BAT1._BST] (Node 0xc6adba60),
> > AE_NO_HARDWARE_RESPONSE
> >
> > repeatedly in dmesg
> >
> > sysctl's relating to battery information is also slow:
> > % time sysctl hw.acpi.battery.state
> > hw.acpi.battery.state: 7
> > sysctl hw.acpi.battery.state  0.00s user 2.18s system 72% cpu 3.006 total
> >
> > % time 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
> > sysctl hw.acpi.battery  0.00s user 6.58s system 67% cpu 9.779 total
> >
> > also note that the life and time are both negative one.
> >
> > This is on a Lenovo G530 laptop.
> -- 
> Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ACPI & battery issues

2010-10-03 Thread Eitan Adler
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  wrote:
>
>  > I see
>  > ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for
>  > [EmbeddedControl] (20100331/evregion-588)
>  > ACPI Error (psparse-0633): Method parse/execution failed
>  > [\\_SB_.PCI0.LPCB.BAT1._BST] (Node 0xc6adba60),
>  > AE_NO_HARDWARE_RESPONSE
>  >
>  > repeatedly in dmesg
>  >
>  > sysctl's relating to battery information is also slow:
>  > % time sysctl hw.acpi.battery.state
>  > hw.acpi.battery.state: 7
>  > sysctl hw.acpi.battery.state  0.00s user 2.18s system 72% cpu 3.006 total
>  >
>  > % time 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
>  > sysctl hw.acpi.battery  0.00s user 6.58s system 67% cpu 9.779 total
>  >
>  > also note that the life and time are both negative one.
>  >
>  > 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=150517

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
r...@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



-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ACPI & battery issues

2010-10-03 Thread Ian Smith
In freebsd-questions Digest, Vol 330, Issue 10, Message: 5
On Sat, 2 Oct 2010 10:42:23 -0400 Eitan Adler  wrote:

 > I see
 > ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for
 > [EmbeddedControl] (20100331/evregion-588)
 > ACPI Error (psparse-0633): Method parse/execution failed
 > [\\_SB_.PCI0.LPCB.BAT1._BST] (Node 0xc6adba60),
 > AE_NO_HARDWARE_RESPONSE
 > 
 > repeatedly in dmesg
 > 
 > sysctl's relating to battery information is also slow:
 > % time sysctl hw.acpi.battery.state
 > hw.acpi.battery.state: 7
 > sysctl hw.acpi.battery.state  0.00s user 2.18s system 72% cpu 3.006 total
 > 
 > % time 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
 > sysctl hw.acpi.battery  0.00s user 6.58s system 67% cpu 9.779 total
 > 
 > also note that the life and time are both negative one.
 >
 > 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=150517

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

Good luck, Ian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ACPI & battery issues

2010-10-03 Thread David DEMELIER
2010/10/2 Eitan Adler :
> On Sat, Oct 2, 2010 at 4:01 PM,   wrote:
>> I get the same messages with the stock acpi on a Lenovo S10e. Someone on the 
>> acpi list (who's name I forget) wrote a patch which removes the error. If 
>> you think it might help I'll root it out and forward it on.
>
>
> I'll be happy to take a look at the patch and see if it solves my
> problem. does the patch just remove the error message or solve a
> specific problem that might be causing the issue?
>
>
>
>
>>
> ...
>> I see
>> ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for
>> [EmbeddedControl] (20100331/evregion-588)
>> ACPI Error (psparse-0633): Method parse/execution failed
>> [\\_SB_.PCI0.LPCB.BAT1._BST] (Node 0xc6adba60),
>> AE_NO_HARDWARE_RESPONSE
>>
>> repeatedly in dmesg
>>
>> sysctl's relating to battery information is also slow:
>> % time sysctl hw.acpi.battery.state
>> hw.acpi.battery.state: 7
>> sysctl hw.acpi.battery.state  0.00s user 2.18s system 72% cpu 3.006 total
>>
>> % time 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
>> sysctl hw.acpi.battery  0.00s user 6.58s system 67% cpu 9.779 total
>>
>> also note that the life and time are both negative one.
>>
>> This is on a Lenovo G530 laptop.
> --

I always heard that Lenovo/IBM has a great support for open source
systems, it seems not. Sad.

By the way, you should try to update the bios to the last version, it
may helps sometimes.

Cheers,

-- 
Demelier David
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ACPI & battery issues

2010-10-02 Thread Eitan Adler
On Sat, Oct 2, 2010 at 4:01 PM,   wrote:
> I get the same messages with the stock acpi on a Lenovo S10e. Someone on the 
> acpi list (who's name I forget) wrote a patch which removes the error. If you 
> think it might help I'll root it out and forward it on.


I'll be happy to take a look at the patch and see if it solves my
problem. does the patch just remove the error message or solve a
specific problem that might be causing the issue?




>
...
> I see
> ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for
> [EmbeddedControl] (20100331/evregion-588)
> ACPI Error (psparse-0633): Method parse/execution failed
> [\\_SB_.PCI0.LPCB.BAT1._BST] (Node 0xc6adba60),
> AE_NO_HARDWARE_RESPONSE
>
> repeatedly in dmesg
>
> sysctl's relating to battery information is also slow:
> % time sysctl hw.acpi.battery.state
> hw.acpi.battery.state: 7
> sysctl hw.acpi.battery.state  0.00s user 2.18s system 72% cpu 3.006 total
>
> % time 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
> sysctl hw.acpi.battery  0.00s user 6.58s system 67% cpu 9.779 total
>
> also note that the life and time are both negative one.
>
> This is on a Lenovo G530 laptop.
-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ACPI & battery issues

2010-10-02 Thread four . harrisons
Sorry for the top post - I'm on my mobile.

I get the same messages with the stock acpi on a Lenovo S10e. Someone on the 
acpi list (who's name I forget) wrote a patch which removes the error. If you 
think it might help I'll root it out and forward it on.

Regards,

Peter Harrison
www.4harrisons.blogspot.com


-
From:   "Eitan Adler" 
Subject:ACPI & battery issues
Date:   02nd October 2010 15:43

I see
ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for
[EmbeddedControl] (20100331/evregion-588)
ACPI Error (psparse-0633): Method parse/execution failed
[\\_SB_.PCI0.LPCB.BAT1._BST] (Node 0xc6adba60),
AE_NO_HARDWARE_RESPONSE

repeatedly in dmesg

sysctl's relating to battery information is also slow:
% time sysctl hw.acpi.battery.state
hw.acpi.battery.state: 7
sysctl hw.acpi.battery.state  0.00s user 2.18s system 72% cpu 3.006 total

% time 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
sysctl hw.acpi.battery  0.00s user 6.58s system 67% cpu 9.779 total

also note that the life and time are both negative one.

This is on a Lenovo G530 laptop.
-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


ACPI & battery issues

2010-10-02 Thread Eitan Adler
I see
ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for
[EmbeddedControl] (20100331/evregion-588)
ACPI Error (psparse-0633): Method parse/execution failed
[\\_SB_.PCI0.LPCB.BAT1._BST] (Node 0xc6adba60),
AE_NO_HARDWARE_RESPONSE

repeatedly in dmesg

sysctl's relating to battery information is also slow:
% time sysctl hw.acpi.battery.state
hw.acpi.battery.state: 7
sysctl hw.acpi.battery.state  0.00s user 2.18s system 72% cpu 3.006 total

% time 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
sysctl hw.acpi.battery  0.00s user 6.58s system 67% cpu 9.779 total

also note that the life and time are both negative one.

This is on a Lenovo G530 laptop.
-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"