https://bugzilla.kernel.org/show_bug.cgi?id=24492





--- Comment #37 from Lan Tianyu <tianyu....@intel.com>  2011-06-27 06:59:42 ---
Current the sysfs works correctly.  If upower queried power_now, it would get
correct status. But it didn't. I guess it maybe a upower issue.

Do you use the latest version?
I use the 0.9.1 version and test it on my laptop. But it's battery is not sbs. 
Do the same operation. "energy-rate: 0W" will also happen sometime while the
sysfs power_now is correct. But after 30 seconds, upower updated data
correctly. 

(In reply to comment #31)
>- Battery is discharging at boot. upower --monitor-detail running in
>background. upower gets regular updates every 30 s, but it indicates
>"energy-rate: 0 W", so it doesn't provide any estimate for discharge time.
>Status and rate of discharge is sysfs appear to be correct and coherent with
>procfs:
(In reply to comment #34)
> > Did "energy-rate: 0 W" happen without the test patch before?
> No: before this patch energy-rate used to be the same value as current_now, 
> and
> the same was reported in power_now. Now power_now seems to be correct, while
> upower has zero rate.
I find the upower depend on the "/sys/class/power_supply/BAT0/current_now".
In the patch https://bugzilla.kernel.org/attachment.cgi?id=63262, I remove the
current_now and current_avg from the sysfs when the battery unit is "mW". The
current_now and current_avg should not be exist at that time. But this caused
the "energy-rate: 0 W". The upower work abnormally.


Hi Matthew Garrett, I find you removed the current_now in the battery.c when
the unit is "mW". Commit b137b9942a07843c64a934cfdb7d43155e507e13. Have you
seen such problem? Thanks.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to