* Battery charging state: unknown
@ 2002-11-07 21:56 Daniel Hoffend
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Hoffend @ 2002-11-07 21:56 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hello
i have compiled my kernel (2.4.19) with the current patch
(acpi-20021022-2.4.19.diff.gz). The /proc/acpi/battery/BAT1/state shows
that there is an unknown charging stage, but when i remove the power
supply of my Toshiba Notebook, then it turned to "discharging".
Power Supply on:
###################################
`cat /proc/acpi/battery/BAT1/state`
present: yes
capacity state: ok
charging state: unknown
present rate: 0 mA
remaining capacity: 4000 mAh
present voltage: 14800 mV
Power Supply off:
###################################
`cat /proc/acpi/battery/BAT1/state`
present: yes
capacity state: ok
charging state: discharging
present rate: 0 mA
remaining capacity: 3960 mAh
present voltage: 14800 mV
what is wrong ? is this a known problem, or has somebody a fix or patch
for it.
Could this be one problem that my notebook doesn't switch to lower CPU
Speed? (Intel Speedstep) the only possibility at this moment is for me
to set the Speed manually via cpufreq patch. But there must be a
solution?
Can somebody help me?
--
thanks
Daniel "Griffon" Hoffend
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Battery charging state: unknown
@ 2002-11-08 12:16 joerg.beyer-htSm2yLGOjU
[not found] ` <200211081216.gA8CGuX15381-pb599fR3TxVkExQqqHjIK3sFFmKitW5W@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: joerg.beyer-htSm2yLGOjU @ 2002-11-08 12:16 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, DanielHoffend
Daniel Hoffend <mail-nf-Mmb7MZpHnFY@public.gmane.org> schrieb am 07.11.02 23:09:43:
> Hello
>
> i have compiled my kernel (2.4.19) with the current patch
> (acpi-20021022-2.4.19.diff.gz). The /proc/acpi/battery/BAT1/state shows
> that there is an unknown charging stage, but when i remove the power
> supply of my Toshiba Notebook, then it turned to "discharging".
I get this, when the Laptop is connected to power supply _and_
is fully charged.
I get "charging" (or something similar - I have the laptop not with
me right now), when it is charging.
Joerg
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Battery charging state: unknown
[not found] ` <200211081216.gA8CGuX15381-pb599fR3TxVkExQqqHjIK3sFFmKitW5W@public.gmane.org>
@ 2002-11-09 17:02 ` Duncan Gibb
[not found] ` <1036861357.17196.22.camel-h9eRTumTmmZjMu4AB9qoK9F8XQ1HzYRO@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Duncan Gibb @ 2002-11-09 17:02 UTC (permalink / raw)
To: joerg.beyer-htSm2yLGOjU
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, DanielHoffend
On Fri, 2002-11-08 at 12:16, joerg.beyer-htSm2yLGOjU@public.gmane.org wrote:
> Daniel Hoffend <mail-nf-Mmb7MZpHnFY@public.gmane.org> schrieb am 07.11.02 23:09:43:
DH> /proc/acpi/battery/BAT1/state shows that there is an
DH> unknown charging stage
JB> I get this, when the Laptop is connected to power supply _and_
JB> is fully charged.
I thought this was odd too. There are two relevant bits in the battery
status reply, bit 0 for discharging, bit 1 for charging. The code does
this:
if ((bst->state & 0x01) && (bst->state & 0x02))
p += sprintf(p, "charging state: charging/discharging\n");
else if (bst->state & 0x01)
p += sprintf(p, "charging state: discharging\n");
else if (bst->state & 0x02)
p += sprintf(p, "charging state: charging\n");
else
p += sprintf(p, "charging state: unknown\n");
IMHO "unknown" is likely to worry people, when "not charging" can happen
for a number of reasons - eg: the battery is full, or there is another
battery in the system which is being used/charged in preference to this
one.
Dunno whether there are userland progs which rely on the existing code,
though.
Duncan
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Battery charging state: unknown
[not found] ` <1036861357.17196.22.camel-h9eRTumTmmZjMu4AB9qoK9F8XQ1HzYRO@public.gmane.org>
@ 2002-11-10 1:59 ` Daniel Hoffend
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Hoffend @ 2002-11-10 1:59 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hello
where can i access to the real state bits to check witch bits are set
and compare with the results.
Daniel Hoffend
On Sam, Nov 09, 2002 at 05:02:37 +0000, Duncan Gibb wrote:
> On Fri, 2002-11-08 at 12:16, joerg.beyer-htSm2yLGOjU@public.gmane.org wrote:
> > Daniel Hoffend <mail-nf-Mmb7MZpHnFY@public.gmane.org> schrieb am 07.11.02 23:09:43:
>
> DH> /proc/acpi/battery/BAT1/state shows that there is an
> DH> unknown charging stage
>
> JB> I get this, when the Laptop is connected to power supply _and_
> JB> is fully charged.
>
> I thought this was odd too. There are two relevant bits in the battery
> status reply, bit 0 for discharging, bit 1 for charging. The code does
> this:
>
> if ((bst->state & 0x01) && (bst->state & 0x02))
> p += sprintf(p, "charging state: charging/discharging\n");
> else if (bst->state & 0x01)
> p += sprintf(p, "charging state: discharging\n");
> else if (bst->state & 0x02)
> p += sprintf(p, "charging state: charging\n");
> else
> p += sprintf(p, "charging state: unknown\n");
>
>
> IMHO "unknown" is likely to worry people, when "not charging" can happen
> for a number of reasons - eg: the battery is full, or there is another
> battery in the system which is being used/charged in preference to this
> one.
>
> Dunno whether there are userland progs which rely on the existing code,
> though.
>
>
> Duncan
>
>
>
--
mfg
Daniel "Griffon" Hoffend
Team FETTNET
Team LANparty.de
---
Visit :: http://fettnet.lanparty.de
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-11-10 1:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-08 12:16 Battery charging state: unknown joerg.beyer-htSm2yLGOjU
[not found] ` <200211081216.gA8CGuX15381-pb599fR3TxVkExQqqHjIK3sFFmKitW5W@public.gmane.org>
2002-11-09 17:02 ` Duncan Gibb
[not found] ` <1036861357.17196.22.camel-h9eRTumTmmZjMu4AB9qoK9F8XQ1HzYRO@public.gmane.org>
2002-11-10 1:59 ` Daniel Hoffend
-- strict thread matches above, loose matches on Subject: below --
2002-11-07 21:56 Daniel Hoffend
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox