* RE: question about ACPI & Smart Batteries
@ 2004-08-12 22:10 Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A8470726AFF5-sBd4vmA9Se6krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Grover, Andrew @ 2004-08-12 22:10 UTC (permalink / raw)
To: Cintia B. Margi, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
> I am trying to understand the information flow between a
> Smart Battery and the values
> I can see at /proc/acpi/battery/BAT0/state. I lookedt at ACPI
> standard, and it says
> that if the battery supports "smart battery", it is
> responsible by providing the battery
> related values (please correct me if I am wrong). Than I took
> a look at "Smart Battery"
> data standard and it specifies the parameters. It also says
> that this parameters should
> be polled by the SMBus Host.
>
> What I really want to know is how often
> /proc/acpi/battery/BAT0/state is updated when
> a battery is discharging/charging.
>
> I do not have acpid installed, and I running Debian kernel
> 2.6.6, with acpi version
> 20040326.
Unless you have a Fujitsu Uva, you do not have a smart battery, you have
a control method battery.
For a CM battery, the OS can poll the battery state by calling _BST, or
set a trip point (via _BTP) and the OS will get an interrupt when the
battery crosses that trip.
Regards -- Andy
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <F760B14C9561B941B89469F59BA3A8470726AFF5-sBd4vmA9Se6krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>]
* Re: question about ACPI & Smart Batteries [not found] ` <F760B14C9561B941B89469F59BA3A8470726AFF5-sBd4vmA9Se6krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org> @ 2004-08-12 22:29 ` Cintia B. Margi [not found] ` <20040812222936.GD30862-v28VZnYc+MmC5P5rv/TENfZ8FUJU4vz8@public.gmane.org> 2004-08-12 22:40 ` Paul Ionescu 0 siblings, 2 replies; 5+ messages in thread From: Cintia B. Margi @ 2004-08-12 22:29 UTC (permalink / raw) To: Grover, Andrew; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f [-- Attachment #1: Type: text/plain, Size: 1059 bytes --] * Grover, Andrew (andrew.grover-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org) said: > Unless you have a Fujitsu Uva, you do not have a smart battery, you have > a control method battery. I don't have a smart battery then. > For a CM battery, the OS can poll the battery state by calling _BST, or > set a trip point (via _BTP) and the OS will get an interrupt when the > battery crosses that trip. I do not want to set a trip point, but I would like to monitor the battery discharge process... I want to characterize the battery discharge behavior under different tasks, so I intend to monitor the battery voltage and the discharge rate (which I can obtain from /proc/acpi/battery/BAT0/state). What I would like to know is how often the state file is updated and how accurate these values are. Any idea where I can get this info? Thanks, Cintia -- Cintia Margi Graduate Student SoE - UCSC http://www.soe.ucsc.edu/~cintia GPG Public Key: http://www.soe.ucsc.edu/~cintia/cintia.gpg B4DE 9355 3840 FF72 50F2 ACAC E2EC AA9A 41E2 CD55 [-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20040812222936.GD30862-v28VZnYc+MmC5P5rv/TENfZ8FUJU4vz8@public.gmane.org>]
* Re: question about ACPI & Smart Batteries [not found] ` <20040812222936.GD30862-v28VZnYc+MmC5P5rv/TENfZ8FUJU4vz8@public.gmane.org> @ 2004-08-12 22:36 ` Tomasz Ciolek 0 siblings, 0 replies; 5+ messages in thread From: Tomasz Ciolek @ 2004-08-12 22:36 UTC (permalink / raw) To: Cintia B. Margi Cc: Grover, Andrew, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Write to the maintainer of wmacpi-ng package. He has a good clue as to how ACPI generates the battery values... Tomasz Ciolek On Thu, Aug 12, 2004 at 03:29:36PM -0700, Cintia B. Margi wrote: > * Grover, Andrew (andrew.grover-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org) said: > > Unless you have a Fujitsu Uva, you do not have a smart battery, you have > > a control method battery. > > I don't have a smart battery then. > > > For a CM battery, the OS can poll the battery state by calling _BST, or > > set a trip point (via _BTP) and the OS will get an interrupt when the > > battery crosses that trip. > > I do not want to set a trip point, but I would like to monitor the battery discharge > process... I want to characterize the battery discharge behavior under different tasks, > so I intend to monitor the battery voltage and the discharge rate (which I can obtain > from /proc/acpi/battery/BAT0/state). What I would like to know is how often the state > file is updated and how accurate these values are. Any idea where I can get this info? > > Thanks, > > Cintia > > -- > Cintia Margi > Graduate Student > SoE - UCSC > http://www.soe.ucsc.edu/~cintia > GPG Public Key: http://www.soe.ucsc.edu/~cintia/cintia.gpg > B4DE 9355 3840 FF72 50F2 ACAC E2EC AA9A 41E2 CD55 -- Tomasz M. Ciolek ******************************************************************************* tmc at dreamcraft dot com dot au ******************************************************************************* GPG Key ID: 0x41C4C2F0 GPG Key Fingerprint: 3883 B308 8256 2246 D3ED A1FF 3A1D 0EAD 41C4 C2F0 Key available on www.pgp.net ******************************************************************************* ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: question about ACPI & Smart Batteries 2004-08-12 22:29 ` Cintia B. Margi [not found] ` <20040812222936.GD30862-v28VZnYc+MmC5P5rv/TENfZ8FUJU4vz8@public.gmane.org> @ 2004-08-12 22:40 ` Paul Ionescu [not found] ` <pan.2004.08.12.22.40.32.120142-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> 1 sibling, 1 reply; 5+ messages in thread From: Paul Ionescu @ 2004-08-12 22:40 UTC (permalink / raw) To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Hi Cintia, In CM case I think that when you look into /proc/acpi/battery/BAT0/state, you get the instantaneous value. So the state file is not updated unless you look in it, and then you get the values at that moment, because the APCI code will just call _BST method to tell you the actual values. So, I think you can trust those values as being pretty accurate. Paul On Thu, 12 Aug 2004 15:29:36 -0700, Cintia B. Margi wrote: >> For a CM battery, the OS can poll the battery state by calling _BST, or >> set a trip point (via _BTP) and the OS will get an interrupt when the >> battery crosses that trip. > > I do not want to set a trip point, but I would like to monitor the > battery discharge process... I want to characterize the battery > discharge behavior under different tasks, so I intend to monitor the > battery voltage and the discharge rate (which I can obtain from > /proc/acpi/battery/BAT0/state). What I would like to know is how often > the state file is updated and how accurate these values are. Any idea > where I can get this info? > > Thanks, > > Cintia ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <pan.2004.08.12.22.40.32.120142-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>]
* Re: Re: question about ACPI & Smart Batteries [not found] ` <pan.2004.08.12.22.40.32.120142-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> @ 2004-08-13 7:40 ` Karol Kozimor 0 siblings, 0 replies; 5+ messages in thread From: Karol Kozimor @ 2004-08-13 7:40 UTC (permalink / raw) To: Paul Ionescu; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Thus wrote Paul Ionescu: > In CM case I think that when you look into /proc/acpi/battery/BAT0/state, > you get the instantaneous value. > So the state file is not updated unless you look in it, and then you get > the values at that moment, because the APCI code will just call _BST > method to tell you the actual values. > So, I think you can trust those values as being pretty accurate. I suppose most ECs cache that information and update only in EC-specific intervals. Best regards, -- Karol 'sziwan' Kozimor sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-08-13 7:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-12 22:10 question about ACPI & Smart Batteries Grover, Andrew
[not found] ` <F760B14C9561B941B89469F59BA3A8470726AFF5-sBd4vmA9Se6krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-08-12 22:29 ` Cintia B. Margi
[not found] ` <20040812222936.GD30862-v28VZnYc+MmC5P5rv/TENfZ8FUJU4vz8@public.gmane.org>
2004-08-12 22:36 ` Tomasz Ciolek
2004-08-12 22:40 ` Paul Ionescu
[not found] ` <pan.2004.08.12.22.40.32.120142-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
2004-08-13 7:40 ` Karol Kozimor
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox