sysfs attribute current_now is removed in 2.6.36 (upower)

Richard Hughes hughsient at gmail.com
Mon Dec 27 11:23:44 PST 2010


On 22 December 2010 18:27, Florian Eitel <feitel at indeedgeek.de> wrote:
> In upower checks the current_now sysfs attribute. Linux Kernel
> 2.6.36 removes this attribute[1]. As far as I know the new power_now
> attribute ist added in 2.6.30 so in my opinion no distinction between
> the old current_now and the new power_now is necessary.

Sorry for the delay. I've been dealing with a family death and then
Christmas got in the way. I think the attached patch is better, as it
supports the fallback to old kernels and also deals with mAh reporting
systems. Can you please test this. Thanks.

Richard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Support-the-power_now-sysfs-attribute-to-get-time-re.patch
Type: text/x-diff
Size: 2212 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/devkit-devel/attachments/20101227/67ea36eb/attachment.patch>


More information about the devkit-devel mailing list