<---- template headericclude ----->
Decrease CPU Speed
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    renanfernandes Guest

    Decrease CPU Speed

    Hi all,

    I have a toshiba a 75 laptop. Under windows I can control the speed of my cpu and with this increase my battery life
    But under linux I can't.
    Im using fc 3, with kernel 2.6.9, which modules and programs should I run to decrease my processor speed?

    thans

  2. #2
    advisor Guest
    Check your services. There should be one that deals with cpu frequency scalling. I thinks its called cpufreq

  3. #3
    heffe2001 Guest
    cpuspeed is built into the Core 3 Test 3, not sure if it was in Core 2 or not. It's not activated by default, so you'll have to add it to whatever runlevel you're using. It'll take your speed down to the slowest, and ramp it back up when you need it.

  4. #4
    Jman Guest
    Yes, cpuspeed is in Fedora Core 2.

  5. #5
    rpaller Guest
    I have a Toshiba A40-270 here is my /etc/cpuspeed.conf:
    Code:
    VMAJOR=1
    VMINOR=1
    DRIVER="p4-clockmod"
    OPTS="-a /proc/acpi/ac_adapter/ACAD/state -t /proc/acpi/thermal_zone/THRM/temperature 75"
    I haven't played with it too much, as the first time I messed with it I dialed my CPU back to 350mhz. I got the basis of my information from this article: Linux Magazine - Linux for Laptop

    Hope this helps points you in the right direction.

  6. #6
    beijingjj Guest
    My default install put the wrong driver in for my CPU (I have a P4) but I modified it to look like yours above.

    However, I don't believe the service is modifying the cpu speed. When I cat /proc/cpuinfo it always shows the same speed (3201 MHz). I took a look at /usr/src/linux-2.6.9/Documentation/cpu-freq/user-guide.txt and it describes a directory /sys/devices/system/cpu/cpu0/cpufreq/ where one can modify parameters such as minimum and maximum cpu speeds, but my system does not have this directory. Should I create it and add the parameters by hand?

    Normally, is there a command I can issue to manually lower my cpu speed?

    I believe my bios is acpi compatible. Do I need to still enable APM in the kernel for speedstep to work? I have disabled it because I thought it was not used.

    Apologies for being so clueless.

  7. #7
    renanfernandes Guest

    Unhappy

    I'm having the same problem man :/

    tell me if you find an answer

    thanks a lot

  8. #8
    rpaller Guest
    Here is what I have done to get dynamic CPU speed to work:

    1) Modify /etc/cpuspeed.conf for your processor
    Code:
    VMAJOR=1
    VMINOR=1
    OPTS="-i 2"
    DRIVER="p4-clockmod"
    See article in Linux Magazine for driver options: Linux on Laptops
    2) Install Gnome applet CPU Speed Monitor as root from DAG repository.
    Code:
    yum install gnome-cpufreq-applet.i386
    3) Add applet to your panel.
    4) Start the cpuspeed service via Main Menu->System Settings->Server Settings->Services or run system-config-services as root from terminal session.
    5) After testing it out with your current session, make it permanent by check the box next to the cpuspeed service and when you log out of Gnome, check the box to save current session settings so the CPU Speed Monitor will load automatically on your next session.

    After doing such, I have found that my CPU falls back to 349MHz when relatively idle, but will ramp up to 2.8GHz when activity picks up on the system. Test it and see if your results are similar. Worse case if you don't find the CPU speed changing dynamically, if you stop the cpuspeed service your CPU should return to normal.

    Good luck!

  9. #9
    rpaller Guest
    The one thing I have yet to figure out is if I can alter the slowest CPU speed it will dial back to. Right now it dials back to 349MHz which causes GNOME to get a little sloppy with screen activities like minimizing.

  10. #10
    renanfernandes Guest

    Unhappy

    Thanks a lot for helping me
    but even doing everything you told me to do, I can't seem to do all this stuff works
    cpufreq is running
    root 3646 0.0 0.1 2956 444 ? Ss 22:39 0:00 cpuspeed -d -i 2

    and my cpuspeed.conf is this :

    VMAJOR=1
    VMINOR=1
    OPTS="-i 2"
    DRIVER="p4-clockmod"

    the driver is ok! is it the driver of my thoshiba p75

    But I saw at that Linux on laptops link that I should have this file :
    [root@notebook renan]# cat /proc/cpufreq
    cat: /proc/cpufreq: File not found
    [root@notebook renan]#

    and then? What i do?
    I did everything!

    thanks

  11. #11
    websavages Guest
    what does your /proc/cpuinfo say?

    Cheers ws

  12. #12
    rpaller Guest
    cpuspeed <> /proc/cpufreq

    CPUFreq is a module that I don't believe is necessary to stepdown the processor on your laptop when it is idle. Check /proc/cpuinfo and see what it says. If the the CPU Speed is less then your max then it is likely that cpuspeed is doing what it should. Try copying a large file and in a seperate terminal check /proc/cpuinfo again. It should have increased.

  13. #13
    renanfernandes Guest
    [renan@notebook ~]$ cat /proc/cpuinfo
    processor : 0
    vendor_id : GenuineIntel
    cpu family : 15
    model : 3
    model name : Mobile Intel(R) Pentium(R) 4 CPU 3.06GHz
    stepping : 4
    cpu MHz : 3068.217
    cache size : 1024 KB
    physical id : 0
    siblings : 2
    fdiv_bug : no
    hlt_bug : no
    f00f_bug : no
    coma_bug : no
    fpu : yes
    fpu_exception : yes
    cpuid level : 5
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni monitor ds_cpl est tm2 cid xtpr
    bogomips : 6078.46

    processor : 1
    vendor_id : GenuineIntel
    cpu family : 15
    model : 3
    model name : Mobile Intel(R) Pentium(R) 4 CPU 3.06GHz
    stepping : 4
    cpu MHz : 3068.217
    cache size : 1024 KB
    physical id : 0
    siblings : 2
    fdiv_bug : no
    hlt_bug : no
    f00f_bug : no
    coma_bug : no
    fpu : yes
    fpu_exception : yes
    cpuid level : 5
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni monitor ds_cpl est tm2 cid xtpr
    bogomips : 6127.61

    Thats it
    My cpuspeed doesn"t change. it is allways at that speed

  14. #14
    websavages Guest
    cheers, am i correct in thinking your are running a smp kernel

    also the driver you need for cpuspeed is park of the kernel and not p4-clockmod. so you can comment out the driver directive. oh and using a non smp kernel helps aswell. here's a quick test

    do a

    Code:
    cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
    should print 1599960 or there abouts

    this is the current frequency that the cpu is running at 1.5Ghz

    now get the pid of cpuspeed

    Code:
    ps -u root | grep cpu
    now we ramp up the frequency of the cpu to full speed

    Code:
    kill -s SIGUSR1 (pid of cpuspeed)
    and check the frequency of the cpu

    Code:
    cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
    should be about 3066590

    to bring it back down to dynamic scaling

    run

    Code:
    kill -s SIGHUP (pid of cpuspeed)
    hope this helps

    Cheers ws

  15. #15
    renanfernandes Guest
    Oh! I notice that when I put this line :
    OPTS="-a /proc/acpi/ac_adapter/ACAD/state -t /proc/acpi/thermal_zone/THRM/temperature 75"
    on cpuspeed.conf, my cpuspeed daemon doesn't works, it seems like the process die
    If i remove this line, cpuspeed works, but doesn't change my cpuspeed
    I checked that I don"t have the directory /proc/acpi/thermal_zone/THRM, only have the dir /proc/acpi/thermal_zone/

Page 1 of 2 12 LastLast

Similar Threads

  1. Speed
    By BadMojo in forum Using Fedora
    Replies: 3
    Last Post: 4th May 2009, 08:56 PM
  2. Connection speed and download speed
    By tech291083 in forum Linux Chat
    Replies: 0
    Last Post: 1st December 2008, 10:17 AM
  3. Help: network SENT speed only 1/2 of RECEIVING speed?
    By fly2moon2 in forum Servers & Networking
    Replies: 0
    Last Post: 8th September 2006, 03:45 AM
  4. NVIDIA-Linux-x86-1.0-7676 : FPS decrease
    By O(V)eGA_l2el) in forum Using Fedora
    Replies: 0
    Last Post: 15th September 2005, 12:46 AM
  5. FC Speed-up
    By Prodoc in forum Using Fedora
    Replies: 4
    Last Post: 10th March 2005, 04:24 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]