From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Rychter Subject: reading battery status and CPU time Date: Fri, 04 Apr 2003 21:25:04 +0200 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org 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/