Linux/Ubuntu2015. 2. 12. 17:50

부팅시에 계속 ondemand로 설정되서 먼가 하고 찾아 봤는데

/etc/init.d/ondemand

라고 파일이 똭 -_-


$ cat /etc/init.d/ondemand

#! /bin/sh

### BEGIN INIT INFO

# Provides:          ondemand

# Required-Start:    $remote_fs $all

# Required-Stop:

# Default-Start:     2 3 4 5

# Default-Stop:

# Short-Description: Set the CPU Frequency Scaling governor to "ondemand"

### END INIT INFO



PATH=/sbin:/usr/sbin:/bin:/usr/bin


. /lib/init/vars.sh

. /lib/lsb/init-functions


case "$1" in

    start)

        start-stop-daemon --start --background --exec /etc/init.d/ondemand -- background

        ;;

    background)

        sleep 60 # probably enough time for desktop login


        for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

        do

                [ -f $CPUFREQ ] || continue

                echo -n ondemand > $CPUFREQ

        done

        ;;

    restart|reload|force-reload)

        echo "Error: argument '$1' not supported" >&2

        exit 3

        ;;

    stop)

        ;;

    *)

        echo "Usage: $0 start|stop" >&2

        exit 3

        ;;

esac 


$ ls -al /sys/devices/system/cpu/cpu*/cpufreq/

/sys/devices/system/cpu/cpu0/cpufreq/:

합계 0

drwxr-xr-x 4 root root    0 2015-02-12 17:34 .

drwxr-xr-x 7 root root    0 2015-02-12 17:32 ..

-r--r--r-- 1 root root 4096 2015-02-12 17:43 affected_cpus

-r-------- 1 root root 4096 2015-02-12 17:43 cpuinfo_cur_freq

-r--r--r-- 1 root root 4096 2015-02-12 17:33 cpuinfo_max_freq

-r--r--r-- 1 root root 4096 2015-02-12 17:43 cpuinfo_min_freq

-r--r--r-- 1 root root 4096 2015-02-12 17:43 cpuinfo_transition_latency

drwxr-xr-x 2 root root    0 2015-02-12 17:43 ondemand

-r--r--r-- 1 root root 4096 2015-02-12 17:43 related_cpus

-r--r--r-- 1 root root 4096 2015-02-12 17:33 scaling_available_frequencies

-r--r--r-- 1 root root 4096 2015-02-12 17:43 scaling_available_governors

-r--r--r-- 1 root root 4096 2015-02-12 17:34 scaling_cur_freq

-r--r--r-- 1 root root 4096 2015-02-12 17:43 scaling_driver

-rw-r--r-- 1 root root 4096 2015-02-12 17:34 scaling_governor

-rw-r--r-- 1 root root 4096 2015-02-12 17:33 scaling_max_freq

-rw-r--r-- 1 root root 4096 2015-02-12 17:43 scaling_min_freq

-rw-r--r-- 1 root root 4096 2015-02-12 17:43 scaling_setspeed

drwxr-xr-x 2 root root    0 2015-02-12 17:43 stats 


$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors

conservative ondemand userspace powersave performance 


음.. 깔끔(?) 하게 ondemand파일에서 거버너를 ondemand에서 performance로 해주면 해결?

근데 아무래도 ondemand니까 이름도 바꿔주는게 좋을듯 하다.


[링크 : http://ubuntuforums.org/showthread.php?t=860926]

'Linux > Ubuntu' 카테고리의 다른 글

apt-file  (0) 2015.02.13
ubuntu 10.04 32bit / PAE  (0) 2015.02.13
intel 내장형 SATA RAID 컨트롤러 /dev/mapping  (0) 2015.02.11
ld.so ?  (0) 2015.02.11
bash: ./arm-linux-gcc: No such file or directory  (0) 2015.01.12
Posted by 구차니