Linux command
autorandr 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Save
autorandr -s profile_name
List
autorandr
Auto-detect
autorandr -c
Load
autorandr -l profile_name
Example
autorandr -d profile_name
说明
autorandr automatically detects connected displays and applies the appropriate screen layout based on saved profiles. It integrates with xrandr and can automatically switch profiles when monitors are connected or disconnected. Profiles are identified by the EDID fingerprint of connected displays, allowing seamless switching between different monitor configurations such as docking stations, projectors, or standalone laptop use. The tool can be triggered manually or run as a udev or systemd hook for fully automatic profile switching.
参数
- -s, --save _name_
- Save current screen layout as a profile
- -l, --load _name_
- Load a specific profile
- -c, --change
- Automatically detect and load the appropriate profile
- -d, --default _name_
- Set the default profile (used when no match is found)
- --fingerprint
- Display the current setup's fingerprint
- --remove _name_
- Remove a saved profile
- --batch
- Run in batch mode (no confirmation)
- --skip-options _options_
- Skip certain xrandr options when comparing
FAQ
What is the autorandr command used for?
autorandr automatically detects connected displays and applies the appropriate screen layout based on saved profiles. It integrates with xrandr and can automatically switch profiles when monitors are connected or disconnected. Profiles are identified by the EDID fingerprint of connected displays, allowing seamless switching between different monitor configurations such as docking stations, projectors, or standalone laptop use. The tool can be triggered manually or run as a udev or systemd hook for fully automatic profile switching.
How do I run a basic autorandr example?
Run `autorandr -s profile_name` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -s, --save _name_ do in autorandr?
Save current screen layout as a profile