From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johan Vromans Subject: Re: first shoot for smartbattery Date: Mon, 10 Jan 2005 20:34:41 +0100 Message-ID: References: <41D56002.5060008@mega.ist.utl.pt> <200501101524.58077.sanskryt@op.pl> <200501101736.24293.sanskryt@op.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <200501101736.24293.sanskryt-FWhLrETftxM@public.gmane.org> =?iso-8859-2?q?=28Zdzis=B3aw?= A. Kaleta's message of "Mon, 10 Jan 2005 17:36:22 +0100") Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org "Zdzis=B3aw A. Kaleta" 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=20 > 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 =3D "smartbattery2 0"; to my $prog =3D "smartbattery2 1"; -- Johan ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt