You are not logged in.
Hi, I am trying to get power rate to conky. I have found many scripts, none were working though. I have an Dell Latitude D610, Two batteries, I use only BATT1, BATT0 is unused.
[sdoky@sdoky-laptop BAT1]$ cat /proc/acpi/battery/BAT1/state
present: yes
capacity state: ok
charging state: discharging
present rate: 1301 mA
remaining capacity: 648 mAh
present voltage: 10956 mV
Thank you
Last edited by sDoky (2009-10-12 09:10:16)
Linux!
Offline
grep + sed
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
From the conky manual:
battery (num) Battery status and remaining percentage capacity of ACPI or APM battery. ACPI battery number can be given as argument (default is BAT0).
Look, it takes arguments! Why try the hard way if you can let conky do the dirty work?
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Yeah, I am trying to get there actual power consumption in Watts. I want to know how much my laptop consumes, especially on battery and it is not there
Linux!
Offline
Solved myself.
${execi 2 sudo powertop -d --time=0 | grep 'Power usage (ACPI estimate):' | cut -c30-33}W
Linux!
Offline
You need to remove sudo from that command.
${execi 2 powertop -d --time=0 | grep 'Power usage (ACPI estimate):' | cut -c 30-33}W
Unless, system will hang upon xinit, waiting for sudo password.
That powertop command will work without sudo.
Last edited by ammon (2010-12-09 04:40:16)
Offline
And if you need sudo, you could tell it to not require a password for powertop. Add sth like this to your sudoers file
USERNAME localhost=NOPASSWD: /usr/bin/powertop
Offline
Offline