Re: first shoot for smartbattery

Johan Vromans
2005-01-10T19:34:41Z

"Zdzisław A. Kaleta" <sanskryt-FWhLrETftxM@public.gmane.org> writes:

> Sorry to insist but still a mistake and I am not a coder ;-(
> "Use of uninitialized value in concatenation (.) or string at ./battstat.pl
> line 95."
>
> Line 95 is "$mw->title("Battery: $time ($status%)");"
>
> and there is no info in the windows

1. Would it be possible that you are running the 'original'
smartbattery application, and not Pedro's enhanced version? This is
the expected output of smartbattery2:

----snip----
status: fully charged discharging initialized
mode: capacity in 10 mW/mWh
design voltage: 14800 mV
design charge capacity: 4400 mAh or mWh
absolute charge: 93%
full charge capacity: 4270 mAh or mWh
relative charge: 96%
current: -1171 mA
voltage: 16360 mV
remain: 4081 mA
average time to empty: 253 minutes
average time to full: 65535 minutes
temperature: 26.5 C
cycle count: 13
----snip----

2. You seem to be using SMbus #1, so did you change the line

my $prog = "smartbattery2 0";
to
my $prog = "smartbattery2 1";

-- Johan