Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Check battery status from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Check battery status from the command line
Authored by: dickg on Jul 02, '11 03:49:59PM

For use on systems with no battery, the expr variables need to be initialized. The following is recommended:
$ diff battery new.battery
13a14
> # Version 1.5 2011-07-01 expr fix (initialize values) [Dick Guertin]
19c20
< VERSION="1.4"
---
> VERSION="1.5"
95a97,105
> # $ battery
> # Battery 1
> # Battery: battery not installed, above warning level
> # Charger: charger not connected, not charging
> # UPS: UPS not installed
> # System:
> # Voltage: 0.000V
> # Current: 0.000A
> # Charge: 0.000Ah of 0.000Ah
197a208
> amperage1=0 ; amperage2=0
504c515
< # 0x00000200 9 7 clam shell is closed
---
> # 0x00000200 9 7 clamshell is closed



[ Reply to This | # ]