#5867 NORM Never A: "Battery fully charged" shows up in error (battery is removed)
Zarro Boogs per Child
bugtracker at laptop.org
Sun Jan 6 05:05:01 EST 2008
#5867: "Battery fully charged" shows up in error (battery is removed)
---------------------+------------------------------------------------------
Reporter: rbh00 | Owner: jg
Type: defect | Status: new
Priority: normal | Milestone: Never Assigned
Component: distro | Version: Build 653
Resolution: | Keywords:
Verified: 0 | Blocking:
Blockedby: |
---------------------+------------------------------------------------------
Comment(by rbh00):
The attached patch modifies these two files:
sugar/shell/model/devices/battery.py
sugar/shell/view/devices/battery.py
To apply the attached patch follow these steps:
1. Have the patch in e.g. /tmp/5867.patch
2. Change directory to /usr/share/sugar
3. Execute this command: patch -p1 < /tmp/5867.patch
Description:
With the fix, battery.present is tested. If it is False, the other three
properties are not tested (they have been writing error messages to
shell.log when there's no battery) and the "My Battery life" detal reads
"Battery not present".
--
Ticket URL: <http://dev.laptop.org/ticket/5867#comment:1>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list