硬盘休眠推荐工具adelolmo/hd-idle #6
Yxini
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
项目简介
hd-idle 是一个开源项目,由开发者 adelolmo 创建。它的主要功能是监控和管理计算机硬盘的空闲时间,当硬盘长时间未被使用时,可以自动进入低功耗模式以延长其使用寿命并节省能源。
技术分析
hd-idle 使用 C++ 语言编写,兼容 Windows 操作系统。该项目的核心在于其智能检测机制,它能够精确地识别硬盘的活动状态,并在适当的时候触发电源管理设置。具体工作流程如下:
关键在于使用方法简单,打开hd-idle的配置文件
sudo vim /etc/default/hd-idle
在最下面增加这行命令
HD_IDLE_OPTS="-i 0 -a /dev/sda -i 600"
#dev/sda为硬盘的盘符,不过我更推荐ata-WDC_WD40EZRX-这种方式;
大大,可以参考一下,我把项目地址放这里了https://github.com/adelolmo/hd-idle
Beta Was this translation helpful? Give feedback.
All reactions