LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-02-2017, 08:52 AM   #1
JeroenSt
LQ Newbie
 
Registered: Feb 2017
Posts: 4

Rep: Reputation: Disabled
Drive doesn't go to sleep after timeout by HDPARM -S


I have a WD4000F9YZ harddisk connected to the 2nd sata port of a intel atom d510mo mainboard.

The drive will go to standby with the -y flag, but when setting timeout with -S the drive will not go to standby after the timeout period.

I also have an SSD connected to the first sata port of the mainboard, and that actually does go to standby after the timeout period (not that this saves any power though).

I contacted Western Digital about this problem, and they told me that not any harddisks have the option to set a timeout value. The timeout is done by the OS or the RAID controller which will send a standby command to the drive after the timeout occurs.

I found a script that runs with cron every 5 minutes and when there is no disk activity it sends the standby command with hdparm -S but this is a work around.

Where is the timout handling done? Is it in kernel or is in in the ICH7 chipset on the mainboard?

Why does the standby timeout not work on this drive?

Kernel version: 4.8.0-39-generic

Ubuntu version: Ubuntu 16.10 (updated to latest packages on 1-3-2017)

Hdparm version: v9.48
 
Old 03-02-2017, 11:55 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
The timeout is done internal to the drive, and "hdparm -S" just sets an internal parameter. As the WD rep. told you, not all drives (especially not all WD drives) support that feature.
 
Old 03-02-2017, 02:22 PM   #3
JeroenSt
LQ Newbie
 
Registered: Feb 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanx for the answer. Now it's clear to me that it is a parameter set in the HDD and not a timer in the kernel or SATA controller.

After some googleing I found out that WD's indeed can have lack of support for standby timeout :-(

http://withblue.ink/2016/07/15/what-...-home-nas.html

For drives that don't support the timeout parameter a daemon is written on: http://hd-idle.sourceforge.net/

I also found this script that can run as a cronjob:

http://superuser.com/questions/65188...x-raspberry-pi
 
  


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
Using hdparm to unlock a drive nickjbanks Linux - Newbie 1 05-25-2010 04:17 PM
hdparm doesn't load hdparm.conf KOTAPAKA Linux - Hardware 2 05-21-2008 09:54 AM
Hard Disk Timeout/Standby BIOS/hdparm win32sux Linux - Hardware 4 02-01-2005 12:05 AM
how to use an IDE disk after put to sleep with hdparm -Y /dev/hdb qwijibow Linux - Hardware 0 08-24-2004 01:45 PM
How to make a thread sleep or std::recv timeout? BrianK Programming 3 10-10-2003 02:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:07 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