! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Time isn't shown when on battery power
Status:
RESOLVED: FIXED
Product:
Xfce4-battery-plugin
Component:
General

Comments

Description Lauri Kasanen 2007-12-10 17:53:42 CET
When on battery power, it doesn't show the time, it just shows "00:00:00".

I'm using acpi, if that matters..
The plugin is either 0.4.90.3 or 0.5, I don't remember and it doesn't list the version.
Comment 1 Alexander Toresson 2007-12-10 17:59:01 CET
Is the correct remaining time output by acpi -b when on battery power?
Comment 2 Lauri Kasanen 2007-12-11 15:54:00 CET
Not sure, I don't have acpid installed
Comment 3 flo 2011-02-18 17:08:13 CET
i had the same problem with plugin ver 1.0.0

the problem is simple: it looks for a file called "current_now", and expects the current rate be there. however, on some systems (like mine), the file is called "power_now"

i've attached the patch
Comment 4 flo 2011-02-18 17:09:35 CET
Created attachment 3481 
the patch to fix it

apply this patch to the file "libacpi.c" of the plugin
this patch is for version 1.0.0.
Comment 5 Nick Schermer editbugs 2011-02-18 18:21:49 CET
Fixed in f4a68f0.

Bug #3736

Reported by:
Lauri Kasanen
Reported on: 2007-12-10
Last modified on: 2011-02-18

People

Assignee:
Xfce-Goodies Maintainers
CC List:
2 users

Version

Version:
0.5.1 or older

Attachments

the patch to fix it (785 bytes, patch)
2011-02-18 17:09 CET , flo
no flags

Additional information