Active Topics

 



Notices


Reply
Thread Tools
xxxxts's Avatar
Posts: 491 | Thanked: 341 times | Joined on Nov 2009 @ LA
#1
Is there a way to get an ACCURATE battery readout with Desktop Execution Widget?
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#2
I use this code for battery percentage
Code:
hal-device bme | awk -F"[. ]" '$5 == "is_charging" {chrg = $7}; $5 == "percentage" {perc = $7} END if (chrg == "false") {print perc "%"} else {print "Chrg"}'
But i am sure this is one of the default commands for the commands button.
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#3
don't be fooled by the "accurate" numbers. those are only approximations and probably don't help at all.
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#4
If you want a more accurate readings you really want to load the bq27x00_battery module to get it.

If you see this you are probably bored

Last edited by 9000; 2011-03-03 at 07:38.
 
Duffer's Avatar
Posts: 223 | Thanked: 52 times | Joined on Sep 2009 @ West Kirby, UK
#5
In terminal type lshal|grep bat
I don't know how accurate though.
__________________
In dog years, I'm dead.
 
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#6
or try my QBW widget in my battery thread, it doesn't get more accruate than that

located in Post #3
 
TMavica's Avatar
Posts: 2,021 | Thanked: 1,060 times | Joined on Apr 2010 @ Hong Kong
#7
Originally Posted by dr_frost_dk View Post
or try my QBW widget in my battery thread, it doesn't get more accruate than that

located in Post #3
After use the battery meter 1.5, it displays 2567.54 % and 33.918 V @@

how come the percent is in thousand??
 
Posts: 539 | Thanked: 518 times | Joined on May 2010 @ nanaurbusiness
#8
Same happens to me, because I had two bq27x00_battery modules loaded...
So simply delete the unnecessary entry from /etc/modules and reboot.
Code:
leafpad /etc/modules
The bq27x00_battery module is loaded by default so no need for an extra entry in /etc/modules ;-)

Greetz,

..::J4ZZ::..
 

The Following User Says Thank You to J4ZZ For This Useful Post:
TMavica's Avatar
Posts: 2,021 | Thanked: 1,060 times | Joined on Apr 2010 @ Hong Kong
#9
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should
# at boot time, one per line. Lines beginning with "#" are i
# Parameters can be specified after the module name.

bq27x00_battery



What should I delete? and after delete, can I read the Temperature??
 
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#10
Originally Posted by TMavica View Post
After use the battery meter 1.5, it displays 2567.54 % and 33.918 V @@

how come the percent is in thousand??
because you have some other thing installed, the fix is in the thread

or look at JAZZ hehehe, didn't see it at first that he had commented on it
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:01.