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

Comments

Description Raphael Groner 2010-12-10 00:15:39 CET
Created attachment 3263 
patch to have right unit for battery value
Comment 1 Raphael Groner 2010-12-10 00:17:54 CET
This patch fixes also values from /sys/class/power_state. See Bug #6957.
Comment 2 Raphael Groner 2010-12-10 00:18:22 CET
*** Bug 6957 has been marked as a duplicate of this bug. ***
Comment 3 Fabian Nowak editbugs 2010-12-11 13:32:05 CET
I don't have charge_now. What kernel, what ACPI version, what OS are you using? Ok, this is reported in 6957. Please care for where information is provided when you close a duplicate bug.

The mWh will be fixed to mAh when using charge_now, thanks for reporting.
Comment 4 Raphael Groner 2010-12-11 13:47:16 CET
(In reply to comment #3)
> I don't have charge_now. 

Yeah, that's the confusing part of it. Question: Is the content of /proc/acpi/battery/BAT0 the same as in /sys/class/power_supply? Probably have to consult documentation to answer for sure.

> What kernel, what ACPI version, what OS are you using?

$ uname -a
Linux lokalhorst.lokal 2.6.35.9-64.fc14.x86_64 #1 SMP Fri Dec 3 12:19:41 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
$ cat /proc/acpi/info 
version:                 20100428
$ cat /etc/fedora-release 
Fedora release 14 (Laughlin)


> Ok, this is reported in 6957. Please care for where information is provided
> when you close a duplicate bug.

It was tested on the same system.

Bug #6959

Reported by:
Raphael Groner
Reported on: 2010-12-10
Last modified on: 2010-12-11
Duplicates (1):

People

Assignee:
Fabian Nowak
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information