在Linux系统中,可以通过以下方法来保存 xrandr 设置:
xrands_script.sh
,并在其中添加需要设置的 xrandr 命令,例如:xrandr --output HDMI-1 --mode 1920x1080
chmod +x xrands_script.sh
.bashrc
、.profile
或 .xinitrc
)中添加以下内容以确保在用户登录时运行脚本文件:./path/to/xrands_script.sh
这样,xrandr 设置将在用户登录时自动生效,并且会在每次登录时保持设置。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:Linux xrandr如何实现屏幕扩展