Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348124 - x11-plugins/wmlaptop-1.3 fails without CONFIG_CPU_FREQ
Summary: x11-plugins/wmlaptop-1.3 fails without CONFIG_CPU_FREQ
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: Pending removal: 2018-07-17
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2010-12-08 08:35 UTC by Markus Peloquin
Modified: 2018-07-24 22:53 UTC (History)
1 user (show)

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


Attachments
acpi_check.patch (acpi_check.patch,983 bytes, patch)
2010-12-08 08:36 UTC, Markus Peloquin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Peloquin 2010-12-08 08:35:23 UTC
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:
Comment 1 Markus Peloquin 2010-12-08 08:36:31 UTC
Created attachment 256624 [details, diff]
acpi_check.patch

checks RX bits on /proc/acpi instead of R bit on /proc/acpi/info
Comment 2 Michele Noberasco (RETIRED) gentoo-dev 2011-05-26 14:44:29 UTC
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
Comment 3 Michele Noberasco (RETIRED) gentoo-dev 2011-05-26 14:54:15 UTC
Added your patch to Portage anyways (and bumped package version to 1.4). Could you also check the new issue I described above?
Comment 4 Markus Peloquin 2011-05-26 15:03:36 UTC
I think you just need to set CONFIG_CPU_FREQ=y in the kernel.
Comment 5 Michele Noberasco (RETIRED) gentoo-dev 2011-05-26 15:22:09 UTC
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
Comment 6 Pacho Ramos gentoo-dev 2012-10-06 15:09:02 UTC
(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
Comment 7 Pacho Ramos gentoo-dev 2018-04-01 11:42:53 UTC
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
Comment 8 Larry the Git Cow gentoo-dev 2018-07-24 22:53:12 UTC
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(-)