Author Topic: Help with cpufreq please  (Read 1484 times)

Online Aleph

  • Sr. Member
  • ****
  • Posts: 372
Help with cpufreq please
« on: November 03, 2012, 11:49:45 AM »
Hi friends,

I run PCLOS LXDE in a laptop and a netbook and I was able to set cpufreq "ondemand", but now I am not able in my desktop, a DELL Precisio 490. I was reading some post and trying to do something but without results.

Here is some info:

dmesg |grep processor
Code:


Code: [Select]
dmesg |grep processor
Checking if this processor honours the WP bit even in supervisor mode...Ok.
Detected 2660.034 MHz processor.
Total of 4 processors activated (21280.04 BogoMIPS).


lspi
Code:


Code: [Select]
lspci
00:00.0 Host bridge: Intel Corporation 5000X Chipset Memory Controller Hub (rev 12)
00:02.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 2 (rev 12)
00:03.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 3 (rev 12)
00:04.0 PCI bridge: Intel Corporation 5000X Chipset PCI Express x16 Port 4-7 (rev 12)
00:05.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 5 (rev 12)
00:06.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 6 (rev 12)
00:07.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 7 (rev 12)
00:10.0 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev 12)
00:10.1 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev 12)
00:10.2 Host bridge: Intel Corporation 5000 Series Chipset FSB Registers (rev 12)
00:11.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev 12)
00:13.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev 12)
00:15.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev 12)
00:16.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev 12)
00:1b.0 Audio device: Intel Corporation 631xESB/632xESB High Definition Audio Controller (rev 09)
00:1c.0 PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI Express Root Port 1 (rev 09)
00:1d.0 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #1 (rev 09)
00:1d.1 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #2 (rev 09)
00:1d.2 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #3 (rev 09)
00:1d.3 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #4 (rev 09)
00:1d.7 USB controller: Intel Corporation 631xESB/632xESB/3100 Chipset EHCI USB2 Controller (rev 09)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d9)
00:1f.0 ISA bridge: Intel Corporation 631xESB/632xESB/3100 Chipset LPC Interface Controller (rev 09)
00:1f.1 IDE interface: Intel Corporation 631xESB/632xESB IDE Controller (rev 09)
00:1f.2 SATA controller: Intel Corporation 631xESB/632xESB SATA AHCI Controller (rev 09)
00:1f.3 SMBus: Intel Corporation 631xESB/632xESB/3100 Chipset SMBus Controller (rev 09)
01:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Upstream Port (rev 01)
01:00.3 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to PCI-X Bridge (rev 01)
02:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E1 (rev 01)
02:01.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E2 (rev 01)
07:00.0 VGA compatible controller: NVIDIA Corporation NV43GL [Quadro FX 550] (rev a2)
0b:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5752 Gigabit Ethernet PCI Express (rev 02)
0c:02.0 FireWire (IEEE 1394): LSI Corporation FW322/323 (rev 61)

uname -a
Code:


Code: [Select]
uname -a
Linux localhost.localdomain 3.2.18-pclos2.bfs #1 SMP PREEMPT Thu May 24 04:44:50 CEST 2012 i686 i686 i386 GNU/Linux

cpufreq-info
Code:


Code: [Select]
cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 0.00 ms.
analyzing CPU 1:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 0.00 ms.
analyzing CPU 2:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 0.00 ms.
analyzing CPU 3:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 0.00 ms.

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1490
  • In theory, theory=practice, in practice ???
Re: Help with cpufreq please
« Reply #1 on: November 03, 2012, 01:35:08 PM »

I run PCLOS LXDE in a laptop and a netbook and I was able to set cpufreq "ondemand", but now I am not able in my desktop, a DELL Precisio 490. I was reading some post and trying to do something but without results.


cpufreq-set -r -g performance -u 1200mhz


I put the above command in /etc/rc.d/rc.local and it sets the cpu
to run slightly faster than the bus.    Tried 0n-demand and
conservative but no-go.   If they work for you let me know how
you did it.

regards,

FF
« Last Edit: November 03, 2012, 01:48:05 PM by Ferdes Fides »
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Online Aleph

  • Sr. Member
  • ****
  • Posts: 372
Re: Help with cpufreq please
« Reply #2 on: November 04, 2012, 02:20:28 AM »
Hi Ferdes Fides,

what should I write for ondemande in /etc/rc.d/rc.local, only cpufreq-set -r -g ondemande -u ?

More ideas please?

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1490
  • In theory, theory=practice, in practice ???
Re: Help with cpufreq please
« Reply #3 on: November 04, 2012, 10:36:43 AM »


 ondemand in /etc/rc.d/rc.local   cpufreq-set -r -g ondemand


The above should work, if it does let me know, try -g conservative also,
on my machine it doesn't work.


FF
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Online Aleph

  • Sr. Member
  • ****
  • Posts: 372
Re: Help with cpufreq please
« Reply #4 on: November 04, 2012, 11:21:56 AM »


 ondemand in /etc/rc.d/rc.local   cpufreq-set -r -g ondemand


The above should work, if it does let me know, try -g conservative also,
on my machine it doesn't work.


FF


Hi Ferdes Fides,

Thanks but I tried both and doesn't work  :-\

Could be fantastic JUPITER for PCLOS but is not possible...  :'(
http://www.jupiterapplet.org/

More ideas?

Thanks.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10697
  • MLUs Forever!
Re: Help with cpufreq please
« Reply #5 on: November 04, 2012, 12:02:19 PM »
PCC (Configure your Computer) - System - Manage system services - make sure cpufreq is ticked to start at boot and is running.
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1490
  • In theory, theory=practice, in practice ???
Re: Help with cpufreq please
« Reply #6 on: November 04, 2012, 04:38:22 PM »
PCC (Configure your Computer) - System - Manage system services - make sure cpufreq is ticked to start at boot and is running.

More people should use the PCC Control Center, it solves most problems.

There are three packages in Synaptic for cpufreq, I only have the command
line package installed.   One is an initscript, it wouldn't hurt to install that and
use PCC and the /etc/sysconfig/cpufreq file to configure, and forget about
/etc/rc.d/rc.local to avoid start-up conflicts.   

If that works post back, I'd like to try -g conservative if it does.

regards,

FF
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Online Aleph

  • Sr. Member
  • ****
  • Posts: 372
Re: Help with cpufreq please
« Reply #7 on: November 05, 2012, 08:18:15 AM »
PCC (Configure your Computer) - System - Manage system services - make sure cpufreq is ticked to start at boot and is running.

Hi Just17,

thanks but cpufreq is ticked at PCC and running....  :'(


More ideas?

Online Aleph

  • Sr. Member
  • ****
  • Posts: 372
Re: Help with cpufreq please
« Reply #8 on: November 05, 2012, 10:14:39 AM »
Hi friends,

I was looking for cpufreq files at /sys/devices/system/cpu/ and really I have not files there!

My laptop has a lot, for example:


/sys/devices/system/cpu/cpufreq/ondemand:

- ignore_nice_load
- io_is_busy
- powersave_bias
- sampling_down_factor
- sampling_rate
- sampling_rate_max
- sampling_rate_min
- up_threshold


Something is wrong about cpufreq...

I was reading and more people have the same problem:

Just wondering if /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies may not be available in an updated 2010 install versus brand new 2011 install.

I have an HP Mini with 2 installs. One of updated 2010 and another test install of 2011.

I get on my updated 2010 install the following:
Code: [Select]
[root@localhost xxx]# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
cat: /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies: No such file or directory

On going into the directory structure, I have a /sys/devices/system/cpu inside which there is "cpu0", "cpu1", "cpufreq", etc. Inside none of these I see the scaling_available_frequencies file.

I have both cpufreq-1.0-28pclos2010 and cpufrequtils-008-1pclos2010 accordiing to the rpm -qa|grep cpufreq


On the 2011 test install everything seems to work as suggested.

Even after using the frequencies reported by the 2011 install 2010 still shows no governor active by cpufreq-info.

Just reporting this for the possible difference.
-SS.

« Last Edit: November 05, 2012, 10:38:04 AM by Aleph »

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1490
  • In theory, theory=practice, in practice ???
Re: Help with cpufreq please
« Reply #9 on: November 05, 2012, 12:53:46 PM »

Something is wrong about cpufreq...


I agree, I tried all three programs in Synaptic this morning.    After rebooting
with each one several times the only one that responds is the one in rc.local,
the command line package.    And that with only the performance governor,
but does allow choice of speed with the -u option.   See Reply #1 for that.

Probably was made for an older kernel but just guessing about that.

regards,

FF
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1490
  • In theory, theory=practice, in practice ???
Re: Help with cpufreq please
« Reply #10 on: November 05, 2012, 09:01:53 PM »
@Aleph

Hi,

Can you run cpufreq-info in the terminal and post the result.    I think I may
have the right syntax for the cpufreq-set command to work.

THX

FF
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Online Aleph

  • Sr. Member
  • ****
  • Posts: 372
Re: Help with cpufreq please
« Reply #11 on: November 06, 2012, 08:07:21 AM »
Quote
Can you run cpufreq-info in the terminal and post the result.    I think I may
have the right syntax for the cpufreq-set command to work.

Hi FF,

I posted the cpufreq-info result above, in the first post.

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1490
  • In theory, theory=practice, in practice ???
Re: Help with cpufreq please
« Reply #12 on: November 06, 2012, 12:12:23 PM »
Quote
Can you run cpufreq-info in the terminal and post the result.    I think I may
have the right syntax for the cpufreq-set command to work.

Hi FF,

I posted the cpufreq-info result above, in the first post.

I know but it looks like the drivers aren't working, wondered if they still aren't,
and I can't see your available frequencies.   What kind of processor is that ?

Anyway, this command works on my machine in rc.local.    I only have the cpufrequtils
package installed.   

On your machine :

#set cpu to correct frequency
cpufreq-set -c 0 -g conservative -d 800mhz -u 1600mhz
cpufreq-set -c 1 -g conservative -d 800mhz -u 1600mhz
cpufreq-set -c 2 -g conservative -d 800mhz -u 1600mhz
cpufreq-set -c 3 -g conservative -d 800mhz -u 1600mhz

Replace the 800mhz and 1600mhz with whatever is right for that
machine.   conservative starts low and goes to a high speed nicely,
ondemand actually starts high and works lower with cpu per cent
usage, the inverse of what I think is wanted.

So, put the above 4 commands at the bottom of rc.local, reboot,
run cpufreq-info, post that, and we can see this thing working if
the machine's cpu is recognizing the drivers it's supposed to.

regards,


FF
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE

Online Aleph

  • Sr. Member
  • ****
  • Posts: 372
Re: Help with cpufreq please
« Reply #13 on: November 06, 2012, 01:06:36 PM »
Thanks FF, but doesn't works...

After copy and paste at rc.local this:

#set cpu to correct frequency
cpufreq-set -c 0 -g conservative -d 800mhz -u 2660mhz
cpufreq-set -c 1 -g conservative -d 800mhz -u 2660mhz
cpufreq-set -c 2 -g conservative -d 800mhz -u 2660mhz
cpufreq-set -c 3 -g conservative -d 800mhz -u 2660mhz


and reboot

cpufreq-info
Code:


Code: [Select]
cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 0.00 ms.
analyzing CPU 1:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 0.00 ms.
analyzing CPU 2:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 0.00 ms.
analyzing CPU 3:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 0.00 ms.


About the proccesor: I can see at PCC

CPU #1: Intel(R) Xeon(R) CPU            5150  @ 2.66GHz
CPU #2: Intel(R) Xeon(R) CPU            5150  @ 2.66GHz
CPU #3: Intel(R) Xeon(R) CPU            5150  @ 2.66GHz
CPU #4: Intel(R) Xeon(R) CPU            5150  @ 2.66GHz


I have installed both cpufreq and cpufrequtils
« Last Edit: November 06, 2012, 01:08:33 PM by Aleph »

Offline Yankee

  • Hero Member
  • *****
  • Posts: 1490
  • In theory, theory=practice, in practice ???
Re: Help with cpufreq please
« Reply #14 on: November 06, 2012, 01:29:41 PM »
Thanks FF, but doesn't works...

Thanks, nice processor.   If you can install the 2.6.38.8-pclos3.bfs
kernel, reboot with that kernel, be sure everything is hooked up
beforehand, only other thing to try today.   The freq's probably
need to be adjusted once we get the driver to tell us what they are.

The new kernel still has one or two things about it.   My machine is
using the kernel above, one of the better kernels.

Have a good one.

FF
ASUS EeePc 900HA netbook  1.6 Ghz Atom CPU  1GB RAM
160 GB internal HD    Seagate 250 GB USB portable drive 
Intel ‎Mobile 945GSE Integrated Graphics Controller
Atheros AR242x/AR542x Wireless Network Adapter
Intel (N10/ICH7 Family) High Definition Audio
Dynex 5-Button Wired Optical Mouse
LXDE