From: Pavel Machek <pavel@ucw.cz>
To: Giuseppe Bilotta <bilotta78@hotpop.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Polling for battery stauts and lost keypresses
Date: Thu, 24 Aug 2006 20:31:39 +0000 [thread overview]
Message-ID: <20060824203139.GC4539@ucw.cz> (raw)
In-Reply-To: <gd60xm38im9j.a4xxz8tjb0qj$.dlg@40tude.net>
On Wed 16-08-06 09:31:48, Giuseppe Bilotta wrote:
> On Mon, 14 Aug 2006 16:17:01 -0400, Dmitry Torokhov wrote:
>
> > On 8/14/06, Giuseppe Bilotta <bilotta78@hotpop.com> wrote:
> >> On Mon, 14 Aug 2006 12:06:06 -0400, Dmitry Torokhov wrote:
> >>
> >>> On many laptops (including mine) polling battery takes a loooong time
> >>> and is done in SMI mode in BIOS causing lost keypresses, jerky mouse
> >>> etc. It is pretty common problem. I think I have my ACPI client
> >>> refreshing every 3 minutes.
> >>
> >> BTW, polling battery status takes a lot on a Dell Inspiron 8200 too,
> >> and all keypresses and mouse movements (and I think even network
> >> IRQs?) are totally *dead* while polling.
> >>
> >> However, The Other OS(tm) *seems* to do it right enough to have no
> >> noticeable keypress losses, even when updating the battery status. Is
> >> it using different system calls, or what?
> >>
> >
> > I am not sure, but there are many things that may affect it:
> >
> > 1. Battry attributes are divided into 2 groups - static (i think they
> > go into /proc/acpi/battery/<name>/info and dynamic
> > (/proc/acpi/batetry/state). Static attributes take really long time to
> > pull and they do not change so it may wery well be they are polled one
> > at startup. Dynamic attributes are cheaper to poll and even then OS
> > may cache access or limit rate.
>
> Well, this would explain why Linux freezes while polling only if Linux
> polls for the slow, static ones just as much as it does for the
> dynamic ones ...
I guess patch caching battery/*/state would be welcome.
--
Thanks for all the (sleeping) penguins.
next prev parent reply other threads:[~2006-08-25 15:31 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-14 13:58 Touchpad problems with latest kernels Luke Sharkey
2006-08-14 14:36 ` Dmitry Torokhov
2006-08-14 15:18 ` Dave Jones
2006-08-14 14:38 ` Gene Heskett
2006-08-14 15:06 ` Ian Stirling
2006-08-14 15:19 ` Gene Heskett
2006-08-14 15:41 ` Ian Stirling
2006-08-14 15:13 ` Dmitry Torokhov
2006-08-14 15:25 ` Mattia Dongili
2006-08-14 15:34 ` Gene Heskett
2006-08-14 15:53 ` Dmitry Torokhov
2006-08-14 16:33 ` Gene Heskett
2006-08-14 16:59 ` Dmitry Torokhov
2006-08-14 15:20 ` Andreas Mohr
2006-08-14 15:41 ` Dmitry Torokhov
2006-08-14 15:54 ` Andreas Mohr
2006-08-14 16:06 ` Dmitry Torokhov
2006-08-14 20:06 ` Polling for battery stauts and lost keypresses (was: Touchpad problems with latest kernels) Giuseppe Bilotta
2006-08-14 20:17 ` Dmitry Torokhov
2006-08-16 7:31 ` Polling for battery stauts and lost keypresses Giuseppe Bilotta
2006-08-19 15:50 ` Dmitry Torokhov
2006-08-19 16:02 ` Arjan van de Ven
2006-08-21 11:56 ` Giuseppe Bilotta
2006-08-21 12:34 ` Dmitry Torokhov
2006-08-21 12:52 ` Arjan van de Ven
2006-08-24 20:31 ` Pavel Machek [this message]
2006-08-14 19:30 ` Touchpad problems with latest kernels Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060824203139.GC4539@ucw.cz \
--to=pavel@ucw.cz \
--cc=bilotta78@hotpop.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox