LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 04-30-2007, 09:43 AM   #1
geek1234
Member
 
Registered: Apr 2007
Posts: 38

Rep: Reputation: 15
How to decrease /proc/acpi/battery refresh interval


Hi,

Is there any way to decrease the refresh interval of stats produced in /proc/acpi/battery ? I find that stats update currently every 15 seconds on my FC4, 2.6.16, laptop. I want to bring it down to a 1 second if possible, but was not sure how to do it. Or it would be nice to be able to read the most current stats directly instead of reading from /proc/acpi/battery/BAT1/state. Anyone have any idea how to proceed? I figure that I may have to tinker with kernel variables to do this.

Vinod
 
Old 04-30-2007, 12:25 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Depending on the Laptop, Tha battery, The OS, and likely a few other things, the polling interval **may** not specifically be settable via the /proc interface. It might, but it might not. I haven't been able to locate any specific thing to echo into the /proc/acpi or proc/apm filesystems to set a polling interval.
That said, if this proves true, you might want to look onto something like 'Gkrellm' and set it up to monitor the battery.
Also, using the APMd or ACPId daemons and related tools can do about anything that currently *can* be done, regarding the ACPI/APM systems.
Here's a link or two for you to browse through. Also, for more information, check for stuff on the Linux Documentation Project website for 'ACPI' and 'APM' and the /proc interface.
http://www.novell.com/documentation/...l/ch09s02.html
http://www.columbia.edu/~ariel/acpi/acpi_howto.txt
http://www.chronox.de/x40_linux/linu...d_battery_info
Also looks like the 'cpufreqd' toolset can be used to poll the battery at specified intervals:
http://cpufreqd.sourceforge.net/manp...d.conf.5.shtml
or Dockapps:
http://dockapps.org/file.php/id/164

Last edited by GrapefruiTgirl; 04-30-2007 at 12:34 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ACPI: 2.6.17.7; nothing in /proc/acpi/fan; fans not running; problem not seen before. zetabill Linux - Kernel 1 07-30-2006 04:27 PM
ACPI battery not detected abattoir Linux - Laptop and Netbook 2 09-11-2005 09:07 AM
ACPI + battery augamecock Linux - Laptop and Netbook 2 04-05-2004 06:42 AM
battery status with ACPI cornucopiae Linux - Laptop and Netbook 5 08-03-2003 11:56 AM
kernel 2.4.20 & acpi-20021212-2.4.20.diff => no /proc/acpi Tinkster Linux - Software 5 03-24-2003 01:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 12:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration