LinuxSir.cn,穿越时空的Linuxsir!

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

使用 Linux-PHC 给笔记本cpu降压

[复制链接]
发表于 2006-10-10 16:19:20 | 显示全部楼层 |阅读模式
首先声明,给cpu降压是存在一些风险的,gentoo的wiki上是这么说的:
  1. Warning: Use at your own risk. As far as we know it has been tested only
  2. on a few computers. It may very well permanently damage your CPU.

  3. We give no guarantee as to whether it will work for you.

  4. Changing the voltage of a Pentium M CPU is not recommended because it can
  5. make it run out of its specifications.
复制代码

呵呵,要不要用自己决定,另外 AMD 的 cpu 现在还不支持。

以前在windows下常用 RMClock 给自己的本本降压来延长电池的使用时间,前两天浏览beyond内核的网站时发现原来 beyond 内核中添加的 linux-PHC(Linux Processor Hardware Control) 补丁就是专门用来给 cpu 减压用的,而且用起来还十分简单:

只要使用 beyond 内核或者打上了Linux-PHC补丁的内核(可以到https://www.dedigentoo.org/trac/linux-phc/ 去找)
在 /sys/devices/system/cpu/cpu0/cpufreq/ 下会多op_points_table 和 voltage_table两个文件

首先,查看当前的电压设置:
  1. # cat /sys/devices/system/cpu/cpu0/cpufreq/op_points_table
  2. 1500000:1340,600000:988
复制代码

这里拿我的Dothan 1.5G作例子,意思就是1.5Ghz时使用1340mV的电压,600Mhz时使用988mV的电压。

如果想要把它降为1.5G时1028mV,600M时700mV,只需要
  1. # echo "1500000:1028,600000:700" > /sys/devices/system/cpu/cpu0/cpufreq/op_points_table
复制代码


这个值是我原来在windows下使用的经验值,万不可生搬硬套! 要根据你自己的cpu类型来具体决定。
在windows下如果电压降得过低会导致电脑失去响应!linux下估计也差不多。

具体数值可以参考 http://gentoo-wiki.com/HOWTO_Undervolt_a_Pentium_M_CPU 上面的安全电压表,建议先在windows下用RMClock试试。

另外可以使用下面的方法查看温度,(这是cpu 的? 还是主板的 ?)
  1. # cat /proc/acpi/thermal_zone/THRM/temperature
复制代码





.
发表于 2006-10-12 12:50:53 | 显示全部楼层
在支持ACPI的本子上,使用cpufreq就可以直接设置CPU的频率。
回复 支持 反对

使用道具 举报

发表于 2006-10-12 13:51:53 | 显示全部楼层
他说的是修改电压?。。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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