Re: ACPI testing/debugging guide?

2003-06-17 Thread Scott Lambert
On Tue, Jun 17, 2003 at 03:54:13PM -0700, Hiten Pandya wrote:
> On Tue, Jun 17, 2003 at 04:29:59PM -0600, M. Warner Losh wrote:
> > In message: <[EMAIL PROTECTED]>
> > Dan Nelson <[EMAIL PROTECTED]> writes:
> > : ACPI records temperature in tenths of a Kelvin, if you can believe it :)
> > 
> > I don't believe that. 369.2K is 96.2C, which is over 200F.  That seems
> > to hot to me.  My laptop says 2982, which is either about 30C or
> > 15.2C.  Given how warm it is on my leg at the moment, I'd guess it is
> > centi-Celcius.  Maybe converted internally?
> 
>   Why not the use http://people.freebsd.org/~hmp/acpi_temp.c

19:07:39 Tue Jun 17 $ ./acpi_temp 
System temperature = 333.2 K  60.0 C  140.0 F

hw.acpi.thermal.tz0.temperature: 3332

but all that program does is read the oid and do the math just like I did 
on my TI-85.

-- 
Scott LambertKC5MLE   Unix SysAdmin
[EMAIL PROTECTED]  
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ACPI testing/debugging guide?

2003-06-17 Thread Barney Wolff
On Tue, Jun 17, 2003 at 03:54:34PM -0700, Kevin Oberman wrote:
> 
> I am also seeing the same thing on my T30 when I run ACPI. It's the
> temperature, not any of the others. It was reading 3186 and that seems
> about right for centi-degrees C. (31.86C) Kelvin simply does not
> compute.

According to the spec, it does.  Google for acpi - the official spec
is at the first entry.  Anyway, 318.6 - 273.2 = 45.4C, which is
perfectly reasonable.

-- 
Barney Wolff http://www.databus.com/bwresume.pdf
I'm available by contract or FT, in the NYC metro area or via the 'Net.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ACPI testing/debugging guide?

2003-06-17 Thread Scott Lambert
On Tue, Jun 17, 2003 at 06:40:26PM -0400, Barney Wolff wrote:
> On Tue, Jun 17, 2003 at 04:29:59PM -0600, M. Warner Losh wrote:
> > : 
> > : ACPI records temperature in tenths of a Kelvin, if you can believe it :)
> > 
> > I don't believe that. 369.2K is 96.2C, which is over 200F.  That seems
> > to hot to me.  My laptop says 2982, which is either about 30C or
> > 15.2C.  Given how warm it is on my leg at the moment, I'd guess it is
> > centi-Celcius.  Maybe converted internally?
> 
> Reading the source, it really is tenths Kelvin.  Is the 3692 the actual
> temp, or the CRT, which I assume is the critical temp?  In the output
> of sysctl hw.acpi.thermal.tz0 there are a bunch of values, only one of
> which is the current temp.  The rest are thresholds - AC appears to mean
> active cooling (aka fan), PSV seems to mean passive.

I was shocked at the dK values.  However, combined with the fact that
this thing is often too hot to touch with bare skin, I am temped to
believe in dK.  It is definately too hot.  Hence, my desire for the
ability to keep the fan on all the time.  :-)

Last night it was:
hw.acpi.thermal.tz0.temperature: 3352 (62.05C 143.69F)

Current values:
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 30
hw.acpi.thermal.tz0.temperature: 3302  (57.05C 134.69F)
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: 3692
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 3702
hw.acpi.thermal.tz0._ACx: 3692 3692 -1 -1 -1 -1 -1 -1 -1 -1


-- 
Scott LambertKC5MLE   Unix SysAdmin
[EMAIL PROTECTED]  
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ACPI testing/debugging guide?

2003-06-17 Thread Kevin Oberman
> Date: Tue, 17 Jun 2003 18:40:26 -0400
> From: Barney Wolff <[EMAIL PROTECTED]>
> Sender: [EMAIL PROTECTED]
> 
> On Tue, Jun 17, 2003 at 04:29:59PM -0600, M. Warner Losh wrote:
> > : 
> > : ACPI records temperature in tenths of a Kelvin, if you can believe it :)
> > 
> > I don't believe that. 369.2K is 96.2C, which is over 200F.  That seems
> > to hot to me.  My laptop says 2982, which is either about 30C or
> > 15.2C.  Given how warm it is on my leg at the moment, I'd guess it is
> > centi-Celcius.  Maybe converted internally?
> 
> Reading the source, it really is tenths Kelvin.  Is the 3692 the actual
> temp, or the CRT, which I assume is the critical temp?  In the output
> of sysctl hw.acpi.thermal.tz0 there are a bunch of values, only one of
> which is the current temp.  The rest are thresholds - AC appears to mean
> active cooling (aka fan), PSV seems to mean passive.

I am also seeing the same thing on my T30 when I run ACPI. It's the
temperature, not any of the others. It was reading 3186 and that seems
about right for centi-degrees C. (31.86C) Kelvin simply does not
compute.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ACPI testing/debugging guide?

2003-06-17 Thread Hiten Pandya
On Tue, Jun 17, 2003 at 04:29:59PM -0600, M. Warner Losh wrote:
> In message: <[EMAIL PROTECTED]>
> Dan Nelson <[EMAIL PROTECTED]> writes:
> : In the last episode (Jun 17), Scott Lambert said:
> : > Is there some list of actions to preform and data to collect that
> : > would assist with getting the ACPI stuff lined out?
> : > 
> : > I've read the acpiconf man page but don't know that it gives me any
> : > way to test for any specific functionality.  I've been gradually
> : > piecing together the meaning of S1, S2, S3, S4, and S5 and figuring
> : > out that the *_(button|switch)_state sysctl oids specify which state
> : > to go to on activation of that button rather than being a descriptor
> : > of the current state of the buttons.
> : > 
> : > I haven't figured out if the hw.acpi.thermal oids.  I think maybe
> : > ACPI doesn't recognize the hardware.  Is a thermal oid value of 3692
> : > actually 36.92 celcius or some scale from 0x to 0x?
> : 
> : ACPI records temperature in tenths of a Kelvin, if you can believe it :)
> 
> I don't believe that. 369.2K is 96.2C, which is over 200F.  That seems
> to hot to me.  My laptop says 2982, which is either about 30C or
> 15.2C.  Given how warm it is on my leg at the moment, I'd guess it is
> centi-Celcius.  Maybe converted internally?

Why not the use http://people.freebsd.org/~hmp/acpi_temp.c

-- Hiten ([EMAIL PROTECTED])
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ACPI testing/debugging guide?

2003-06-17 Thread Barney Wolff
On Tue, Jun 17, 2003 at 04:29:59PM -0600, M. Warner Losh wrote:
> : 
> : ACPI records temperature in tenths of a Kelvin, if you can believe it :)
> 
> I don't believe that. 369.2K is 96.2C, which is over 200F.  That seems
> to hot to me.  My laptop says 2982, which is either about 30C or
> 15.2C.  Given how warm it is on my leg at the moment, I'd guess it is
> centi-Celcius.  Maybe converted internally?

Reading the source, it really is tenths Kelvin.  Is the 3692 the actual
temp, or the CRT, which I assume is the critical temp?  In the output
of sysctl hw.acpi.thermal.tz0 there are a bunch of values, only one of
which is the current temp.  The rest are thresholds - AC appears to mean
active cooling (aka fan), PSV seems to mean passive.

How come xmbmon can't interpret acpi temps?

-- 
Barney Wolff http://www.databus.com/bwresume.pdf
I'm available by contract or FT, in the NYC metro area or via the 'Net.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ACPI testing/debugging guide?

2003-06-17 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]>
Dan Nelson <[EMAIL PROTECTED]> writes:
: In the last episode (Jun 17), Scott Lambert said:
: > Is there some list of actions to preform and data to collect that
: > would assist with getting the ACPI stuff lined out?
: > 
: > I've read the acpiconf man page but don't know that it gives me any
: > way to test for any specific functionality.  I've been gradually
: > piecing together the meaning of S1, S2, S3, S4, and S5 and figuring
: > out that the *_(button|switch)_state sysctl oids specify which state
: > to go to on activation of that button rather than being a descriptor
: > of the current state of the buttons.
: > 
: > I haven't figured out if the hw.acpi.thermal oids.  I think maybe
: > ACPI doesn't recognize the hardware.  Is a thermal oid value of 3692
: > actually 36.92 celcius or some scale from 0x to 0x?
: 
: ACPI records temperature in tenths of a Kelvin, if you can believe it :)

I don't believe that. 369.2K is 96.2C, which is over 200F.  That seems
to hot to me.  My laptop says 2982, which is either about 30C or
15.2C.  Given how warm it is on my leg at the moment, I'd guess it is
centi-Celcius.  Maybe converted internally?

Warner
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ACPI testing/debugging guide?

2003-06-17 Thread Scott Lambert
Is there some list of actions to preform and data to collect that would 
assist with getting the ACPI stuff lined out?

I've read the acpiconf man page but don't know that it gives me any way
to test for any specific functionality.  I've been gradually piecing
together the meaning of S1, S2, S3, S4, and S5 and figuring out that
the *_(button|switch)_state sysctl oids specify which state to go to on
activation of that button rather than being a descriptor of the current
state of the buttons.

I haven't figured out if the hw.acpi.thermal oids.  I think maybe ACPI
doesn't recognize the hardware.  Is a thermal oid value of 3692 actually
36.92 celcius or some scale from 0x to 0x?

Is battery.time supposed to be -1 when on AC?

My resume from suspend doesn't work and I don't know how to tell where
that is going wrong.  I have no serial interface so I can't use a serial
console when the LCD doesn't come on.  I can live without suspend/resume
functionality.  You can't miss something you have never had. :-)

I would like to be able to tell the fan to stay on anytime it has AC
power since it is gradually cooking my lap.

How can I help others improve the ACPI support without investing hours
I don't have in learning enough reading the source to be useful finding
and reporting problems?

-- 
Scott LambertKC5MLE   Unix SysAdmin
[EMAIL PROTECTED]  
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ACPI testing/debugging guide?

2003-06-17 Thread Barney Wolff
On Tue, Jun 17, 2003 at 01:16:49PM -0500, Dan Nelson wrote:
>  
> > My resume from suspend doesn't work and I don't know how to tell where
> > that is going wrong.  I have no serial interface so I can't use a serial
> > console when the LCD doesn't come on.  I can live without suspend/resume
> > functionality.  You can't miss something you have never had. :-)
> 
> My Dell laptop doesn't bring the display back on, but I can manually
> re-enable it with the Fn-CRT/LCD key.

Have you tried waiting?  I thought the same on my I5000, but discovered
that if I waited 30-60 seconds, the display did come back by itself.

-- 
Barney Wolff http://www.databus.com/bwresume.pdf
I'm available by contract or FT, in the NYC metro area or via the 'Net.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ACPI testing/debugging guide?

2003-06-17 Thread Dan Nelson
In the last episode (Jun 17), Scott Lambert said:
> Is there some list of actions to preform and data to collect that
> would assist with getting the ACPI stuff lined out?
> 
> I've read the acpiconf man page but don't know that it gives me any
> way to test for any specific functionality.  I've been gradually
> piecing together the meaning of S1, S2, S3, S4, and S5 and figuring
> out that the *_(button|switch)_state sysctl oids specify which state
> to go to on activation of that button rather than being a descriptor
> of the current state of the buttons.
> 
> I haven't figured out if the hw.acpi.thermal oids.  I think maybe
> ACPI doesn't recognize the hardware.  Is a thermal oid value of 3692
> actually 36.92 celcius or some scale from 0x to 0x?

ACPI records temperature in tenths of a Kelvin, if you can believe it :)
 
> Is battery.time supposed to be -1 when on AC?

That may depend on the laptop.  Some estimate the time by extrapolating
from the battery drain rate, and if it's not draining, it can't guess.
 
> My resume from suspend doesn't work and I don't know how to tell where
> that is going wrong.  I have no serial interface so I can't use a serial
> console when the LCD doesn't come on.  I can live without suspend/resume
> functionality.  You can't miss something you have never had. :-)

My Dell laptop doesn't bring the display back on, but I can manually
re-enable it with the Fn-CRT/LCD key.
 
-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"