Linux下查看顯示器輸出狀態以及修改顯示器工作模式(復制 or 擴展)


//關閉顯示器VGA1
xrandr --output VGA1 --off

//開啟顯示器VGA1
xrandr --output VGA1 --auto

//關閉顯示器LVDS1
xrandr --output LVDS1 --off

//開啟顯示器LVDS1
xrandr --output LVDS1 --auto

//打開VGA1,同時關閉LVDS1
xrandr --output VGA1 --auto --output LVDS1 --off

//關閉VGA1,同時打開LVDS1
xrandr --output VGA1 --off --output LVDS1 --auto

//擴展模式時,將LVDS1顯示在VGA1的左側
xrandr --output LVDS1 --left-of VGA1 --auto


//擴展模式時,將LVDS1顯示在VGA1右側.
xrandr --output LVDS1 --right-of VGA1 --auto

//從擴展模式變成復制模式.

xrandr --output LVDS1 --same-as VGA1 --auto

//設定主顯示器.
xrandr --output HDMI1 --auto --primary


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM