RPi Configuring Watchdog and Hard Drive Auto-Sleep
- rpi 3b watchdog
- 硬盘闲置自动休眠
请依据CPU型号修改watchdog设备
hdparm
安装hdparm(略)
测试hdparm
1 | |
如果没有报错就支持
1 | |
如果看到有”*“就支持缓存
编辑hdparm
1 | |
加入
1 | |
如果不支持缓存就不要加入write_cache那行
下面延时计算是 无操作休眠时间(分钟)*60/5
watchdog
安装watchdog(略)
载入watchdog
1 | |
编辑配置
1 | |
修改
1 | |
启动
1 | |
附赠一个fork bomb
1 | |
- rpi 3b watchdog
- Hard drive idle auto-sleep
Please modify the watchdog device according to your CPU model
hdparm
Install hdparm (omitted)
Test hdparm
1 | |
If there is no error, it is supported.
1 | |
If you see “*“, cache is supported.
Edit hdparm
1 | |
Add
1 | |
If cache is not supported, do not add the write_cache line.
The delay calculation below is: idle sleep time (minutes) * 60 / 5
watchdog
Install watchdog (omitted)
Load watchdog
1 | |
Edit configuration
1 | |
Modify
1 | |
Start
1 | |
Bonus: A fork bomb
1 | |
RPi Configuring Watchdog and Hard Drive Auto-Sleep
https://tokisaki.top/blog/rpi-watchdog-config/