I have LE installed on an RPi, and I'm pretty happy with it... except for an issue with an USB disk.
LE boots from the SD, and as the power usage of the Pi when idle is low, I leave it always on. But I would like USB disks to suspend when unused: to save power (a 3.5" disk typically drains more power than the Pi) and to enhance disk lifetime. But I cannot get the USB disk to suspend unless I shut down the Pi. I have been reading kernel documentation here and also some more info on this topic for example here and here. And although information from some sources seem to contradict others, I think that I should be able to enable autosuspend after 5 minutes of inactivity with the following sequence (after doing ssh to LE):
$ cd /sys/bus/usb/devices/<usb-device>/power
$ echo auto > control
$ echo 300 > autosuspend
$ echo 300000 > autosuspend_delay_ms
Some notes:
- <usb-device> must be replaced with the device identifier of the disk. I obtain it using lsusb and lsusb -t as shown here.
- control (and level) were set to "on", and are changed to "auto" after running the commands above.
- autosuspend was set to "-1" and is changed to "300" after running the commands.
- autosuspend_delay_ms was set to "-1000" and is changed to "300000" after running the commands.
But this approach does not work. Neither works unbinding the disk as shown here. I'm suspecting that maybe the USB disk does not support suspending, but that doesn't look like the case, because when I shut down the Pi, the disk shuts down (even though it is still powered). Also it looks like the driver never suspends the disk, because if I poll
So right now I'm out of ideas. Is autosuspend supported? What can I try?