ubuntu电源管理-凯发app官方网站

凯发app官方网站-凯发k8官网下载客户端中心 | | 凯发app官方网站-凯发k8官网下载客户端中心
  • 博客访问: 893574
  • 博文数量: 113
  • 博客积分: 3160
  • 博客等级: 少校
  • 技术积分: 1801
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-19 10:09
文章分类

全部博文(113)

相关博文
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·

分类: linux

2012-08-18 16:38:21


cpu:英特尔 酷睿i3 双核  m 370  2.40ghz
核心显卡:intel corporation core processor integrated graphics controller
独立显卡:nvidia corporation gf108 [geforce gt 425m]
主硬盘:西部数据 500gb 5400 转/分钟
操作系统: ubuntu 12.04lts


1 显示器

显示器这块历来是耗电大户,但是很多时候,你不可能为了省电把屏幕调到很暗的程度。
毕竟我们拿电脑是来工作的,不是受虐的。所以,亮度调节这块,自己决定。而且ubuntu
12.04可以使用键盘热键调节,不需要配置就可以了。

2 cpu

我使用了cpufreq-info查看了cpu的情况,下面是我个人电脑上面cpu的数据:


点击(此处)折叠或打开

  1. cpufrequtils 007: cpufreq-info (c) dominik brodowski 2004-2009
  2. report errors and bugs to cpufreq@vger.kernel.org, please.
  3. analyzing cpu 0:
  4. driver: acpi-cpufreq
  5. cpus which run at the same hardware frequency: 0 1 2 3
  6. cpus which need to have their frequency coordinated by software: 0
  7. maximum transition latency: 10.0 us.
  8. hardware limits: 933 mhz - 2.40 ghz
  9. available frequency steps: 2.40 ghz, 2.27 ghz, 2.13 ghz, 2.00 ghz, 1.87 ghz, 1.73 ghz,
  10. 1.60 ghz, 1.47 ghz, 1.33 ghz, 1.20 ghz, 1.07 ghz, 933 mhz
  11. available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  12. current policy: frequency should be within 933 mhz and 2.40 ghz.
  13. the governor "ondemand" may decide which speed to use
  14. within this range.
  15. current cpu frequency is 933 mhz (asserted by call to hardware).
  16. cpufreq stats: 2.40 ghz:3.20%, 2.27 ghz:0.05%, 2.13 ghz:0.03%, 2.00 ghz:0.05%, 1.87 ghz:0.08%,
  17. 1.73 ghz:0.06%, 1.60 ghz:0.12%, 1.47 ghz:0.12%, 1.33 ghz:0.10%, 1.20 ghz:0.09%,
  18. 1.07 ghz:0.19%, 933 mhz:95.92% (1694)
  19. analyzing cpu 1:
  20. driver: acpi-cpufreq
  21. cpus which run at the same hardware frequency: 0 1 2 3
  22. cpus which need to have their frequency coordinated by software: 1
  23. maximum transition latency: 10.0 us.
  24. hardware limits: 933 mhz - 2.40 ghz
  25. available frequency steps: 2.40 ghz, 2.27 ghz, 2.13 ghz, 2.00 ghz, 1.87 ghz, 1.73 ghz, 1.60 ghz,
  26. 1.47 ghz, 1.33 ghz, 1.20 ghz, 1.07 ghz, 933 mhz
  27. available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  28. current policy: frequency should be within 933 mhz and 2.40 ghz.
  29. the governor "ondemand" may decide which speed to use
  30. within this range.
  31. current cpu frequency is 933 mhz (asserted by call to hardware).
  32. cpufreq stats: 2.40 ghz:2.50%, 2.27 ghz:0.04%, 2.13 ghz:0.03%, 2.00 ghz:0.04%, 1.87 ghz:0.02%,
  33. 1.73 ghz:0.04%, 1.60 ghz:0.03%, 1.47 ghz:0.08%, 1.33 ghz:0.04%, 1.20 ghz:0.04%,
  34. 1.07 ghz:0.13%, 933 mhz:97.01% (1056)
  35. analyzing cpu 2:
  36. driver: acpi-cpufreq
  37. cpus which run at the same hardware frequency: 0 1 2 3
  38. cpus which need to have their frequency coordinated by software: 2
  39. maximum transition latency: 10.0 us.
  40. hardware limits: 933 mhz - 2.40 ghz
  41. available frequency steps: 2.40 ghz, 2.27 ghz, 2.13 ghz, 2.00 ghz, 1.87 ghz, 1.73 ghz, 1.60 ghz,
  42. 1.47 ghz, 1.33 ghz, 1.20 ghz, 1.07 ghz, 933 mhz
  43. available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  44. current policy: frequency should be within 933 mhz and 2.40 ghz.
  45. the governor "ondemand" may decide which speed to use
  46. within this range.
  47. current cpu frequency is 933 mhz (asserted by call to hardware).
  48. cpufreq stats: 2.40 ghz:3.67%, 2.27 ghz:0.08%, 2.13 ghz:0.05%, 2.00 ghz:0.05%, 1.87 ghz:0.04%,
  49. 1.73 ghz:0.10%, 1.60 ghz:0.14%, 1.47 ghz:0.15%, 1.33 ghz:0.12%, 1.20 ghz:0.13%,
  50. 1.07 ghz:0.32%, 933 mhz:95.14% (1855)
  51. analyzing cpu 3:
  52. driver: acpi-cpufreq
  53. cpus which run at the same hardware frequency: 0 1 2 3
  54. cpus which need to have their frequency coordinated by software: 3
  55. maximum transition latency: 10.0 us.
  56. hardware limits: 933 mhz - 2.40 ghz
  57. available frequency steps: 2.40 ghz, 2.27 ghz, 2.13 ghz, 2.00 ghz, 1.87 ghz, 1.73 ghz, 1.60 ghz,
  58. 1.47 ghz, 1.33 ghz, 1.20 ghz, 1.07 ghz, 933 mhz
  59. available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  60. current policy: frequency should be within 933 mhz and 2.40 ghz.
  61. the governor "ondemand" may decide which speed to use
  62. within this range.
  63. current cpu frequency is 933 mhz (asserted by call to hardware).
  64. cpufreq stats: 2.40 ghz:2.24%, 2.27 ghz:0.02%, 2.13 ghz:0.02%, 2.00 ghz:0.02%, 1.87 ghz:0.03%,
  65. 1.73 ghz:0.02%, 1.60 ghz:0.02%, 1.47 ghz:0.03%, 1.33 ghz:0.03%, 1.20 ghz:0.11%,
  66. 1.07 ghz:0.05%, 933 mhz:97.41% (795)

我们可以看到这个4核cpu的可用工作频率在933mhz到2.40ghz之间,而由cpufreq stats一块可以清楚的知道,4个cpu占97%左右的时候都是处在933mhz的最低水平,所以,cpu频率这一块也不需要自动调节,它自动调节功能已经可以了。

3 显卡

使用lspci | grep vga可以查看个人电脑上面的显卡类型,我的数据如下:

00:02.0 vga compatible controller: intel corporation core processor integrated graphics controller (rev 18)
01:00.0 vga compatible controller: nvidia corporation gf108 [geforce gt 425m] (rev ff)

从侦测数据上可以看到,我的电脑上面安装了核心显卡和n卡。

使用sudo cat /sys/kernel/debug/vgaswitcheroo/switch命令可以查看当前使用那一个
显卡,我的数据如下:

0:igd: :pwr:0000:00:02.0
1:dis: :off:0000:01:00.0

其中第一行的igd pwr表示当前使用的是核心显卡(这是我配置之后的)。

一般情况下,ubuntu会默认使用独显,所以会非常耗电。这里最重要的一步就是关闭独显
,只使用核心显卡。下面的命令可以关闭独显:

echo igd > /sys/kernel/debug/vgaswitcheroo/switch
echo off > /sys/kernel/debug/vgaswitcheroo/switch

使用sudo cat /sys/kernel/debug/vgaswitcheroo/switch再次查看,如果出现如下数据
即表示关闭独显成功:

0:igd: :pwr:0000:00:02.0
1:dis: :off:0000:01:00.0

在这里,如果要想开机时就关闭独显,可以在/etc/rc.local写入刚才命令即可。

4 硬盘

据说,ubuntu的电源管理有问题,对硬盘寿命有影响,我试了以下,貌似我的没什么影响。
使用如下命令可以查看:

sudo smartctl --all /dev/sda | grep 193
193 load_cycle_count        0x0032   198   198   000    old_age   always       -       8199

如果最后那个数字(我的是8199)增长很快,你就得注意了,这个上限是60w次,超出之后硬
盘就报废了。

下面的脚本可以检测在10分钟时间它的增长速度:

smartctl --all /dev/sda | grep 193;sleep 600;smartctl --all /dev/sda | grep 193

看看你中彩没有,我觉得这个谣言的成分大一点。。。。
阅读(7314) | 评论(0) | 转发(0) |
0

上一篇:latex入门

下一篇:ubuntu禁用独显

给主人留下些什么吧!~~
")); function link(t){ var href= $(t).attr('href'); href ="?url=" encodeuricomponent(location.href); $(t).attr('href',href); //setcookie("returnouturl", location.href, 60, "/"); }
网站地图