I'm using Xubuntu Jammy 22.04.3 LTS with Xfce 4.
I have a multi-monitor setup and I don't like the default behaviour when I turn one of my screens off. When I turn a screen off (using the button on the screen itself), the system starts moving windows and panels around and limits my mouse to the screens that are still on. I just want the windows/panels to stay where they are and be able to interact with them using the mouse, as if the screen is still on.
Worst part is, when I turn the screen back on, it doesn't go back to the way it was. It often mirrors screens and the Xfce panels go to the wrong places or are not visible at all. I have to do a reboot and then go into the display settings again to fix it.
How can I let Xubuntu treat monitors as if they are turned on even when they're not? Should I make an xorg.conf file or something?
Display setup: (The monitor on the right is my TV, I usually don't want to use it)
Video driver info:
$ lspci -k | grep -EA3 VGA
2b:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070 Ti] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] GP104 [GeForce GTX 1070 Ti]
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
$ nvidia-smi
Wed Aug 30 11:06:54 2023
+---------------------------------------------+
| NVIDIA-SMI 535.86.05 Driver Version: 535.86.05 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce GTX 1070 Ti Off | 00000000:2B:00.0 On | N/A |
| 0% 60C P2 37W / 180W | 290MiB / 8192MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1221 G /usr/lib/xorg/Xorg 280MiB |
| 0 N/A N/A 1522 G xfwm4 6MiB |
+---------------------------------------------+
$ dkms status
nvidia/535.86.05, 5.15.0-82-generic, x86_64: installed
Related: Superuser question, Reddit post, Linux Mint Github issue