Disk hibernation timer ignored after changing it in UI (standby.conf JSON format not parsed by spindown script)
Posted: 07 Nov 2026, 04:38
Model: F2-425 (TOS 7, 7.0.1422)
Problem:
After changing the HDD hibernation time in Control Panel > Hardware & Power
(e.g. to 10 minutes), the disk does not go to sleep at that time.
Cause:
The UI now saves /etc/tos/standby.conf in JSON format:
standby = {"sleep_status":true,"time":"10m"}
but /etc/tos/scripts/spindown expects a plain value (10m, 30m, 1h...).
The JSON string matches none of the case branches, so the script falls into
the default branch and runs `smartctl -s standby,251`, i.e. ~5.5 hours.
Syslog shows: standby: timeout is {"sleep_status":true,"time":"10m"}...
Also the script runs only at boot, so a change in the UI is not applied
until reboot.
Steps to reproduce:
1. Change hibernation time in UI to 10 minutes.
2. Reboot (or run /etc/tos/scripts/spindown).
3. Check syslog / smartctl output: timer is set to 251 instead of 120.
Suggested fix: parse the "time" field (and "sleep_status") from the JSON
value in spindown, and re-run it when the setting is changed in the UI.
Problem:
After changing the HDD hibernation time in Control Panel > Hardware & Power
(e.g. to 10 minutes), the disk does not go to sleep at that time.
Cause:
The UI now saves /etc/tos/standby.conf in JSON format:
standby = {"sleep_status":true,"time":"10m"}
but /etc/tos/scripts/spindown expects a plain value (10m, 30m, 1h...).
The JSON string matches none of the case branches, so the script falls into
the default branch and runs `smartctl -s standby,251`, i.e. ~5.5 hours.
Syslog shows: standby: timeout is {"sleep_status":true,"time":"10m"}...
Also the script runs only at boot, so a change in the UI is not applied
until reboot.
Steps to reproduce:
1. Change hibernation time in UI to 10 minutes.
2. Reboot (or run /etc/tos/scripts/spindown).
3. Check syslog / smartctl output: timer is set to 251 instead of 120.
Suggested fix: parse the "time" field (and "sleep_status") from the JSON
value in spindown, and re-run it when the setting is changed in the UI.