解决一下喽,,Ubuntu正在成为我的笔记本硬盘杀手??[已解决]

笔记本/便携移动设备,手机平板等软硬件
头像
cn1860
帖子: 71
注册时间: 2008-10-21 20:56

Re: 解决一下喽,,Ubuntu正在成为我的笔记本硬盘杀手??[已解决]

#76

帖子 cn1860 » 2010-11-16 10:33

001jsr 写了:今天专门测试了一下win7下的这个数字,9个小时用AC涨了100多,
10.10里面解决了没啊
头像
it5u
帖子: 64
注册时间: 2009-06-14 18:22

Re: 解决一下喽,,Ubuntu正在成为我的笔记本硬盘杀手??[已解决]

#77

帖子 it5u » 2010-11-19 17:08

恐怖事件
大家牛才是真的牛!
头像
17beloved
帖子: 227
注册时间: 2012-02-23 15:29

Re: 解决一下喽,,Ubuntu正在成为我的笔记本硬盘杀手??[已解决]

#80

帖子 17beloved » 2012-03-07 17:29

我的之前一直w7,最近才用的ubuntu,那个值也有19万多啊!!!不过我用了2年了。哎,还是想用久一点啊。
作为一名菜菜菜菜菜鸟,裸奔在ubuntu的大道上,我鸭梨很大
datangtujue
帖子: 46
注册时间: 2012-01-02 12:53

Re: 解决一下喽,,Ubuntu正在成为我的笔记本硬盘杀手??[已解决]

#81

帖子 datangtujue » 2012-04-07 7:26

请问各位达人,这个问题在11.10里是否解决了?2006年的bug,现在已经2012年了,我猜应该解决了吧?谢谢了!本人Linux新手,看到此帖心中一凉,大有“不懂Linux的用Linux,躺着也会中枪”的感觉啊。
dogal
帖子: 900
注册时间: 2006-11-23 13:04

Re: 解决一下喽,,Ubuntu正在成为我的笔记本硬盘杀手??[已解决]

#82

帖子 dogal » 2012-05-14 20:10

datangtujue 写了:请问各位达人,这个问题在11.10里是否解决了?2006年的bug,现在已经2012年了,我猜应该解决了吧?谢谢了!本人Linux新手,看到此帖心中一凉,大有“不懂Linux的用Linux,躺着也会中枪”的感觉啊。

sudo apt-get install laptop-mode-tools

然后,sudo vim /etc/laptop-mode/laptop-mode.conf
设置CONTROL_HD_POWERMGMT=1
头像
liangwilliam
帖子: 36
注册时间: 2008-07-27 11:16
来自: 廣州

Re: 解决一下喽,,Ubuntu正在成为我的笔记本硬盘杀手??[已解决]

#83

帖子 liangwilliam » 2012-06-04 22:38

mark~
头像
lovelyzlf
帖子: 946
注册时间: 2009-11-04 13:03
联系:

Re: 解决一下喽,,Ubuntu正在成为我的笔记本硬盘杀手??[已解决]

#84

帖子 lovelyzlf » 2012-06-05 1:21

193 Load_Cycle_Count 0x0012 099 099 000 Old_age Always - 13916 :em05
没问题,一直是这个值
linux for human beings!
SAMSUNG Q460,CPU intel i3 2330,RAM 8G,HDD640G,Graphic card GT540 1G
Debian-testing(wheezy)+KDE
yuyuen72
帖子: 82
注册时间: 2011-11-20 18:48

Re: 解决一下喽,,Ubuntu正在成为我的笔记本硬盘杀手??[已解决]

#85

帖子 yuyuen72 » 2012-06-23 12:26

本人新人 这个问题在12.04 lts 中还存在吗
atsivsucks
帖子: 221
注册时间: 2012-03-01 19:23
系统: Ubuntu 12.04

Re: 解决一下喽,,Ubuntu正在成为我的笔记本硬盘杀手??[已解决]

#86

帖子 atsivsucks » 2012-06-23 12:51

應該是10.04和以上版本都沒問題了,參考:
https://wiki.ubuntu.com/PowerManagement
newlifer
帖子: 28
注册时间: 2011-08-07 16:00

Re: 解决一下喽,,Ubuntu正在成为我的笔记本硬盘杀手??[已解决]

#87

帖子 newlifer » 2012-07-02 17:47

不应该到现在还有问题了吧?……
头像
careone
帖子: 839
注册时间: 2007-12-17 21:41

Re: 解决一下喽,,Ubuntu正在成为我的笔记本硬盘杀手??[已解决]

#88

帖子 careone » 2012-07-07 9:34

UBUNTU WIKI 官方说明
https://wiki.ubuntu.com/PowerManagement
How to get disks to spin down and idle correctly (without excessive load cycling)

10.04
The laptop-mode-tools (disk idleing) package does not get installed by default any more, but just installing it should make disk idleing work (on battery) right away now.

8.10 to 9.10
Many of the previous issues have been addressed. All you need to do is:

代码: 全选

"ENABLE_LAPTOP_MODE=true" in /etc/default/acpi-support
(Bugs 244838 497738)


8.04 (Hardy)
Unfortunately, ubuntu has mangled disk idling into event handling and power state switching in the past. And this did not deliver idle disks but break disk idling (laptop-mode) features by leaving undefined (factory default) apm settings in place.

To correct disk-idling in Ubuntu Hardy you need to adjust the following:

Enable CONTROL_HD_POWERMGMT=1 in /etc/laptop-mode/laptop-mode.conf
(Bug 244832 missing hdparm -B setting during boot (fixed in intrepid 250935))
ENABLE_LAPTOP_MODE=true in /etc/default/acpi-support (another package's conffile), even if you do not ENABLE_LAPTOP_MODE_ON_BATTERY or _ON_AC in laptop-mode.conf. So that laptop-mode-tools can control the harddisk power management settings.
(244838 laptop-mode needs to be activated in two places)
Delete or #comment the four $HDPARM blocks (for...done) in /etc/acpi/power.sh and change the two $LAPTOP_MODE start/stop lines to "$LAPTOP_MODE auto"
(244836 /etc/acpi/power.sh overrides user settings (fixed in intrepid 250938))
(244831 /etc/acpi/power.sh overrides user scripts (fixed in intrepid 250938))
(244844 Adapt laptop-mode-tools invocation to ubuntu's acpi-support / pm-utils packages (fixed in intrepid 250935))
Create an empty "laptop-tools" file (touch /etc/pm/power.d/laptop-tools) to override /usr/lib/pm-utils/power.d/laptop-tools.
(239419 pm-utils has laptop-tools script which conflicts with laptop-mode-tools (not so in intrepid))
With the above changes hardy (ubuntu 8.04) will set the hdparm -B value to 254 when booting and thus override inadequately aggressive hardware defaults that cause load cycling. Not all harddisks will stop head parking with value 255 and some may even overheat. (hdparm -B255 turns off the disk's apm feature, but this only turns off the spin down timer in many disks and doesn't increase the head parking timer at all, which is the issue here.)

Other issues/adjustuments are related to have the hdparm -B value also reset after a suspend/resume cycle (fixed in intrepid 250935).

244833 missing hdparm -B setting during resume
244839 /etc/acpi/start.d and resume.d scripts are not run.
244844 Adapt laptop-mode-tools invocation to ubuntu's acpi-support / pm-tools packages also:
238555 pm-utils doesn't reload hdparm.conf after a suspend
Comments
Can someone maybe elaborate in the wiki why it's not enabled by default? Without an explanation i'm wondering why, and if there maybe are good arguments against doing so.

I searched around and it seems I am not the only one with this problem and unfortunately, I could not find a good answer in the forums. Consequently, could someone explain in a little more detail how one would go about creating "a bogus /etc/pm/power.d/laptop-tools script to override /usr/lib/pm-utils/power.d/laptop-tools." Does it entail just making a new file the in the directory or is there actual code that has to go in the file. Thanks - Ali

Ali, just copy /usr/lib/pm-utils/power.d/laptop-tools to /etc/pm/power.d/laptop-tools and insert the code near line 26 following guidelines in 239419
Actually, to disabe this yet another "laptop-tools" script from pm-utils you just need to create an empty file (touch /etc/pm/power.d/laptop-tools). (Info also added above)
The issues described here are pointed out in the interesting bug 59695: "High frequency of load/unload cycles on some hard disks may shorten lifetime"

It would be helpful to have clear guidance on what changes should be made to a 7.10 (Gutsy) system. I expect the alarming click I hear periodically, especially on an idle system, is an the head reset being discussed.

Gutsy will lose support at the end of April so I don't think there is a point in adding that.

This opensuse wiki page might be useful for creating a proper solution for pm-utils - -- AzraelNightwalker 2008-07-14 15:32:11

This page shows a simple script that successfully activates laptop-mode after resuming from suspend in Hardy. --AbtZ

PowerManagement (2010-04-15 11:28:39由martijn-de-nerd编辑)
魁拔不死,天下不宁。
魁拔既死,天下不平。
--------------
Careone <emacslocale^126.com>
https://sourceforge.net/projects/emacslocale/files/
回复