debian cpufreq配置

x220在windows下的待机一直是非常好的,但是在debian下经常耗电非常快,而且很烫。因为gnome3下设置cpu频率的那个插件不能使用了。所以就直接修改一下配置文件。因为获取电池电量有点问题,所以就把那部分去掉了。
[text]

[General]
pidfile=/var/run/cpufreqd.pid
poll_interval=2
verbosity=4
#enable_remote=1
#remote_group=root
#定义一般模式 0.8G-2.3G ondemand
[/General]
[Profile]
name=ac_normal
minfreq=1000000
maxfreq=2300000
policy=ondemand
[/Profile]

#定义使用电池时的一般模式 0.8G-1.6G conservative
[Profile]
name=bat_normal
minfreq=800000
maxfreq=1600000
policy=conservative
#policy=ondemand

[/Profile]

#定义高性能模式
[Profile]
name=performance_high
minfreq=1600000
maxfreq=2300000
policy=performance
[/Profile]

#定义一般的节能模式
[Profile]
name=powersave_nor
minfreq=800000
maxfreq=1200000
policy=powersave
[/Profile]

#定义低电量时的省电模式
[Profile]
name=powersave_low
minfreq=800000
maxfreq=800000
policy=powersave
[/Profile]

[Profile]
name=Conservative High
minfreq=800000
maxfreq=2300000
policy=conservative
[/Profile]
##
# Basic states
##
# 接电源时普通模式,ondemand
[Rule]
name=AC_Rule
ac=on # (on/off)
profile=ac_normal
[/Rule]

#接电源时编译代码时的高性能模式
[Rule]
name=AC_make_Rule
ac=on
programs=cc1,cc1plus,make,gcc,g++
profile=performance_high
[/Rule]

#电池时使用普通的conservative,0.8-1.6G
[Rule]
name=normal_battery
ac=off # (on/off)
#battery_interval=60-100
profile=bat_normal
[/Rule]

# 中等电量时使用的节能模式
#[Rule]
#name=medium_battery
#ac=off # (on/off)
#battery_interval=0-60
#profile=powersave_nor
#[/Rule]
#
## 低电量时使用的节能模式
#[Rule]
#name=low_battery
#ac=off # (on/off)
#battery_interval=0-30
#profile=powersave_low
#[/Rule]

##
# Special Rules
##
#接通电源时,如果CPU太烫时改变为和用电池时用的conservative。
[Rule]
name=CPU Too Hot
ac=on
acpi_temperature=70-100
cpu_interval=70-100
profile=bat_normal
[/Rule]

[/text]

这样插上电源的时候使用 ondemand模式,cpu的频率设置为1g-2.3G,拔掉电源后使用 conservative,cpu的频率设置为0.8g-1.6g。
不过现在风扇设置好像还有点问题,需要继续配置一下thinkfan才行。

今天只是把thinkfan安装上了,增加了模块加载的参数
[text]
pm@debian:/etc/modprobe.d$ cat /etc/modprobe.d/thinkfan.conf
options thinkpad_acpi fan_control=1

[/text]
然后 /etc/thinkfan.conf里设置了sensor /sys/class/hwmon/hwmon0/temp1_input

此条目发表在Admin分类目录。将固定链接加入收藏夹。

发表回复