Score:-1

How to set standby time for an Intenso external HDD or alternatively reduce VLC video cache on Ubuntu Mate 20.04

in flag

When I watch movies with VLC from my external Intenso SATA drive on my Ubuntu Mate 20.04 system, some minutes of the video apparently are somehow loaded temporarily, so that the drive will go to sleep after some minutes. When all of the cached video has been played the playback hangs until the drive awakes again and new video data can be loaded. This is very annoying.

I suspect it has to do with system settings. Unfortunately the drive settings option in Mate drive utility menu is grayed out. When I run hdparm -C /dev/sdb, I get this error: /dev/sdb: SG_IO: bad/missing sense data..., drive state is: unknown.

How can I set a longer standby time for the drive? I don't want to set VLC disk buffer to 5400000 milliseconds...

EDIT: So as the standby time is a hardware feature, I'd try to reduce the video cache, but where can I find this setting? I'm only aware of the "milliseconds"-buffer in the advanced settings of VLC.

ChanganAuto avatar
us flag
It has to do with how the device was designed, nothing to do with the OS.
cn flag
https://askubuntu.com/questions/768373/hard-drive-error-bad-missing-sense-data/1215772#1215772 has the answer to this.
Score:0
in flag

Rinzwind pointed to the solution in his comment: While hdparm didn't work, I was able to change the standby behaviour using sdparm. Thanks a lot, I was already considering to replace the drive.

Here are the relevant parts of the answer by blizzardus from the other thread (Hard Drive error: bad/missing sense data):

Install with

sudo apt install sdparm

Get the spindown timer and the STANDBY flag with:

sudo sdparm -l --get SCT /dev/sdX

sudo sdparm -l --get STANDBY /dev/sdX

If you want you can change these settings for the current session with:

sudo sdparm -l --set SCT=6000 /dev/sdX

sudo sdparm -l --set STANDBY=1 /dev/sdX

These settings will be lost on reboot.

Change permanently with:

sudo sdparm -l --save --set SCT=6000 /dev/sdX

sudo sdparm -l --save --set STANDBY=1 /dev/sdX
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.