Re: [gentoo-user] Questions about cpu frequency utils scripting

2015-04-22 Thread Rich Freeman
On Tue, Apr 21, 2015 at 1:02 PM, Mike Gilbert wrote: > On Mon, Apr 20, 2015 at 9:05 PM, Walter Dnes wrote: >> It seems like many of the cpu speed/governor switcher utilities in >> /usr/portage/sys-power don't work due to being too old. > > sys-power/cpupower is probably the best option in the p

Re: [gentoo-user] Questions about cpu frequency utils scripting

2015-04-21 Thread Mike Gilbert
On Mon, Apr 20, 2015 at 9:05 PM, Walter Dnes wrote: > It seems like many of the cpu speed/governor switcher utilities in > /usr/portage/sys-power don't work due to being too old. sys-power/cpupower is probably the best option in the portage tree. It's sources are maintained in the kernel source

Re: [gentoo-user] Questions about cpu frequency utils scripting

2015-04-21 Thread Alec Ten Harmsel
On 04/21/15 11:24, Walter Dnes wrote: > On Tue, Apr 21, 2015 at 06:42:35AM -0400, Alec Ten Harmsel wrote >> for core in `ls /sys/devices/system/cpu/ | egrep "cpu[0-9]+"` >> >> This works great on my desktop with 12 cores. > Can you please check whether Emanuele's solution works on your system?

Re: [gentoo-user] Questions about cpu frequency utils scripting

2015-04-21 Thread Walter Dnes
On Tue, Apr 21, 2015 at 06:42:35AM -0400, Alec Ten Harmsel wrote > > for core in `ls /sys/devices/system/cpu/ | egrep "cpu[0-9]+"` > > This works great on my desktop with 12 cores. Can you please check whether Emanuele's solution works on your system? for core in /sys/devices/system/cpu/cpu[0

Re: [gentoo-user] Questions about cpu frequency utils scripting

2015-04-21 Thread Alec Ten Harmsel
On 04/20/2015 09:05 PM, Walter Dnes wrote: > > Another item I'm missing is wildcarding directories in bash. The > selected values are applied to the CPUs in a loop that goes like so... > > for core in /sys/devices/system/cpu/cpu[0-9]/ > do >echo "${governor[${choiceminus}]}" > ${core}cpufr

Re: [gentoo-user] Questions about cpu frequency utils scripting

2015-04-21 Thread Emanuele Rusconi
for core in /sys/devices/system/cpu/cpu[0-9]*/ -- Emanuele Rusconi

[gentoo-user] Questions about cpu frequency utils scripting

2015-04-20 Thread Walter Dnes
It seems like many of the cpu speed/governor switcher utilities in /usr/portage/sys-power don't work due to being too old. I cobbled together a simple bash script (YES!) that sort of emulates the eselect interface, and allows me to switch between userspace/powersave/performance/ondemend/conserva