LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-15-2012, 08:34 AM   #1
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware current
Posts: 423

Rep: Reputation: 73
HD clicks and pm default


On my last two laptops and through 12.x and 13.x, I kept encountering the
issue with the HD making a clicking sound which shoves up the LOAD_CYCLE_COUNT and thus potentially dramatically shortens the lifetime of the HD. More detail and solutions can be found here:

http://www.linuxquestions.org/questi...clicks-731882/

I've noticed that despite issuing hdparm -B 254 /dev/sda in rc.local, I still suffer from the problem sometimes and there seem to be two causes: 1) the laptop reverts to a value of 128 when resuming from standby; 2) it reverts to 128 when powersave mode is enabled, e.g. when removing mains power.

The solution to all of the above problems is to set the value for DRIVE_POWER_MGMT_BAT to 254 instead of 128 in /usr/lib/pm-utils/power.d/harddrive or (my preference) to copy that file with that edit to /etc/pm/power.d/ (the latter file will then take precendence).

The downside is of course a shorter battery life, but given the reduction isn't much in my case, I certainly prefer that to a prematurely dead hard-drive!

So my question is: should a setting of 254 be the default in slackware?

The decision in Ubuntu seems to be to do so:
https://bugs.launchpad.net/ubuntu/+s...ort/+bug/59695

Not that I'm advocating do as Ubuntu does - just pointing it out

Last edited by mcnalu; 07-15-2012 at 08:35 AM. Reason: typo
 
Old 07-15-2012, 12:45 PM   #2
bosth
Member
 
Registered: Apr 2011
Location: British Columbia, Canada
Posts: 304

Rep: Reputation: 127Reputation: 127
Mine is clicky without that as well...
 
Old 07-15-2012, 02:23 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Thanks for the solution, I can't test it, but if it works it is a better solution than the one in the linked thread.
 
Old 07-17-2012, 11:06 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I just realized that although I checked for this problem when I first got my netbooks and it wasn't there, it seems that it is there now. Maybe I missed it or maybe something changed.

Putting 'hdparm -B 254 /dev/sda' in rc.local works for me no matter the power situation.

I recommend that the default be changed because it destroys HDDs faster than they normally would. If others want "power saving" HDD destroying features, they should enable it themselves.
 
Old 07-18-2012, 04:16 PM   #5
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware current
Posts: 423

Original Poster
Rep: Reputation: 73
ok, good to know I'm not alone. Thanks for the feedback.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tracking mouse clicks XLIB skovorodkin Programming 3 09-06-2011 02:50 PM
Mouse not responding to clicks c0smic Fedora 1 05-08-2011 06:31 AM
Harddrive clicks brixtoncalling Slackware 15 06-14-2009 02:12 PM
Auto clicks Raakh Linux - Newbie 9 10-12-2008 02:03 AM
How to capture clicks from mouse to a file floydigus Linux - Hardware 2 07-02-2005 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration