10.10的ATI开源驱动用户可以进来看看(关于电源管理)
- acid303
- 帖子: 547
- 注册时间: 2009-04-03 16:06
10.10的ATI开源驱动用户可以进来看看(关于电源管理)
来源:http://www.x.org/wiki/RadeonFeature
KMS Power Management Options
Kernel 2.6.35 or newer is required. The pm code supports two basic methods:
1. "dynpm"
2. "profile"
You can select the methods via sysfs. Echo "dynpm" or "profile" to /sys/class/drm/card-0/device/power_method.
The "dynpm" method dynamically changes the clocks based on the number of pending fences, so performance is ramped up when running GPU intensive apps, and ramped down when the GPU is idle. The reclocking is attemped during vertical blanking periods, but due to the timing of the reclocking functions, doesn't not always complete in the blanking period, which can lead to flicker in the display. Due to this, dynpm only works when a single head is active.
The "profile" method exposes five profiles that can be selected from:
1. "default"
2. "auto"
3. "low"
4. "mid"
5. "high"
Select the profile by echoing the selected profile to /sys/class/drm/card-0/device/power_profile.
* "default" uses the default clocks and does not change the power state. This is the default behavior.
* "auto" selects between "mid" and "high" power states based on the whether the system is on battery power or not. The "low" power state are selected when the monitors are in the dpms off state.
* "low" forces the gpu to be in the low power state all the time. Note that "low" can cause display problems on some laptops; this is why auto does not use "low" when displays are active.
* "mid" forces the gpu to be in the "mid" power state all the time. The "low" power state is selected when the monitors are in the dpms off state.
* "high" forces the gpu to be in the "high" power state all the time. The "low" power state is selected when the monitors are in the dpms off state.
The "profile" method is not as agressive as "dynpm," but is currently much more stable and flicker free and works with multiple heads active.
Power management is supported on all asics (r1xx-evergreen) that include the appropriate power state tables in the vbios; not all boards do (especially older desktop cards).
感兴趣的小白可以试试
KMS Power Management Options
Kernel 2.6.35 or newer is required. The pm code supports two basic methods:
1. "dynpm"
2. "profile"
You can select the methods via sysfs. Echo "dynpm" or "profile" to /sys/class/drm/card-0/device/power_method.
The "dynpm" method dynamically changes the clocks based on the number of pending fences, so performance is ramped up when running GPU intensive apps, and ramped down when the GPU is idle. The reclocking is attemped during vertical blanking periods, but due to the timing of the reclocking functions, doesn't not always complete in the blanking period, which can lead to flicker in the display. Due to this, dynpm only works when a single head is active.
The "profile" method exposes five profiles that can be selected from:
1. "default"
2. "auto"
3. "low"
4. "mid"
5. "high"
Select the profile by echoing the selected profile to /sys/class/drm/card-0/device/power_profile.
* "default" uses the default clocks and does not change the power state. This is the default behavior.
* "auto" selects between "mid" and "high" power states based on the whether the system is on battery power or not. The "low" power state are selected when the monitors are in the dpms off state.
* "low" forces the gpu to be in the low power state all the time. Note that "low" can cause display problems on some laptops; this is why auto does not use "low" when displays are active.
* "mid" forces the gpu to be in the "mid" power state all the time. The "low" power state is selected when the monitors are in the dpms off state.
* "high" forces the gpu to be in the "high" power state all the time. The "low" power state is selected when the monitors are in the dpms off state.
The "profile" method is not as agressive as "dynpm," but is currently much more stable and flicker free and works with multiple heads active.
Power management is supported on all asics (r1xx-evergreen) that include the appropriate power state tables in the vbios; not all boards do (especially older desktop cards).
感兴趣的小白可以试试
- acid303
- 帖子: 547
- 注册时间: 2009-04-03 16:06
Re: 10.10的ATI开源驱动用户可以进来看看(关于电源管理)
2.6.35内核或者以上的开源ATI用户,在开了kms(默认就是了)的情况下的电源管理:
推荐用profile的方法:
* "default" uses the default clocks and does not change the power state. This is the default behavior.
* "auto" selects between "mid" and "high" power states based on the whether the system is on battery power or not. The "low" power state are selected when the monitors are in the dpms off state.
* "low" forces the gpu to be in the low power state all the time. Note that "low" can cause display problems on some laptops; this is why auto does not use "low" when displays are active.
* "mid" forces the gpu to be in the "mid" power state all the time. The "low" power state is selected when the monitors are in the dpms off state.
* "high" forces the gpu to be in the "high" power state all the time. The "low" power state is selected when the monitors are in the dpms off state.
我的显卡没有电源管理机制(这个应该和bios有关),所以没有效果,希望成功的童鞋通报声
推荐用profile的方法:
代码: 全选
sudo su
echo ‘default’ >/sys/class/drm/card0/device/power_profile
--默认是default,可供选择的有:default、auto、low、mid、high五种,下面是说明
* "auto" selects between "mid" and "high" power states based on the whether the system is on battery power or not. The "low" power state are selected when the monitors are in the dpms off state.
* "low" forces the gpu to be in the low power state all the time. Note that "low" can cause display problems on some laptops; this is why auto does not use "low" when displays are active.
* "mid" forces the gpu to be in the "mid" power state all the time. The "low" power state is selected when the monitors are in the dpms off state.
* "high" forces the gpu to be in the "high" power state all the time. The "low" power state is selected when the monitors are in the dpms off state.
我的显卡没有电源管理机制(这个应该和bios有关),所以没有效果,希望成功的童鞋通报声
上次由 acid303 在 2011-04-25 21:59,总共编辑 1 次。
- playfish
- 帖子: 46
- 注册时间: 2007-09-12 8:30
Re: 10.10的ATI开源驱动用户可以进来看看(关于电源管理)
试了一下,用了mid,没啥变化阿。BTW,怎样查看GPU频率电压什么的参数?
- playfish
- 帖子: 46
- 注册时间: 2007-09-12 8:30
Re: 10.10的ATI开源驱动用户可以进来看看(关于电源管理)
还有,我改了以后,重启系统,结果那两个配置文件的内容又变回去了……谁能告诉我是怎么回事?
-
- 帖子: 10
- 注册时间: 2010-10-14 18:40
Re: 10.10的ATI开源驱动用户可以进来看看(关于电源管理)
ubuntu 10.10没有drm这个文件夹
- jarryson
- 帖子: 4002
- 注册时间: 2005-08-14 19:53
Re: 10.10的ATI开源驱动用户可以进来看看(关于电源管理)
这两个“文件”并不是实际存在的,而是由radeon模块动态生成的,所以重启当然会失效。
所以你需要写到启动脚本里面去。比如arch里面是/etc/rc.local
只有ATI开源驱动用户才可以做这个修改。
所以你需要写到启动脚本里面去。比如arch里面是/etc/rc.local
只有ATI开源驱动用户才可以做这个修改。
- playfish
- 帖子: 46
- 注册时间: 2007-09-12 8:30
- jarryson
- 帖子: 4002
- 注册时间: 2005-08-14 19:53
Re: 10.10的ATI开源驱动用户可以进来看看(关于电源管理)
sudo su。
要检查当前显卡频率,需要使用debugfs
sudo mount none /sys/kernel/debug/ -t debugfs
然后cat /sys/kernel/debug/dri/0/radeon_pm_info就可以看到当前模式了
要检查当前显卡频率,需要使用debugfs
sudo mount none /sys/kernel/debug/ -t debugfs
然后cat /sys/kernel/debug/dri/0/radeon_pm_info就可以看到当前模式了
- playfish
- 帖子: 46
- 注册时间: 2007-09-12 8:30
Re: 10.10的ATI开源驱动用户可以进来看看(关于电源管理)
哈哈,多谢。
经过一天的使用,效果还是很明显的。风扇经常停转。以前GPU温度常常在60度,现在稳定在55度。
代码: 全选
cat /sys/kernel/debug/dri/0/radeon_pm_info
default engine clock: 400000 kHz
current engine clock: 209250 kHz
default memory clock: 330000 kHz
current memory clock: 135000 kHz
- playfish
- 帖子: 46
- 注册时间: 2007-09-12 8:30
- jarryson
- 帖子: 4002
- 注册时间: 2005-08-14 19:53
Re: 10.10的ATI开源驱动用户可以进来看看(关于电源管理)
ubuntu启动的时候是否会加载/etc/rc.local还不清楚。
而且写在系统启动脚本里面的语句是不用加sudo的,本身就是root运行的
而且写在系统启动脚本里面的语句是不用加sudo的,本身就是root运行的
- playfish
- 帖子: 46
- 注册时间: 2007-09-12 8:30
Re: 10.10的ATI开源驱动用户可以进来看看(关于电源管理)
恩,去掉sudo 重启就正常了。灰常感谢!
-
- 帖子: 10
- 注册时间: 2009-10-27 16:13
Re: 10.10的ATI开源驱动用户可以进来看看(关于电源管理)
xorg上给了开启kms和关闭kms两种情况的方法。
我强制使用low,结果进入xscreensaver后死了,关电源重启。
使用dynpm的话经常有闪烁现象,果然如xorg上的文档说的...
hd3470
我强制使用low,结果进入xscreensaver后死了,关电源重启。
代码: 全选
"low" forces the gpu to be in the low power state all the time. Note that "low" can cause display problems on some laptops; this is why auto does not use "low" when displays are active.
代码: 全选
The "dynpm" method dynamically changes the clocks based on the number of pending fences, so performance is ramped up when running GPU intensive apps, and ramped down when the GPU is idle. The reclocking is attemped during vertical blanking periods, but due to the timing of the reclocking functions, doesn't not always complete in the blanking period, which can lead to flicker in the display. Due to this, dynpm only works when a single head is active.
- playfish
- 帖子: 46
- 注册时间: 2007-09-12 8:30
Re: 10.10的ATI开源驱动用户可以进来看看(关于电源管理)
目前电源管理对r500以下的显卡支持的比较好,3450是r600吧。我现在跑mid一点问题都没碰到,跑dynpm死了一次机。跑low就会显示不正常。我是t60p的本,x1200显卡,正好是r500的。