Re: cvs commit: src/sys/conf files src/sys/modules/acpi/acpi Makefile src/sys/dev/acpica acpi_battery.c acpi_smbat.c acpi_smbus.h acpiio.h

2005-11-08 Thread John Baldwin
On Tuesday 08 November 2005 08:44 am, M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > > [EMAIL PROTECTED] (Dag-Erling Smørgrav) writes: > : Nate Lawson <[EMAIL PROTECTED]> writes: > : > Some drivers require interrupts disabled, but it should be for a very > : > brief time. ac

Re: cvs commit: src/sys/conf files src/sys/modules/acpi/acpi Makefile src/sys/dev/acpica acpi_battery.c acpi_smbat.c acpi_smbus.h acpiio.h

2005-11-08 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> [EMAIL PROTECTED] (Dag-Erling Smørgrav) writes: : Nate Lawson <[EMAIL PROTECTED]> writes: : > Some drivers require interrupts disabled, but it should be for a very : > brief time. acpi_perf usually generates an SMI so that may be slow : > for your BIOS.

Re: cvs commit: src/sys/conf files src/sys/modules/acpi/acpi Makefile src/sys/dev/acpica acpi_battery.c acpi_smbat.c acpi_smbus.h acpiio.h

2005-11-08 Thread Bruno Ducrot
On Tue, Nov 08, 2005 at 09:51:10AM +0100, Dag-Erling Smørgrav wrote: > Nate Lawson <[EMAIL PROTECTED]> writes: > > Some drivers require interrupts disabled, but it should be for a very > > brief time. acpi_perf usually generates an SMI so that may be slow > > for your BIOS. Are you getting messag

Re: cvs commit: src/sys/conf files src/sys/modules/acpi/acpi Makefile src/sys/dev/acpica acpi_battery.c acpi_smbat.c acpi_smbus.h acpiio.h

2005-11-08 Thread Dag-Erling Smørgrav
Nate Lawson <[EMAIL PROTECTED]> writes: > Some drivers require interrupts disabled, but it should be for a very > brief time. acpi_perf usually generates an SMI so that may be slow > for your BIOS. Are you getting messages on console about the change > timing out? Nope. DES -- Dag-Erling Smørg

Re: cvs commit: src/sys/conf files src/sys/modules/acpi/acpi Makefile src/sys/dev/acpica acpi_battery.c acpi_smbat.c acpi_smbus.h acpiio.h

2005-11-07 Thread Nate Lawson
Dag-Erling Smørgrav wrote: Nate Lawson <[EMAIL PROTECTED]> writes: Dag-Erling Smørgrav wrote: Try running powerd with a 5000 ms polling interval. With the default of 500 ms, it never seems to stabilize, but keeps oscillating wildly in the 75-300 MHz range on my Dell Latitude D600. That is

Re: cvs commit: src/sys/conf files src/sys/modules/acpi/acpi Makefile src/sys/dev/acpica acpi_battery.c acpi_smbat.c acpi_smbus.h acpiio.h

2005-11-07 Thread Daniel O'Connor
On Mon, 7 Nov 2005 23:16, Dag-Erling Smørgrav wrote: > Nate Lawson <[EMAIL PROTECTED]> writes: > > Dag-Erling Smørgrav wrote: > > > Try running powerd with a 5000 ms polling interval. With the default > > > of 500 ms, it never seems to stabilize, but keeps oscillating wildly > > > in the 75-300 MH

Re: cvs commit: src/sys/conf files src/sys/modules/acpi/acpi Makefile src/sys/dev/acpica acpi_battery.c acpi_smbat.c acpi_smbus.h acpiio.h

2005-11-07 Thread Dag-Erling Smørgrav
Nate Lawson <[EMAIL PROTECTED]> writes: > Dag-Erling Smørgrav wrote: > > Try running powerd with a 5000 ms polling interval. With the default > > of 500 ms, it never seems to stabilize, but keeps oscillating wildly > > in the 75-300 MHz range on my Dell Latitude D600. > That is bad for performance

Re: cvs commit: src/sys/conf files src/sys/modules/acpi/acpi Makefile src/sys/dev/acpica acpi_battery.c acpi_smbat.c acpi_smbus.h acpiio.h

2005-11-06 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Nate Lawson writes: >Poul-Henning Kamp wrote: >> In message <[EMAIL PROTECTED]>, Nate Lawson writes: >>>I've said it many times: we need a real predictive algorithm. Taking a >>>single sample will always have hysteresis problems. >> >> >> I implemented my own alg

Re: cvs commit: src/sys/conf files src/sys/modules/acpi/acpi Makefile src/sys/dev/acpica acpi_battery.c acpi_smbat.c acpi_smbus.h acpiio.h

2005-11-06 Thread Nate Lawson
Poul-Henning Kamp wrote: In message <[EMAIL PROTECTED]>, Nate Lawson writes: I've said it many times: we need a real predictive algorithm. Taking a single sample will always have hysteresis problems. I implemented my own algorithm and it works OK for me. Not perfect, but OK: http://

Re: cvs commit: src/sys/conf files src/sys/modules/acpi/acpi Makefile src/sys/dev/acpica acpi_battery.c acpi_smbat.c acpi_smbus.h acpiio.h

2005-11-06 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Nate Lawson writes: >I've said it many times: we need a real predictive algorithm. Taking a >single sample will always have hysteresis problems. I implemented my own algorithm and it works OK for me. Not perfect, but OK: http://phk.freebsd.dk/patch/powe

Re: cvs commit: src/sys/conf files src/sys/modules/acpi/acpi Makefile src/sys/dev/acpica acpi_battery.c acpi_smbat.c acpi_smbus.h acpiio.h

2005-11-06 Thread Nate Lawson
Dag-Erling Smørgrav wrote: Mike Silbersack <[EMAIL PROTECTED]> writes: 2. Now, powerd seems to be causing ~30% system cpu load - top shows it switching between the "nanslp" and "ecpoll" wait states. This may be due to some other recent change to acpi, I'm not sure how to best test. Try run

Re: cvs commit: src/sys/conf files src/sys/modules/acpi/acpi Makefile src/sys/dev/acpica acpi_battery.c acpi_smbat.c acpi_smbus.h acpiio.h

2005-11-06 Thread Nate Lawson
Moving to the acpi@ list. Mike Silbersack wrote: Hm, since I cvsup'd from last week's releng_6 to today's, I noticed two acpi-related things. 1. The smart battery support seems to work properly for me. However, the sysctls hw.acpi.battery.life, hw.acpi.battery.time, and hw.acpi.battery.s

Re: cvs commit: src/sys/conf files src/sys/modules/acpi/acpi Makefile src/sys/dev/acpica acpi_battery.c acpi_smbat.c acpi_smbus.h acpiio.h

2005-11-06 Thread Dag-Erling Smørgrav
Mike Silbersack <[EMAIL PROTECTED]> writes: > 2. Now, powerd seems to be causing ~30% system cpu load - top shows > it switching between the "nanslp" and "ecpoll" wait states. This may > be due to some other recent change to acpi, I'm not sure how to best > test. Try running powerd with a 5000 m

Re: cvs commit: src/sys/conf files src/sys/modules/acpi/acpi Makefile src/sys/dev/acpica acpi_battery.c acpi_smbat.c acpi_smbus.h acpiio.h

2005-11-05 Thread Mike Silbersack
Hm, since I cvsup'd from last week's releng_6 to today's, I noticed two acpi-related things. 1. The smart battery support seems to work properly for me. However, the sysctls hw.acpi.battery.life, hw.acpi.battery.time, and hw.acpi.battery.state take forever to read, so a sysctl -a | grep ac

cvs commit: src/sys/conf files src/sys/modules/acpi/acpi Makefile src/sys/dev/acpica acpi_battery.c acpi_smbat.c acpi_smbus.h acpiio.h

2005-11-05 Thread Nate Lawson
njl 2005-11-05 23:55:56 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/conf files sys/modules/acpi/acpi Makefile sys/dev/acpica acpi_battery.c acpiio.h Added files: (Branch: RELENG_6) sys/dev/acpica acpi_