Threads/websites I searched but didn't fully help me
- Split a physical X display into two virtual displays?
- https://chipsenkbeil.com/notes/linux-virtual-monitors-with-xrandr/
- https://askubuntu.com/questions/150066/split-monitor-in-two/998435#998435
Context
I have a screen with a 5120x1440px screen resolution. I want to split this monitor into two virtual screens, so that I can work with this monitor as if it were a dual monitor set-up. I also want to quickly switch back to only be using one screen, so I wanted to do all this in a bash script, but this doesn't matter at the moment.
The output of xrandr is the following
Screen 0: minimum 8 x 8, current 5120 x 1440, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 connected primary 5120x1440+0+0 (normal left inverted right x axis y axis) 1mm x 1mm
3840x1080 119.97 + 99.96 59.97
5120x1440 119.97* 100.00 59.98
2560x1440 59.95
2560x1080 119.88 100.00 60.00 59.94
1920x1080 119.88 100.00 60.00 59.94
1680x1050 59.95
1600x900 60.00
1440x900 59.89
1280x1024 75.02 60.02
1280x800 59.81
1280x720 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
640x480 75.00 72.81 59.94
DP-5 disconnected (normal left inverted right x axis y axis)
USB-C-0 disconnected (normal left inverted right x axis y axis)
Implementation
Following the tutorials and posts I found, This is what I would need to do
xrandr --setmonitor VIRTUAL-LEFT 2560/0x1440/1+0+0 DP-4
xrandr --setmonitor VIRTUAL-RIGHT 2560/1x1440/1+2560+0 none
To explain the numbers
- VIRTUAL-LEFT
2560because that's half of51200because in the examples, the axis (1mm in my case) is divided by 2 and the left display gets the rounded down number1440because that's my screen height1because in the examples, the other axis (also 1mm in my case) is used as is0+0because that's the same as in the xrandr outputDP-4because that's the connected primary
- VIRTUAL-Right
2560because see above1because see above although this takes the rounded up number1440because see above1because see above2560+0because that will be the offset from left and is used in the examplesnonecause that's how it's done in EVERY example
Since I don't get a change, I do as suggested in the examples
xrandr --fb 5120x1441
xrandr --fb 5120x1440
Expected result
I would now expect, to have two virtual screens with a ready to go desktop.
Actual result
The screens are cut in half, the left screen has my current desktop, but the right screen is entirely black, however, I can move my mouse over, but I cannot configure it, I cannot see it in displays, I can't do anything with it
What is the solution here?


xrandrhas done the job correctly. I assume this because you mention that you can move your mouse over to the 2nd virtual screen. Can you also drag a window there? But perhaps your window manager cannot handle the 2nd virtual screen. What window manager or desktop environment do you use? By the way nice screen; in my opinion, what you really need for it is a tiling WM, not to be virtually splitted!Samsung C49RG94SSU. Tiling works, but what I wanted to achieve is that I have the left side for a video game (full screen) and the right side for other, so to use this monitor as 2 separate monitors. For windows there is shiftwindow to achieve that, but for linux?