Page 1 of 1

CPU Freq Control

Posted: 29 Mar 2013, 17:50
by Shocker
Newbie to Porteus- Long time user of linux (10+ years) RedHat during early years, then Ubuntu then many flavors of Puppy. Looking for 64 bit memory resident distros. I use Ubuntu64 12.04 desktop. Puppy Precise 5.5 Puppy Slacko 5.5 32 bit versions. Now to the issue!!

In everyone of those distros, but well after the original redhat distros, there is a GUI interfaced cpufrequtils that works fine. The Puppies just bring up the cpufrequtils from the desktop gui and select k8now and parameters and it works. (Ubuntu 64 is automatic installed)

I won't be able to test Porteus until I can quiet down (throttle) the cpu. The is an Asustek 16gig ram mb, amd 6000 (3Ghz) Athlon II processor K8NOW! I am unable to locate cpufrequtils in the porteus archive and the SLAX internet search revealed a non gui package??? After install I found three programs in /usr/bin and clicked on each to execute and no joy. Initiated in terminal with parameters, but still no joy. Any advice on repositories tha may have a functioning gui cpufrequtils like the other distros.

I've built some great 32 bit PAE puppy distros with Slacko 14 packages. Any advice would be appreiated.

Thanks,

Shocker

Re: CPU Freq Control

Posted: 29 Mar 2013, 19:34
by Hamza
Please try this module

cpufrequtils-008-x86_64-1

Re: CPU Freq Control

Posted: 31 Mar 2013, 02:27
by Shocker
Hamza--Thanks for the quick reply.

Downloaded the xzm module and it gave me a congratulations on a successful install!
Do these modules work like RPM, PET and other self executing packages?
Was this supposed to install a menu item with and icon and a GUI type interface?

Thanks for your help!

Shocker

Re: CPU Freq Control

Posted: 31 Mar 2013, 11:05
by Hamza
I don't know how works RPM but XZM are simply an archive of files compressed with XZ algorithm and mounted on root filesystem when activated.

You can either double-click on the XZM module to activate it and copy it over your modules for future automatically activation at next boot.

You can also run the command 'activate /path/to/module.xzm' in terminal to activate it and you will also to copy it over modules for the same reason.

I don't know if there is a GUI available for that package.

Re: CPU Freq Control

Posted: 03 Jun 2013, 06:31
by ncmprhnsbl
tested this module, worked for my athlon 260 cpu, and no, there is no gui.
this cpu was using powernowk8(depreciated since 3.2 kernel), now it uses acpi-cpufreq.
commands:

Code: Select all

cpufreq-set -c 1 -g ondemand
cpufreq-set -c 0 -g ondemand
each core seems to need to be set individually

Code: Select all

guest@porteus:~$ cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009         
Report errors and bugs to cpufreq@vger.kernel.org, please.             
analyzing CPU 0:                                                       
  driver: acpi-cpufreq                                                 
  CPUs which run at the same hardware frequency: 0                     
  CPUs which need to have their frequency coordinated by software: 0   
  maximum transition latency: 4.0 us.                                  
  hardware limits: 800 MHz - 3.20 GHz                                  
  available frequency steps: 3.20 GHz, 2.50 GHz, 1.90 GHz, 800 MHz     
  available cpufreq governors: ondemand, performance                   
  current policy: frequency should be within 800 MHz and 3.20 GHz.     
                  The governor "ondemand" may decide which speed to use
                  within this range.                                   
  current CPU frequency is 800 MHz.
i imagine there is a way to simply load cpufreq_ondemand(kernel module) at boot time...
i messed with the laptop-mode configs, but this didnt work..

Re: CPU Freq Control

Posted: 03 Jun 2013, 10:31
by Payoon
Here's how I did it:
Add the module cpufrequtils-008-x86_64-1.xzm to /porteus/modules
In /etc/rc.d/rclocal insert the following lines:

modprobe cpufreq_ondemand
cpufreq-set -c 0 -g ondemand
cpufreq-set -c 1 -g ondemand

test with cpufreq-info

greetings Payoon

Re: CPU Freq Control

Posted: 03 Jun 2013, 13:39
by ncmprhnsbl
@Payoon, thanks!, works perfectly.. :good:

Re: CPU Freq Control

Posted: 23 Aug 2013, 00:17
by dochood
I just tried this on Porteus 2.1 Mate, and I got a message that it is not a valid Porteus module.

Re: CPU Freq Control

Posted: 26 Aug 2013, 08:21
by ncmprhnsbl
dochood wrote:I just tried this on Porteus 2.1 Mate, and I got a message that it is not a valid Porteus module.
i'd say this is for Porteus 2.0 only, when i tried to activate in lxde i get no message at all(doesnt activate)(havent had this happen before)
in 2.1 frequency scaling govenor is set to ondemand by default, which suits me fine..
(i'm guessing)if you want to change this have a look at /etc/laptop-mode/conf.d/cpufreq line 58

Code: Select all

NOLM_AC_CPU_GOVERNOR=ondemand
change to 'performance' or 'conservative'... (if thats what you want)