! 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 !
battery state wrong
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-sensors-plugin
Component:
General

Comments

Description Raphael Groner 2010-12-09 23:25:02 CET
There is always 0 mWh if I use /sys/class/power_state for my battery.

Probably, it has to be voltage_new or charge_now instead of energy_now in line #315 of lib/acpi.c.

$ ls /sys/class/power_supply/BAT0/
alarm               current_now   model_name     status      uevent
charge_full         cycle_count   power          subsystem   voltage_min_design
charge_full_design  device        present        technology  voltage_now
charge_now          manufacturer  serial_number  type

$ uname -a
Linux lokalhorst.lokal 2.6.35.6-48.fc14.x86_64 #1 SMP Fri Oct 22 15:36:08 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547991
Comment 1 Raphael Groner 2010-12-10 00:18:22 CET

*** This bug has been marked as a duplicate of bug 6959 ***

Bug #6957

Reported by:
Raphael Groner
Reported on: 2010-12-09
Last modified on: 2010-12-10

People

Assignee:
Fabian Nowak
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information