Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377355 - acpitool 0.5.1 does not work with linux 3 (patch included)
Summary: acpitool 0.5.1 does not work with linux 3 (patch included)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2011-08-01 23:30 UTC by Damien Thébault
Modified: 2012-01-30 14:46 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix acpitool 0.5.1 to work with linux 3.X (acpitool-0.5.1-linux3.patch,387 bytes, text/plain)
2011-08-01 23:30 UTC, Damien Thébault
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Damien Thébault 2011-08-01 23:30:06 UTC
Created attachment 281785 [details]
Fix acpitool 0.5.1 to work with linux 3.X

acpitool does not work anymore with linux 3 but worked before with 2.6.

acpitool checks the linux kernel version before accessing /sys/power/state, the default is still to use /proc/acpi/sleep (linux 2.4).
A check is done on the version in /proc/sys/kernel/osrelease, which was either starting by 2.4 or 2.6. However, now linux starts with "3.X", so it won't use the linux-2.6 compatible interface but the old linux-2.4 one, which does not work.
Comment 1 stephen.thomas 2011-08-03 19:37:59 UTC
*** Bug 377455 has been marked as a duplicate of this bug. ***
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-01-30 14:46:21 UTC
+*acpitool-0.5.1-r1 (30 Jan 2012)
+
+  30 Jan 2012; Samuli Suominen <ssuominen@gentoo.org>
+  +acpitool-0.5.1-r1.ebuild, +files/acpitool-0.5.1-ac_adapter.patch,
+  +files/acpitool-0.5.1-battery.patch, +files/acpitool-0.5.1-kernel3.patch,
+  +files/acpitool-0.5.1-wakeup.patch:
+  Fix compability with Linux 3.x wrt #377355 by Damien Thébault. Fix reading
+  of values from ac_adapters and batteries. Rewrite part of the wakeup code.
+  This will also close #337565 (overflow revealed by _FORTIFY_SOURCE) by Diego
+  Elio Pettenò.