You are not logged in.

#1 2008-12-30 16:03:37

Olnex
Member
Registered: 2008-04-10
Posts: 89

How to make GNOME power management auto scale cpu frequency?

Hello everyone, I installed Archlinux on my new Toshiba U400/H00, everything works nicely, however, I need to manually scale cpu frequency when on AC/Battery, is there a way to make Gnome automatically scale it?
Thanks a lot!

Offline

#2 2008-12-30 16:49:16

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: How to make GNOME power management auto scale cpu frequency?

i use CPU Frequency Scaling Monitor and when i'm on battery i select power save or ondeman. don't know if is something automaticaly

Last edited by wonder (2008-12-30 16:50:31)


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2008-12-30 19:01:42

Diaz
Member
From: Portugal
Registered: 2008-04-16
Posts: 366

Re: How to make GNOME power management auto scale cpu frequency?

i miss the feature in gnome-power-manager since the last upgrade of gnome. following the devs justification, they say that it should always be ondemand and so the power manager shouldn't have the option to change it.

Offline

#4 2008-12-30 19:27:21

briest
Member
From: Katowice, PL
Registered: 2006-05-04
Posts: 468

Re: How to make GNOME power management auto scale cpu frequency?

Maybe just go down to acpid level and do it independently of DE devs idiosyncrasies?

For me, the following code in /etc/acpi/handler.sh does the job:

    ac_adapter)
        case "$2" in
            ACAD)
                case "$4" in
                    00000000)
                        echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
                        echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
                    ;;
                    00000001)
                        echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
                        echo 499 > /proc/sys/vm/dirty_writeback_centisecs
                    ;;
                esac
                ;;
            *) logger "ACPI action undefined: $2" ;;
        esac
        ;;

I believe the original code there tried to set fixed clockspeeds for these situations, but I find changing governor much more flexible.

Edit: there were some ACPI-related bugs during 2.6.26-27 development cycle, it may happen that you won't get any ACPI events playing with power source. 2.6.28 cured all ACPI problems for me, but YMMV.

Last edited by briest (2008-12-30 19:30:05)

Offline

#5 2008-12-31 06:57:39

Intrepid
Member
Registered: 2008-06-11
Posts: 254

Re: How to make GNOME power management auto scale cpu frequency?

I have everything already setup with ACPI and cpufreqd personally.  Check the archwiki for that.  As for in gnome, you can fine control the behavior with the CPU Frequency Scaling Monitor for the gnome panel.  It allows me to switch between layouts


Intrepid (adj.): Resolutely courageous; fearless.

Offline

Board footer

Powered by FluxBB