Page 1 of 1

USB sleep (USB disk somnifacient)

Posted: Wed 26. Aug 2026, 11:12
by shv
To activate USB sleep for fw5 devices you have to disable the check in Tweaks/gui/Tweaks/plugins/usbsleep.sh as shown in the code snippet below:

Code: Select all

usbsleep_IsAvailable()
{
        # On the firmware 5 hd-idle already keeps an eye on the USB disks
        # You can remove this check to re-enable this daemon.
        # In that case you'd better disable the firmware disk sleep daemon
        # [ ${TWEAKS_FIRMWARE} -ge 500 ] && return 1

        for file in "${TWEAKS_PKG_ROOT}/sbin/sg_start"
        do
                [ -x ${file} ] && echo ${file} && return 0
        done
        return 1
}
You must install the Random Tools package because hdparm is needed.

Code: Select all

# We need hdparm to get it going