# \[Kodi\] Micro stutter due to external HDD idle spindown

**URL:** <https://dietpi.com/forum/t/kodi-micro-stutter-due-to-external-hdd-idle-spindown/15423>\
**Category:** General Discussion\
**Created:** [30 December 2022 06:50 UTC](https://dietpi.com/forum/t/kodi-micro-stutter-due-to-external-hdd-idle-spindown/15423 "2022-12-30T06:50:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdsw](https://dietpi.com/forum/user_avatar/dietpi.com/cdsw/32/6939_2.png) [@cdsw](https://dietpi.com/forum/u/cdsw)\
**Post date:** [30 December 2022 06:50 UTC](https://dietpi.com/forum/t/kodi-micro-stutter-due-to-external-hdd-idle-spindown/15423/1 "2022-12-30T06:50:57Z")

</div>

So I mounted my external usb 3 hdd via Samba as a network share.

I access my media it via Kodi. Kodi is accessing the drive periodically. My notes are that around every 5 min?

Anyway between access times to load the new contents, the hdd spins down and goes to idle. So whenever Kodi Access new data for the stream, it needs to spin the drive up and I get micro stutters and the info in Kodi: source to slow for playback)

So my idea is now to increase the active time of the HDD through the global idle shutdown time in the drive manager.

My question:

1. can. I somehow see what is the current default time of the external drive?(so I can get back to the default)
2. what is recommended idle spindown time for a smooth movie/tv show playback via network share?

**sdc** is the media library HDD

```auto
root@DietPi:~# hdparm -C /dev/[sh]d[a-z]

/dev/sda:
 drive state is: active/idle

/dev/sdb:
 drive state is: active/idle

/dev/sdc:
 drive state is: standby

```

when I use the drive (download a file) sdc switches to active/idle

```auto
root@DietPi:~# hdparm -C /dev/[sh]d[a-z]

/dev/sda:
 drive state is: active/idle

/dev/sdb:
 drive state is: active/idle

/dev/sdc:
 drive state is: active/idle

/dev/sdd:
SG_IO: bad/missing sense data, sb[]: f0 00 05 00 00 00 00 14 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 drive state is: standby

```

---

<div class="post-metadata">

**Author:** ![cdsw](https://dietpi.com/forum/user_avatar/dietpi.com/cdsw/32/6939_2.png) [@cdsw](https://dietpi.com/forum/u/cdsw)\
**Post date:** [31 December 2022 08:23 UTC](https://dietpi.com/forum/t/kodi-micro-stutter-due-to-external-hdd-idle-spindown/15423/2 "2022-12-31T08:23:33Z")

</div>

It seems the issue is that the drive goes into standby after around 1-2 min.

It skips the idle/active phase

The hdparm command (I put it on 15 min) does not prevent the standby unfortunately. Anybody an idea how I can prevent the standby for my external drive?

It’s an intenso drive

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [31 December 2022 11:46 UTC](https://dietpi.com/forum/t/kodi-micro-stutter-due-to-external-hdd-idle-spindown/15423/3 "2022-12-31T11:46:27Z")

</div>

Some manufacturers offer desktop tools for Windows and/or macOS to manage HDD settings. Maybe something to look into.

---

<div class="post-metadata">

**Author:** ![cdsw](https://dietpi.com/forum/user_avatar/dietpi.com/cdsw/32/6939_2.png) [@cdsw](https://dietpi.com/forum/u/cdsw)\
**Post date:** [31 December 2022 12:56 UTC](https://dietpi.com/forum/t/kodi-micro-stutter-due-to-external-hdd-idle-spindown/15423/4 "2022-12-31T12:56:48Z")

</div>

yes I think that’s m online chance. but I think I need to go with a real setup with internal HDDs, instead of external drives.
