找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: 孤星追月

OPENWRT 硬盘休眠(hd-idle无法正常休眠的可以试试这个软件)

 火.. [复制链接]
发表于 2017-12-6 08:10 | 显示全部楼层
merlin固件 的可以安装这个吗?
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2018-12-4 11:04 | 显示全部楼层
本帖最后由 yumeimm 于 2018-12-4 11:07 编辑

-C     Check the current IDE power mode status, which will always be one of unknown (drive does  not  support
              this  command),  active/idle  (normal  operation),  standby  (low power mode, drive has spun down), or
              sleeping (lowest power mode, drive is completely shut down).  The -S, -y, -Y, and -Z  options  can  be
              used to manipulate the IDE power modes.

-S     Put the drive into idle (low-power) mode, and also set the standby (spindown) timeout for  the  drive.
              This  timeout  value is used by the drive to determine how long to wait (with no disk activity) before
              turning off the spindle motor to save power.  Under such circumstances, the drive may take as long  as
              30  seconds to respond to a subsequent disk access, though most drives are much quicker.  The encoding
              of the timeout value is somewhat peculiar.  A value of zero means "timeouts are disabled": the  device
              will  not  automatically  enter  standby  mode.   Values from 1 to 240 specify multiples of 5 seconds,
              yielding timeouts from 5 seconds to 20 minutes.  Values from 241 to 251 specify from 1 to 11 units  of
              30  minutes, yielding timeouts from 30 minutes to 5.5 hours.  A value of 252 signifies a timeout of 21
              minutes. A value of 253 sets a vendor-defined timeout period between 8 and 12 hours, and the value 254
              is  reserved.  255 is interpreted as 21 minutes plus 15 seconds.  Note that some older drives may have
              very different interpretations of these values.

-====================================================Arch Wiki上有解释:https://wiki.archlinux.org/index.php/hdparm

谢谢楼主,那个-S <参数>的含义是:
           1-240:   超时的时间是多少个5秒钟,例如如果设置为60,那么是60x5(秒) = 5分钟。如果设置为240,则为:240x5(秒)=240x5/60(分钟)=200分钟=3.33小时。
            241-251: 指定了1-11共11个档,每档相差30分钟。 例如241为第1挡,超时30分钟, 值251为11挡,超时为11x30分钟=5.5小时。

只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2018-12-15 23:01 | 显示全部楼层
思考了  感谢分享
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2019-6-5 03:10 | 显示全部楼层
小钢炮不行呀
Using username "root".
[root@phicomm-n1:~]# hdparm -Y /dev/sda1

/dev/sda1:
issuing sleep command
HDIO_DRIVE_CMD(sleep) failed: Invalid argument
[root@phicomm-n1:~]# hdparm -y /dev/sda1

/dev/sda1:
issuing standby command
HDIO_DRIVE_CMD(standby) failed: Input/output error
[root@phicomm-n1:~]#
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2019-6-5 15:07 | 显示全部楼层
支持一下  
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2020-3-14 22:46 | 显示全部楼层
感谢分享。。。。
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2021-1-16 07:16 | 显示全部楼层
点赞点赞点赞点赞点赞
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2023-11-6 17:01 | 显示全部楼层
感谢大佬,思考到了
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 0 反对 1

使用道具 举报

发表于 2024-4-12 18:40 | 显示全部楼层
对移动硬盘有用吗还是只对机械硬盘有用?
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 0 反对 1

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-10-3 05:35

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表