Hi Wouter!

It seems, that my patch isn't complete, since with the following
output of acpi -bi:

Battery 0: Discharging, 87%, 03:13:16 remaining
Battery 0: design capacity 1958 mAh, last full capacity 1506 mAh = 76%
Battery 1: Not charging, 5%
Battery 1: design capacity 4609 mAh, last full capacity 4239 mAh = 91%

I now see the charging symbol (flash next to the battery).

So the attached additional patch seems to be necessary.

Greetings
Roland
diff --git a/fdpowermon b/fdpowermon
index d7b8b6f..ee20dda 100755
--- a/fdpowermon
+++ b/fdpowermon
@@ -447,6 +447,9 @@ sub checklevels {
 	if($state =~ /Discharging/) {
 		$step = $themes{$theme}->{discharging};
 		$charging = 0;
+	} elsif($state =~ /Not charging/) {
+		$step = $themes{$theme}->{discharging};
+		$charging = 0;
 	} elsif($state =~/Charging/) {
 		$step = $themes{$theme}->{charging};
 		$charging = 1;

Attachment: signature.asc
Description: PGP signature

Reply via email to