I have a laptop running arch linux with all the latest updates. The laptop has a displayport output. This is connected using a displayport to HDMI cable to the HDMI port on a Samsung HD tv.
Display information from xrandr as follows.
LVDS-1 is laptop which has max resolution of 1366 x 768.
HDMI-1 is Samsung HD tv with max resolution 1920 x 1080.
I am able to use the Samsung HD tv as a second display. Here are two examples of commands that work. The first one works as it should. The second one is problematic and I need help with this.
Example 1, works as expected
Below line puts HDMI-1 directly to the right of LVDS-1, and there is *no window size over flow from one secreen to the other. This works just as it should. Perfect !
xrandr --output LVDS-1 --mode 1366x768 --pos 0x0 --output HDMI-1 --scale 0.711x0.711 --mode 1920x1080 --pos 1366x0
Example 2, problematic, help needed
The below line should put HDMI-1 directly above LVDS-1. It does. However when a window is maximised in the HDMI-1 window, it maximises and moves, of it's own accord, to the LVDS-1. Can anyone help me fix this. when it is maximised in HDMI-1 it should stay in HDMI-1.
xrandr --output LVDS-1 --scale 1x1 --mode 1366x768 --pos 0x0 --output HDMI-1 --scale 0.711x0.711 --mode 1920x1080 --pos 0x-768