如何写个脚本30分钟无操作自动关机?
谢谢!
如果不用shell用别的也行。
如何写个脚本30分钟无操作自动关机?
- lexdene
- 帖子: 434
- 注册时间: 2010-02-21 16:19
- 来自: 大连
- 联系:
如何写个脚本30分钟无操作自动关机?
大连Linux User Group: http://groups.google.com/group/dalian-lug?hl=zh-CN
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 817
- 注册时间: 2008-11-13 16:03
Re: 如何写个脚本30分钟无操作自动关机?
eexpress 写了:无操作。这个,是不好判断的。
只能借用gnome-screensaver。记得。
用xset 来判断应该就可以不用gnome-screensaverKeyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000002
auto repeat delay: 660 repeat rate: 25
auto repeating keys: 00ffffffdffffbbf
fadfffefffedffff
9fffffffffffffff
fff7ffffffffffff
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 2/1 threshold: 4
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 0 cycle: 0
Colors:
default colormap: 0x20 BlackPixel: 0 WhitePixel: 16777215
Font Path:
catalogue:/etc/X11/fontpath.d,built-ins
DPMS (Energy Star):
Standby: 600 Suspend: 600 Off: 600
DPMS is Enabled
Monitor is On
- lexdene
- 帖子: 434
- 注册时间: 2010-02-21 16:19
- 来自: 大连
- 联系:
Re: 如何写个脚本30分钟无操作自动关机?
谢谢,不过我没看懂什么意思……fzq5012 写了:eexpress 写了:无操作。这个,是不好判断的。
只能借用gnome-screensaver。记得。用xset 来判断应该就可以不用gnome-screensaverKeyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000002
auto repeat delay: 660 repeat rate: 25
auto repeating keys: 00ffffffdffffbbf
fadfffefffedffff
9fffffffffffffff
fff7ffffffffffff
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 2/1 threshold: 4
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 0 cycle: 0
Colors:
default colormap: 0x20 BlackPixel: 0 WhitePixel: 16777215
Font Path:
catalogue:/etc/X11/fontpath.d,built-ins
DPMS (Energy Star):
Standby: 600 Suspend: 600 Off: 600
DPMS is Enabled
Monitor is On
我再研究一下吧,谢谢你了!
大连Linux User Group: http://groups.google.com/group/dalian-lug?hl=zh-CN