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的数据:
- cpufrequtils 007: cpufreq-info (c) dominik brodowski 2004-2009
- report errors and bugs to cpufreq@vger.kernel.org, please.
- analyzing cpu 0:
- driver: acpi-cpufreq
- cpus which run at the same hardware frequency: 0 1 2 3
- cpus which need to have their frequency coordinated by software: 0
- maximum transition latency: 10.0 us.
- hardware limits: 933 mhz - 2.40 ghz
- available frequency steps: 2.40 ghz, 2.27 ghz, 2.13 ghz, 2.00 ghz, 1.87 ghz, 1.73 ghz,
- 1.60 ghz, 1.47 ghz, 1.33 ghz, 1.20 ghz, 1.07 ghz, 933 mhz
- available cpufreq governors: conservative, ondemand, userspace, powersave, performance
- current policy: frequency should be within 933 mhz and 2.40 ghz.
- the governor "ondemand" may decide which speed to use
- within this range.
- current cpu frequency is 933 mhz (asserted by call to hardware).
- 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%,
- 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%,
- 1.07 ghz:0.19%, 933 mhz:95.92% (1694)
- analyzing cpu 1:
- driver: acpi-cpufreq
- cpus which run at the same hardware frequency: 0 1 2 3
- cpus which need to have their frequency coordinated by software: 1
- maximum transition latency: 10.0 us.
- hardware limits: 933 mhz - 2.40 ghz
- available frequency steps: 2.40 ghz, 2.27 ghz, 2.13 ghz, 2.00 ghz, 1.87 ghz, 1.73 ghz, 1.60 ghz,
- 1.47 ghz, 1.33 ghz, 1.20 ghz, 1.07 ghz, 933 mhz
- available cpufreq governors: conservative, ondemand, userspace, powersave, performance
- current policy: frequency should be within 933 mhz and 2.40 ghz.
- the governor "ondemand" may decide which speed to use
- within this range.
- current cpu frequency is 933 mhz (asserted by call to hardware).
- 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%,
- 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%,
- 1.07 ghz:0.13%, 933 mhz:97.01% (1056)
- analyzing cpu 2:
- driver: acpi-cpufreq
- cpus which run at the same hardware frequency: 0 1 2 3
- cpus which need to have their frequency coordinated by software: 2
- maximum transition latency: 10.0 us.
- hardware limits: 933 mhz - 2.40 ghz
- available frequency steps: 2.40 ghz, 2.27 ghz, 2.13 ghz, 2.00 ghz, 1.87 ghz, 1.73 ghz, 1.60 ghz,
- 1.47 ghz, 1.33 ghz, 1.20 ghz, 1.07 ghz, 933 mhz
- available cpufreq governors: conservative, ondemand, userspace, powersave, performance
- current policy: frequency should be within 933 mhz and 2.40 ghz.
- the governor "ondemand" may decide which speed to use
- within this range.
- current cpu frequency is 933 mhz (asserted by call to hardware).
- 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%,
- 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%,
- 1.07 ghz:0.32%, 933 mhz:95.14% (1855)
- analyzing cpu 3:
- driver: acpi-cpufreq
- cpus which run at the same hardware frequency: 0 1 2 3
- cpus which need to have their frequency coordinated by software: 3
- maximum transition latency: 10.0 us.
- hardware limits: 933 mhz - 2.40 ghz
- available frequency steps: 2.40 ghz, 2.27 ghz, 2.13 ghz, 2.00 ghz, 1.87 ghz, 1.73 ghz, 1.60 ghz,
- 1.47 ghz, 1.33 ghz, 1.20 ghz, 1.07 ghz, 933 mhz
- available cpufreq governors: conservative, ondemand, userspace, powersave, performance
- current policy: frequency should be within 933 mhz and 2.40 ghz.
- the governor "ondemand" may decide which speed to use
- within this range.
- current cpu frequency is 933 mhz (asserted by call to hardware).
- 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%,
- 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%,
- 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) |