My (Linux Mint) PC is connected via Display Port and HDMI to a Monitor and a TV. I want to be able to switch between them, so that the other one is disabled. Are there any commands that can perform this switch? Like some xrandr based stuff?
1 Answer
Something like
xrandr --output HDMI-0 --auto
xrandr --output DP-0 --off
adjusting the names?
-
To get the names, use
xrandr -qfor a list of displays and possible resolutions. Add--mode <width>x<height>for setting the resolution values (matching one of the-qpossibilities .... or stay with--auto). The two lines could be done in onexrandr-command with two--outputarguments.FelixJN– FelixJN2019-11-15 09:22:50 +00:00Commented Nov 15, 2019 at 9:22