Bug 32253 - /sys path for remaining power changed in Linux 2.6.36
Summary: /sys path for remaining power changed in Linux 2.6.36
Status: RESOLVED FIXED
Alias: None
Product: upower
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-09 00:34 UTC by Joachim Breitner
Modified: 2011-01-05 03:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Joachim Breitner 2010-12-09 00:34:43 UTC
Hi,

in the Debian bug report http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=601587, it was reported that a /sys filename has changed in Linux 2.6.36, per commit b137b9942a07843c64a934cfdb7d43155e507e13. This renders the remaining-time-to-depletion information defunct.

Greetings,
Joachim
Comment 1 Richard Hughes 2011-01-05 03:14:33 UTC
commit 2af7a6e091bb62faff9cdda5bb7e3fb5dcc8d15a
Author: Richard Hughes <richard@hughsie.com>
Date:   Mon Dec 27 19:22:11 2010 +0000

    Support the power_now sysfs attribute to get time remaining on new kernels
    
    The kernel has removed the insanity of providing current_now in either
    (and unspecified) units of uVh or uWh and instead provides power_now
    for the power rate value.
    
    Related commits:
    http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=b137b9942a07843c64a934cfdb7d43155e507e13
    http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=7faa144a518c456e2057918f030f50100144ccc6
    
    Thanks to Florian Eitel for the initial patch.

:100644 100644 341f5df... 95f186c... M  src/linux/up-device-supply.c


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.