Linux command
xset 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Disable
xset s off
Disable
xset b off
Example
xset s 3600 3600
Disable
xset -dpms
Enable
xset +dpms
Query
xset q
Example
xset r rate 200 30
Example
xset led 3
说明
xset is a user preference utility for X. It allows setting various user preference options for the X server, including keyboard, mouse, screen saver, and DPMS (Energy Star) settings.
参数
- s timeout [cycle]
- Set screen saver timeout and cycle time in seconds
- s on|off|default
- Enable, disable, or reset screen saver
- s blank|noblank
- Set screen saver to blank or pattern mode
- s expose|noexpose
- Allow/disallow screen exposure events
- -dpms
- Disable DPMS (Display Power Management Signaling)
- +dpms
- Enable DPMS
- dpms standby suspend off
- Set DPMS timeouts in seconds
- dpms force on|standby|suspend|off
- Force DPMS state immediately
- b volume [pitch [duration]]
- Set bell parameters
- b on|off
- Enable or disable bell
- r keycode on|off
- Enable or disable auto-repeat for keys
- r rate delay [rate]
- Set keyboard repeat delay (ms) and rate (per second)
- led on|off
- Set all LEDs on or off
- led N
- Turn LED N on
- -led N
- Turn LED N off
- fp= path,...
- Set font path
- fp default
- Reset font path to default
- q
- Query current settings
- -display display
- Specify X display
FAQ
What is the xset command used for?
xset is a user preference utility for X. It allows setting various user preference options for the X server, including keyboard, mouse, screen saver, and DPMS (Energy Star) settings.
How do I run a basic xset example?
Run `xset s off` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does s timeout [cycle] do in xset?
Set screen saver timeout and cycle time in seconds