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.
*** Bug 377455 has been marked as a duplicate of this bug. ***
+*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ò.