-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

hopefully this is the correct place for my issue.

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.

Merry Christmas
Florian Eitel

[1]:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=b137b9942a07843c64a934cfdb7d43155e507e13
[2]:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=7faa144a518c456e2057918f030f50100144ccc6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)

iQIcBAEBCAAGBQJNEkMeAAoJEDG1ZAdA+6K+VeAP/0pNc5A8/skT6ckRHdDtFJf7
u/IHOXLAlV/aHuKF6XtqQE09Y1kIkLTThb1wsjLLjvpqtF/8+cvnva1ahMLvErks
GqADvR5vo+hLUhkuRrMVSkFjbk8Q351/89B08fv4aLpMXXmgqteriADUxEOd6WFV
w93SKUnKr4yQQiTByQN7Gwv94tu4ROv31ZJ44e7r6nRFPWjpTc5AGAFIh185fPlp
9JWFMRKKBQRbc+wP+1oBtm4eLdE1lL0/RmlsOikMtemZemLX5XBKbAaCWptSSMm9
EKHYIQ4sFmh5bhR7U5OrvWWQCxgirJr0JrJh9i/KYiBIZ2t8VpDWOqx7gbjlq4VZ
7FebRsfFMD15NzVwcOZ0OwC5v8uHcpfOgYnpkFR3wsdlZxY+GdZoW++tcTz2p5hH
TQwqY5R7nXwd1+ZmHqRKHi3gyMxEBm24MTvDYBlZ3ryKIKbTBBTSN6lPN5agKRJL
LWalaac2rLHsGX0WB/Mwn5Hlu0lKz+IgIChZhL4/9pGshwiIAqOrDeT+3hMGam56
241ufmM26BOwHPPrG7uVxlz5DFER7a2fWq8CHB3YoygFYB9cGYbPyUwU3FjUQIIg
30ETsa482jjdWxZB3fH1bsE17t14Cn+t2P66o3iVyJ5zobM9LeM4OTvTFpB7g6vO
2J7oBUoqcwb45cEqKOtH
=z9cq
-----END PGP SIGNATURE-----
From 9961929a75dbeda9f5102a0b4337dc3a79b0c75b Mon Sep 17 00:00:00 2001
From: Florian Eitel <fei...@indeedgeek.de>
Date: Wed, 22 Dec 2010 18:54:34 +0100
Subject: [PATCH] sysfs attribute current_now is removed in 2.6.36

see commit:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.36.y.git;a=commitdiff;h=b137b9942a07843c64a934cfdb7d43155e507e13
---
 src/linux/up-device-supply.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c
index 341f5df..7497327 100644
--- a/src/linux/up-device-supply.c
+++ b/src/linux/up-device-supply.c
@@ -555,7 +555,7 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply)
 	}
 
 	/* get rate; it seems odd as it's either in uVh or uWh */
-	energy_rate = fabs (sysfs_get_double (native_path, "current_now") / 1000000.0);
+	energy_rate = fabs (sysfs_get_double (native_path, "power_now") / 1000000.0);
 
 	/* convert charge to energy */
 	if (energy == 0) {
-- 
1.7.2.5

_______________________________________________
devkit-devel mailing list
devkit-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/devkit-devel

Reply via email to