Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 408193

Summary: sys-power/cpupower: the new sys-power/cpufrequtils
Product: Gentoo Linux Reporter: Martin Mokrejš <mmokrejs>
Component: [OLD] Core systemAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED FIXED    
Severity: normal CC: alexander, fedux, flow, ktrackfd, mieszkoslusarczyk, polynomial-c, richterphilipp.pops, robcab666, saintdev
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://permalink.gmane.org/gmane.linux.kernel.cpufreq/7041
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: sys-power/cpupowerutils-3.4.18
cpupower-3.4.18-makefile.patch
cpupower-3.4.18-makefile.patch

Description Martin Mokrejš 2012-03-14 18:46:44 UTC
I am not sure if this is really a replacement but it looks it is or will be in future.
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2012-06-17 03:28:01 UTC
This is now merged into the tools/ tree of the kernel tree. But it doesn't include the pmtools pieces. Those are at www.lesswatts.org.
Comment 2 Julian Ospald 2012-07-18 15:33:42 UTC
*** Bug 410439 has been marked as a duplicate of this bug. ***
Comment 3 Julian Ospald 2012-07-18 15:33:50 UTC
*** Bug 424643 has been marked as a duplicate of this bug. ***
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-11-17 11:21:11 UTC
Created attachment 329698 [details]
sys-power/cpupowerutils-3.4.18

Okay, I've started hacking together an ebuild for this. 
I find it quite annoying that these tools are part of the kernel sources so I put them into a tarball on my dev space. Please find attached the ebuild I'm currently using. I took the sources from 3.4.18 kernel version because that's the one I'm currently using on most of my machines.

Comments are welcome.
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-11-17 11:21:45 UTC
Created attachment 329700 [details, diff]
cpupower-3.4.18-makefile.patch

The needed patch to get the ebuild working.
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-11-17 11:23:38 UTC
Created attachment 329702 [details, diff]
cpupower-3.4.18-makefile.patch

Sorry, first patch contained a bad line. This one is good :)
Comment 7 Manuel Rüger (RETIRED) gentoo-dev 2012-11-17 14:05:34 UTC
bug #410439 and bug #424643 include also ebuilds and some more patches, maybe you want to take a look at them?

imho src_compile and src_install is not nescessary in your ebuild, if you want to process the default operations.
Comment 8 Martin Mokrejš 2012-12-19 15:49:07 UTC
Maybe the package should be rather just cpupower, like in other linux distros. Took me a while to realize this is a same thing. ;-) Works fine for me on 3.7.1 kernel but looks I will downgrade to 3.4 because can't make by CPU to go to the highest turbo frequency (hope the "smp_scheduler or mc_scheduler values in the configuration file" will help me, removed since kernel 3.5. :(). 

https://wiki.archlinux.org/index.php/CPU_Frequency_Scaling
https://bbs.archlinux.org/viewtopic.php?id=148113
Comment 9 Mieszko Ślusarczyk 2013-01-24 08:43:11 UTC
sys-power/cpupower-3.8_rc4 is already in the tree. I guess this can be closed
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2013-01-24 10:36:41 UTC
(In reply to comment #9)
> sys-power/cpupower-3.8_rc4 is already in the tree. I guess this can be closed

nod