LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 898|回复: 1

cpu变频的问题。

[复制链接]
发表于 2007-3-13 15:38:03 | 显示全部楼层 |阅读模式
用的是基于Debian的DreamLinux,无法支持cpu变频。
已经参照下文做了修改:

ACPI及speedstep设置
为支持speedstep修改/etc/modules添加如下模块
speedstep_centrino
cpufreq_powersave
cpufreq_userspace
为支持ACPI休眠到内存
添加如下文件
/etc/acpi/event/sleepbtn,内容如下
event=button[ /]sleep
action=/etc/acpi/sleepbtn.sh

创建/etc/acpi/sleepbtn.sh内容如下:
ORIGVT=`fgconsole`
chvt 1
rmmod ehci-hcd
/usr/sbin/radeontool light off
hwclock --systohc
echo -n mem > /sys/power/state
hwclock --hctosys
/etc/init.d/powernowd restart
/usr/sbin/radeontool light on
modprobe ehci-hcd
chvt $ORIGVT

现在,系统已经支持acpi电源管理和speedstep了。

请问我还要做什么?谢谢了。
发表于 2007-3-14 09:54:43 | 显示全部楼层
你的调度策略不对,

可以用root研究一下这个目录,

  1. /sys/devices/system/cpu/cpu0/cpufreq/
  2. 如果是多核的,应该还有
  3. /sys/devices/system/cpu/cpu<N>/cpufreq/
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表