public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan Rychter <jan-JAsPCFd0eodBDgjK7y7TUQ@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: reading battery status and CPU time
Date: Fri, 04 Apr 2003 21:25:04 +0200	[thread overview]
Message-ID: <m2n0j6uktr.fsf@tnuctip.rychter.com> (raw)

FYI: reading battery status still consumes lots of CPU time. Unless it's
supposed to be that way?

time cat /proc/acpi/battery/BAT0/state produces:

0.000u 0.040s 0:00.12 33.3%     0+0k 0+0io 108pf+0w
0.000u 0.040s 0:00.13 30.7%     0+0k 0+0io 108pf+0w
0.000u 0.030s 0:00.12 25.0%     0+0k 0+0io 108pf+0w
0.000u 0.030s 0:00.14 21.4%     0+0k 0+0io 108pf+0w
0.000u 0.050s 0:00.14 35.7%     0+0k 0+0io 108pf+0w
0.000u 0.030s 0:00.14 21.4%     0+0k 0+0io 108pf+0w

... which causes applications like wmacpi to consume tens of seconds of
CPU time after a while. Not really a price I'd be willing to pay for
knowing the battery status.

This is on 2.4.21-pre6 with acpi-20030328. Sharp Mebius PC-MT1-H3.

--J.


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/

             reply	other threads:[~2003-04-04 19:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-04 19:25 Jan Rychter [this message]
     [not found] ` <m2n0j6uktr.fsf-dTJq59+VGzkkCw8IV3R6h0EOCMrvLtNR@public.gmane.org>
2003-04-10 13:18   ` reading battery status and CPU time Markus Gaugusch
  -- strict thread matches above, loose matches on Subject: below --
2003-04-10 15:24 Herbert Nachtnebel
     [not found] ` <B900970C7DD9474C972986EB3EC7C58F0D4098-PWLG29+z7hEKeIAE67mlpo2P0GrZ+RbP@public.gmane.org>
2003-04-10 21:20   ` Markus Gaugusch
     [not found]     ` <Pine.LNX.4.53.0304102315390.1659-qopfHk9/S+VQK2oVCIMtW7NldLUNz+W/@public.gmane.org>
2003-04-10 21:31       ` Matthew Wilcox
     [not found]         ` <20030410213128.GG11811-+pPCBgu9SkPzIGdyhVEDUDl5KyyQGfY2kSSpQ9I8OhVaa/9Udqfwiw@public.gmane.org>
2003-04-10 21:41           ` Randy.Dunlap
2003-04-10 21:30   ` Markus Gaugusch
2003-04-11 16:18 Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A847E96DD9-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-04-12 18:23   ` Markus Gaugusch
2003-04-16  7:34   ` Markus Gaugusch

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=m2n0j6uktr.fsf@tnuctip.rychter.com \
    --to=jan-jaspcfd0eodbdgjk7y7tuq@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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