I was wondering why the battery information isn't updated and found out that some of the value names for the battery state don't match with the system interface:
working version: === modified file 'usr/lib/byobu/battery' --- usr/lib/byobu/battery 2012-02-23 14:02:53 +0000 +++ usr/lib/byobu/battery 2012-12-16 01:00:16 +0000 @@ -38,8 +38,8 @@ if [ -r "$bat/uevent" ]; then . "$bat/uevent" present="$POWER_SUPPLY_PRESENT" - full="$POWER_SUPPLY_CHARGE_FULL" - rem="$POWER_SUPPLY_CHARGE_NOW" + full="$POWER_SUPPLY_ENERGY_FULL" + rem="$POWER_SUPPLY_ENERGY_NOW" state="$POWER_SUPPLY_STATUS" [ "$present" = "1" ] && [ -n "$full" ] && [ -n "$rem" ] && [ -n "$state" ] && break fi
ProblemType: Bug DistroRelease: Ubuntu 13.04 Package: byobu 5.22-0ubuntu1 [modified: usr/lib/byobu/battery] ProcVersionSignature: Ubuntu 3.7.0-4.12-generic 3.7.0-rc7 Uname: Linux 3.7.0-4-generic x86_64 NonfreeKernelModules: nvidia ApportVersion: 2.7-0ubuntu2 Architecture: amd64 Date: Sun Dec 16 02:03:07 2012 EcryptfsInUse: Yes InstallationDate: Installed on 2011-10-08 (434 days ago) InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20111007) MarkForUpload: True PackageArchitecture: all ScreenRC:
SourcePackage: byobu UpgradeStatus: No upgrade log present (probably fresh install)
I was wondering why the battery information isn't updated and found out that some of the value names for the battery state don't match with the system interface:
working version: byobu/battery' byobu/battery 2012-02-23 14:02:53 +0000 byobu/battery 2012-12-16 01:00:16 +0000
if [ -r "$bat/uevent" ]; then
. "$bat/uevent"
present= "$POWER_ SUPPLY_ PRESENT" POWER_SUPPLY_ CHARGE_ FULL" SUPPLY_ CHARGE_ NOW" POWER_SUPPLY_ ENERGY_ FULL" SUPPLY_ ENERGY_ NOW"
state= "$POWER_ SUPPLY_ STATUS"
[ "$present" = "1" ] && [ -n "$full" ] && [ -n "$rem" ] && [ -n "$state" ] && break
fi
=== modified file 'usr/lib/
--- usr/lib/
+++ usr/lib/
@@ -38,8 +38,8 @@
- full="$
- rem="$POWER_
+ full="$
+ rem="$POWER_
ProblemType: Bug byobu/battery] ature: Ubuntu 3.7.0-4.12-generic 3.7.0-rc7 dules: nvidia ture: all
DistroRelease: Ubuntu 13.04
Package: byobu 5.22-0ubuntu1 [modified: usr/lib/
ProcVersionSign
Uname: Linux 3.7.0-4-generic x86_64
NonfreeKernelMo
ApportVersion: 2.7-0ubuntu2
Architecture: amd64
Date: Sun Dec 16 02:03:07 2012
EcryptfsInUse: Yes
InstallationDate: Installed on 2011-10-08 (434 days ago)
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20111007)
MarkForUpload: True
PackageArchitec
ScreenRC:
SourcePackage: byobu
UpgradeStatus: No upgrade log present (probably fresh install)