* Sony Vaio Battery Info
@ 2002-12-19 20:13 Markus Gaugusch
[not found] ` <Pine.LNX.4.50.0212192106570.950-100000-KjnUIgV0B0bsKMwAuzqOxrNldLUNz+W/@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Markus Gaugusch @ 2002-12-19 20:13 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
As previously written, reading the battery info on sony vaio laptops
(FX/FXA series) takes very long time (~0.6 sec). Battery state takes only
~0.1 sec, but this is still too long for constantly using a battery
monitor.
I'd like to find the bug, but need some help. My first idea is to put time
stamps to the debug messages. Bob Moore suggested to begin with the EC
code.
I don't really know how to do this (finding the ec code won't be so hard,
but I don't think that 'normal' libc time functions will work in kernel).
Any volunteers? ;)
Markus
--
__________________ /"\
Markus Gaugusch \ / ASCII Ribbon Campaign
markus-z+rTbpWsRgbk7+2FdBfRIA@public.gmane.org X Against HTML Mail
/ \
-------------------------------------------------------
This SF.NET email is sponsored by: Geek Gift Procrastinating?
Get the perfect geek gift now! Before the Holidays pass you by.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Sony Vaio Battery Info
[not found] ` <Pine.LNX.4.50.0212192106570.950-100000-KjnUIgV0B0bsKMwAuzqOxrNldLUNz+W/@public.gmane.org>
@ 2002-12-20 8:03 ` Malte Thoma
[not found] ` <3E02CEB5.9080506-xhPu7QH+N+StU9/U+hoEgQ@public.gmane.org>
2002-12-20 16:09 ` Stephen White
1 sibling, 1 reply; 4+ messages in thread
From: Malte Thoma @ 2002-12-20 8:03 UTC (permalink / raw)
To: Markus Gaugusch; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Markus Gaugusch wrote:
> As previously written, reading the battery info on sony vaio laptops
> (FX/FXA series) takes very long time (~0.6 sec). Battery state takes only
> ~0.1 sec, but this is still too long for constantly using a battery
> monitor.
Hallo Marcus,
(perhaps you remember me:-)
I have a SONY-VAIO FX505, is the 'keybord-look-bug' fixed? (I still run
an half-year-old ACPI)
In my opinion the info-file need only to be read ONCE, because it
contains only 'static' infos about the battery.
My skills are not high enough to help you withe the bug, but I would
like to invite you to test (use, help me to improve) heatload, which is
a small applet, showing information about the battery (and something more).
Greetings,
Malte
https://lists.berlios.de/mailman/listinfo/heatload-general
-------------------------------------------------------
This SF.NET email is sponsored by: Geek Gift Procrastinating?
Get the perfect geek gift now! Before the Holidays pass you by.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Sony Vaio Battery Info
[not found] ` <Pine.LNX.4.50.0212192106570.950-100000-KjnUIgV0B0bsKMwAuzqOxrNldLUNz+W/@public.gmane.org>
2002-12-20 8:03 ` Malte Thoma
@ 2002-12-20 16:09 ` Stephen White
1 sibling, 0 replies; 4+ messages in thread
From: Stephen White @ 2002-12-20 16:09 UTC (permalink / raw)
To: Markus Gaugusch; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
---- Original Message ----
> From Markus Gaugusch <markus-z+rTbpWsRgbk7+2FdBfRIA@public.gmane.org>
> Date: Thursday, 19 Dec 2002, 20:13
>
> I don't really know how to do this (finding the ec code won't be so hard,
> but I don't think that 'normal' libc time functions will work in kernel).
> Any volunteers? ;)
You shouldn't need to use the time functions .. just print out the
kernel's 'jiffy' count. It's only 100Hz but since we're looking for
0.6s that shouldn't matter.
If you need debug timings more precisely then on x86:
#define _int64 long long // The kernel may have something like this already .. I can't remember
#define prectime() ({ _int64 u; asm("rdtsc": "=A" (u)); u; })
will give you a way of accessing the time stamp counter which on Pentium
class chips will count CPU cycles .. which gives somewhat more precise
profiling information.
This is something I keep meaning to look at, but I seem to be missing a
large number of 'tuits' (especially the round variety).
--
Stephen White <stephen-acpi-devel-4QvXXjU8Dv4@public.gmane.org>
-------------------------------------------------------
This SF.NET email is sponsored by: The Best Geek Holiday Gifts!
Time is running out! Thinkgeek.com has the coolest gifts for
your favorite geek. Let your fingers do the typing. Visit Now.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Sony Vaio Battery Info
[not found] ` <3E02CEB5.9080506-xhPu7QH+N+StU9/U+hoEgQ@public.gmane.org>
@ 2002-12-21 21:45 ` Pavel Machek
0 siblings, 0 replies; 4+ messages in thread
From: Pavel Machek @ 2002-12-21 21:45 UTC (permalink / raw)
To: thoma-iYtK5bfT9M8b1SvskN2V4Q
Cc: Markus Gaugusch, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi!
> Markus Gaugusch wrote:
> >As previously written, reading the battery info on sony vaio laptops
> >(FX/FXA series) takes very long time (~0.6 sec). Battery state takes
> >only
> >~0.1 sec, but this is still too long for constantly using a battery
> >monitor.
>
>
> Hallo Marcus,
> (perhaps you remember me:-)
>
> I have a SONY-VAIO FX505, is the 'keybord-look-bug' fixed? (I still
> run an half-year-old ACPI)
>
> In my opinion the info-file need only to be read ONCE, because it
> contains only 'static' infos about the battery.
Like capacity at last charge? That can change, too.
OTOH Reading it once in 3 hours should be ok
--
Pavel
Written on sharp zaurus, because my Velo1 broke. If you have Velo you don't need...
-------------------------------------------------------
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-12-21 21:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-19 20:13 Sony Vaio Battery Info Markus Gaugusch
[not found] ` <Pine.LNX.4.50.0212192106570.950-100000-KjnUIgV0B0bsKMwAuzqOxrNldLUNz+W/@public.gmane.org>
2002-12-20 8:03 ` Malte Thoma
[not found] ` <3E02CEB5.9080506-xhPu7QH+N+StU9/U+hoEgQ@public.gmane.org>
2002-12-21 21:45 ` Pavel Machek
2002-12-20 16:09 ` Stephen White
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox