0

I have two monitors, both originally 1920×1080 (landscape). I want to rotate both to portrait mode so that their effective resolution becomes 1080×1920, and then stack them vertically using xrandr.

Here’s what I want to achieve:

  1. Both monitors in portrait orientation
  2. HDMI1 on top
  3. DP2 on bottom
  4. Total virtual screen resolution: 1080×3840
  5. Preferably with HDMI1 as the primary display

❌ What I tried and the result:

I followed this thread, and it worked for landscape mode (3840x1080). Chromium kiosk mode across dual monitors

This is my Python code where I am executing the xrandr commands using subprocess.

cmds = [ ["xrandr", "--output", secondary, "--same-as", primary], ["xrandr", "--output", primary, "--panning", "1080x3840+0+0/0x0+0+0/0/0/0/0"], ["xrandr", "--output", secondary, "--pos", "0x1920"], ["xrandr", "--output", primary, "--panning", "0x0"], ["xrandr", "--output", secondary, "--panning", "0x0"], ["xrandr", "--output", primary, "--auto", "--pos", "0x0", "--primary"], ["xrandr", "--output", secondary, "--auto", "--pos", "0x1920"] ] 

Result:

  1. On one screen, the Chrome video is displayed half (HDMI1) which is correct, and the other half should be displayed on another screen (DP2). But DP2 is not showing the video that I am playing in Chrome.

what could be the problem? Your suggestion will be greatly appreciated.

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.