Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424643 - sys-power/cpufrequtils is dead upstream and should be replaced with sys-power/cpupower (sys-power/cpupowerutils)
Summary: sys-power/cpufrequtils is dead upstream and should be replaced with sys-power...
Status: RESOLVED DUPLICATE of bug 408193
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2012-07-03 20:12 UTC by Robert Cabrera
Modified: 2012-07-18 15:41 UTC (History)
5 users (show)

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


Attachments
modified ebuild from Strohel overlay (cpupower-3.4.ebuild,1.29 KB, text/plain)
2012-07-03 20:14 UTC, Robert Cabrera
Details
configuration file (cpupowerutils-conf.d,1.60 KB, text/plain)
2012-07-03 20:16 UTC, Robert Cabrera
Details
init file (cpupowerutils-init.d,1.16 KB, text/plain)
2012-07-03 20:16 UTC, Robert Cabrera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Cabrera 2012-07-03 20:12:27 UTC
sys-power/cpufrequtils is dead upstream. There have been no updates in a year and all of its functionality has been moved to 'cpupower' which is included with all mainline kernel sources in /linux/tools/power/cpupower/ since ver-3.1. Since it's no longer maintained and all development has shifted to cpupower we should do the same as well.

The application is known by various names with different distros as cpupower, cpupower-utils, or cpupowerutils.

Most distros (including RedHat, Suse, Debian, Ubuntu, Mint, and Arch) have been making the switch, because cpupower includes finer grain control of cpu and idle governors and support for the latest generation of processors across platforms which weren't supported by cpufrequtils.

It's currently included as part of the package sys-apps/linux-misc-apps-3.1, however this doesn't build in my system. (Since I don't require any of the other tools, I've been searching for a stand-alone solution.)

There are two threads in the Gentoo forums mentioning this app and several bug reports requesting its inclusion in the tree including #358801 #408193 #410439.

Since its nearly a drop in replacement for cpufrequtils it shouldn't be too difficult for the maintainer to make the switch.

I'm a truck driver, not a programmer. However, I was able to install the application by modifying the ebuild from the 'Strohel overlay' and combining with the init script and config file provided by Phillip Richter in bug #410439 which I manually added to /etc/conf.d and /etc/init.d then installed in my default runlevel.

Since installing last week my battery uptime has increased dramatically vs cpufrequtils on my ~amd64 laptop. I'm getting 20 more minutes on a charge. On a laptop which used get barely get 2 hours this is impressive.

I'm including a slightly modified ebuild and configuration files that I've been using.

Hopefully someone with better skills than myself can improve and incorporate this into the tree so that the deprecated cpufrequtils can be removed in its favor.

TIA

Reproducible: Always
Comment 1 Robert Cabrera 2012-07-03 20:14:12 UTC
Created attachment 317063 [details]
modified ebuild from Strohel overlay
Comment 2 Robert Cabrera 2012-07-03 20:16:09 UTC
Created attachment 317065 [details]
configuration file
Comment 3 Robert Cabrera 2012-07-03 20:16:41 UTC
Created attachment 317067 [details]
init file
Comment 4 poncho 2012-07-03 22:42:48 UTC
currently cpupower is installed by sys-apps/linux-misc-apps but without init script.

% equery b /usr/bin/cpupower
sys-apps/linux-misc-apps-3.1 (/usr/bin/cpupower)
Comment 5 Manuel Rüger (RETIRED) gentoo-dev 2012-07-03 23:49:40 UTC
see bug #408193 and bug #410439
Comment 6 Robert Cabrera 2012-07-04 09:16:53 UTC
To comments #4 and #5, DON"T YOU EVEN BOTHER TO READS THESE POSTS BEFORE COMMENTING ON THEM??!!

I know about the other bug reports, I specifically mentioned 3 of them #358801 #408193 #410439, as well as two threads in the forum. And I also mentioned its inclusion in sys-apps/linux-misc-apps-3.1, AS WELL AS STATING THAT IT DOESN'T BUILD FOR ME!!!

I'm asking for this this (sys-power/cpupower) to be released as a separate stand alone app REPLACING or in addition to sys-power/cpufrequtils WHICH IS DEAD UPSTREAM and being replaced in most distros by cpupower.

Cpufrequtils doesn't support the addition power savings features in most Intel CPUs post core2 and most AMD multicore cpus, period. Additionally, cpupower better supports ARM, and most other architectures. So its benefits will be felt across platforms.

I've included a modified ebuild and scripts that I found here and in the forums. They have worked for me and present a starting point for someone wishing to improve and expand upon.

As I said previously, I'm a truck driver not a programmer. I've done the best I could to help contribute. Which is more than I can say for you two chiming in to restate the previously stated without adding anything new or positive to the discussion!!!
Comment 7 Manuel Rüger (RETIRED) gentoo-dev 2012-07-09 16:06:55 UTC
If you know that there are other bugs, why don't you contribute to these bugs instead of creating a new one? 

Multiple bugs make it very hard for interested developers and users to check where they find the latest ebuild for cpupower.

I also see no bug report regarding the build failure of linux-misc-apps.
Comment 8 Robert Cabrera 2012-07-17 07:21:50 UTC

(In reply to comment #7)
> If you know that there are other bugs, why don't you contribute to these
> bugs instead of creating a new one? 
> 
> Multiple bugs make it very hard for interested developers and users to check
> where they find the latest ebuild for cpupower.
> 
> I also see no bug report regarding the build failure of linux-misc-apps.


Again I ask did you even bother to take the time to read my original post or any other comments on this thread? Obviously not!

For one, I've included an ebuild which needs improvement and two scripts that work for me, to help somebody as a starting point. I can't do much more as I don't know a thing about programing. THIS IS A CONTRIBUTION TO THE COMMUNITY!!! I can't possibly make it any easier SINCE I"M NOT A PROGRAMMER!!!!

I'm a 50 year old truck driver/Family man, who has been a Linux user since the mid 90's and a Gentoo user and contributer (in ways that I can, including bug reports and helping in the forums) for over a decade.

Now as to not reporting a bug on linux-misc-apps.... The reason is simple, I only need this tool, the build fails elsewhere, and I don't have the inclination nor the extra time to deal with it when I already have what I need that is working for me with this ebuild and included files.

Again, if YOU have nothing to contribute positively, (which you haven't done thus far) then move on!

Ciao
Comment 9 Julian Ospald 2012-07-18 15:33:50 UTC

*** This bug has been marked as a duplicate of bug 408193 ***
Comment 10 Matt Turner gentoo-dev 2012-07-18 15:41:09 UTC
Hey Robert.

Sorry it's taken me so long to get to this. I'm in the process of moving across the US, but be assured this is important to me and is on my to-do list.