Kodi Community Forum
Kodibuntu disk spin-down - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
---- Thread: Kodibuntu disk spin-down (/showthread.php?tid=219078)



Kodibuntu disk spin-down - ziqh123 - 2015-02-20

Recently got Kodibuntu working on a little desktop pc, working great so far.
However, I notice that the external HDD I have plugged in never seems to spin down.
On Windows, this happens after about 10 minutes of inactivity.

I have no add-ons except the defaults that come with Kodibuntu, and no settings that would appear to keep a drive awake.
Oddly enough, I can force the drive to sleep with a command:
Code:
sudo hdparm -y /dev/sdf1

This immediately causes the drive to spin-down, but also gives an error:
Code:
/dev/sdf1:
issuing standby command
HDIO_DRIVE_CMD(standby) failed: Invalid argument
Once asleep, the drive says that way until I cause drive activity by playing a movie.

Any ideas on how to get an automatic spin-down working? Don't like the idea of the drive being active for days at a time, and I would rather not have the entire system go to sleep, as I'm also using it as a home file server.


RE: Kodibuntu disk spin-down - wsnipex - 2015-02-20

try hdparm -B 70 /dev/sdf1

any number <=127 will allow the drive to sleep. lower numbers mean faster sleep times. Don't set it too low though.


RE: Kodibuntu disk spin-down - naloj - 2015-02-20

The error is because you're specifying a partition (sdf1) instead of the drive (sdf).


RE: Kodibuntu disk spin-down - ziqh123 - 2015-02-20

Tried the above command and got a similar error I receive on the manual spin-down.
Also tried hdparm -S 120 /dev/sdf1, met with the same error.

But just as I am typing this, I see the drive has just spun down!
Not sure which command did the trick, but thanks!


RE: Kodibuntu disk spin-down - naloj - 2015-02-21

Like I said... you're specifying a partition instead of a drive. Don't use /dev/sdf1, use /dev/sdf.


RE: Kodibuntu disk spin-down - wsnipex - 2015-02-21

ah yes, good catch naloj


RE: Kodibuntu disk spin-down - fritsch - 2015-02-21

Btw. if the format is extX it will wakeup within 5 seconds. You need to tune laptop_mode in order to get it sleeping for longer.


This forum uses Lukasz Tkacz MyBB addons.