Running wmlaptop with linux-2.6.36 fails at run time since the file /proc/acpi/info no longer exists. It was thankfully only using this to detect the presence of ACPI, so a patch was easy (I just check RX bits on /proc/acpi). I also upgraded to version 1.4, which the patch was made for. I haven't yet informed the author, but I will do so soon; the project is basically dead. Reproducible: Always Steps to Reproduce:
Created attachment 256624 [details, diff] acpi_check.patch checks RX bits on /proc/acpi instead of R bit on /proc/acpi/info
Hi Markus, I tried your patch and it works. However, wmlaptop itself still does not work (at least on my machine): it goes a little forward in the output log and stops at this: Found 1 battery's entry Enable autoShutdown at 1% battery state Use a shutdown delay of 1 minutes The real poweroff will run at 1% battery state + 1 minutes Error reading the info file (/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq): No such file or directory
Added your patch to Portage anyways (and bumped package version to 1.4). Could you also check the new issue I described above?
I think you just need to set CONFIG_CPU_FREQ=y in the kernel.
Hi Markus, not necessarily. Some CPUs won't support frequency management. Plus, I think that wmlaptop should not fail if it is not enabled / supported by the CPU, it should just ignore it if not available ... Bye, Michele
(In reply to comment #4) > I think you just need to set CONFIG_CPU_FREQ=y in the kernel. If it needs it (even if it shouldn't) that option should be checked from ebuild, I think
It seems none of that dirs exist at present time: $ wmlaptop Cannot open /proc/acpi/battery: No such file or directory Cannot support ACPI (the file /proc/acpi don't exists) Switching to APM.. Cannot support APM (the file /proc/apm don't exists) .. and now ?.. i must die And since this is dead since 2004 I wonder it will be fixed ever
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44f2894b6eea7651de10699ae9f88af734b60471 commit 44f2894b6eea7651de10699ae9f88af734b60471 Author: Mikle Kolyada <zlogene@gentoo.org> AuthorDate: 2018-07-24 22:52:23 +0000 Commit: Mikle Kolyada <zlogene@gentoo.org> CommitDate: 2018-07-24 22:52:23 +0000 x11-plugins/wmlaptop: remove last rited package Closes: https://bugs.gentoo.org/348124 x11-plugins/wmlaptop/Manifest | 1 - .../wmlaptop/files/wmlaptop-ACPI-detection.patch | 24 ----------- x11-plugins/wmlaptop/files/wmlaptop-Makefile.patch | 32 --------------- x11-plugins/wmlaptop/files/wmlaptop.desktop | 8 ---- x11-plugins/wmlaptop/metadata.xml | 9 ----- x11-plugins/wmlaptop/wmlaptop-1.4.ebuild | 46 ---------------------- 6 files changed, 120 deletions(-)