0

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?

0

Something like

 xrandr --output HDMI-0 --auto
 xrandr --output DP-0 --off

adjusting the names?

  • To get the names, use xrandr -q for a list of displays and possible resolutions. Add --mode <width>x<height> for setting the resolution values (matching one of the -q possibilities .... or stay with --auto). The two lines could be done in one xrandr-command with two --output arguments. – Fiximan Nov 15 '19 at 9:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.