如何写个脚本30分钟无操作自动关机?

sh/bash/dash/ksh/zsh等Shell脚本
回复
头像
lexdene
帖子: 434
注册时间: 2010-02-21 16:19
来自: 大连
联系:

如何写个脚本30分钟无操作自动关机?

#1

帖子 lexdene » 2010-04-11 10:52

如何写个脚本30分钟无操作自动关机?

谢谢!

如果不用shell用别的也行。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 如何写个脚本30分钟无操作自动关机?

#2

帖子 eexpress » 2010-04-11 14:30

无操作。这个,是不好判断的。
只能借用gnome-screensaver。记得。
● 鸣学
onelynx
帖子: 817
注册时间: 2008-11-13 16:03

Re: 如何写个脚本30分钟无操作自动关机?

#3

帖子 onelynx » 2010-04-14 10:29

eexpress 写了:无操作。这个,是不好判断的。
只能借用gnome-screensaver。记得。
Keyboard 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
用xset 来判断应该就可以不用gnome-screensaver
头像
lexdene
帖子: 434
注册时间: 2010-02-21 16:19
来自: 大连
联系:

Re: 如何写个脚本30分钟无操作自动关机?

#4

帖子 lexdene » 2010-04-21 11:10

fzq5012 写了:
eexpress 写了:无操作。这个,是不好判断的。
只能借用gnome-screensaver。记得。
Keyboard 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
用xset 来判断应该就可以不用gnome-screensaver
谢谢,不过我没看懂什么意思……
我再研究一下吧,谢谢你了!
回复