So, like many others, I am facing an issue with the KScreen2 since the KDE 5.23 update.
In a dual monitor setup, if I switch input to my main monitor, it removes the monitor, moves all the open windows to the other monitor and when I switch back, they remain there.
Same thing happens when the screen saver kicks in.
If I disable KScreen2, this behavior goes away, but I have to re-arrange my monitors, everytime I boot.
Therefore, I need some help on how to do this. Below is my xrandr output with the monitors correctly setup.
xrandr:
Screen 0: minimum 320 x 200, current 3760 x 1920, maximum 16384 x 16384
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
HDMI-A-0 connected primary 2560x1440+0+240 (normal left inverted right x axis y axis) 597mm x 336mm
2560x1440 59.95*+
1920x1200 59.95
1920x1080 119.98 99.93 60.00 50.00 59.94 24.00 23.98
1600x1200 59.95
1680x1050 59.88
1280x1024 143.86 119.96 75.02 60.02
1440x900 59.95
1280x800 59.95
1280x720 60.00 50.00 59.94
1024x768 143.93 119.99 75.03 60.00
800x600 119.97 75.00 60.32
720x576 50.00
720x480 60.00 59.94
640x480 75.00 60.00 59.94
720x400 70.08
DVI-D-0 connected 1200x1920+2560+0 left (normal left inverted right x axis y axis) 519mm x 324mm
1920x1200 59.95*+
1920x1080 59.95
1600x1200 60.00
1680x1050 59.88
1280x1024 60.02
1440x900 59.95
1280x960 60.00
1280x800 59.95
1280x720 59.95
1024x768 60.00
800x600 60.32
640x480 59.94
720x400 70.08
inxi -F
System:
Host: wizzy-manjaro-pc Kernel: 5.10.105-1-MANJARO x86_64 bits: 64
Desktop: KDE Plasma 5.24.3 Distro: Manjaro Linux
Machine:
Type: Desktop System: Gigabyte product: X570 AORUS MASTER v: -CF
serial: <superuser required>
Mobo: Gigabyte model: X570 AORUS MASTER serial: <superuser required>
UEFI: American Megatrends LLC. v: F36b date: 02/16/2022
CPU:
Info: 12-core model: AMD Ryzen 9 5900X bits: 64 type: MT MCP cache:
L2: 6 MiB
Speed (MHz): avg: 2321
min/max: 2200/5994:6294:6442:6146:5846:5102:4950:5698:5550:5398:5250 cores:
1: 2199 2: 2203 3: 2836 4: 2211 5: 2233 6: 2218 7: 2201 8: 2204 9: 2200
10: 2199 11: 2200 12: 2199 13: 2418 14: 2206 15: 2305 16: 3295 17: 2778
18: 2421 19: 2195 20: 2194 21: 2206 22: 2199 23: 2204 24: 2200
Graphics:
Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] driver: vfio-pci
v: 0.2
Device-2: AMD Navi 14 [Radeon RX 5500/5500M / Pro 5500M] driver: amdgpu
v: kernel
Device-3: Logitech HD Pro Webcam C920 type: USB
driver: snd-usb-audio,uvcvideo
Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: amdgpu,ati
unloaded: modesetting,radeon gpu: amdgpu resolution: 1: 1200x1920~60Hz
2: 2560x1440~60Hz
OpenGL: renderer: AMD Radeon RX 5500 XT (NAVI14 DRM 3.40.0
5.10.105-1-MANJARO LLVM 13.0.1)
v: 4.6 Mesa 21.3.7
Audio:
Device-1: AMD Navi 21 HDMI Audio [Radeon RX 6800/6800 XT / 6900 XT]
driver: vfio-pci
Device-2: AMD Navi 10 HDMI Audio driver: snd_hda_intel
Device-3: AMD Starship/Matisse HD Audio driver: snd_hda_intel
Device-4: Creative Sound Blaster GC7 type: USB
driver: cdc_acm,hid-generic,snd-usb-audio,usbhid
Device-5: Logitech HD Pro Webcam C920 type: USB
driver: snd-usb-audio,uvcvideo
Sound Server-1: ALSA v: k5.10.105-1-MANJARO running: yes
Sound Server-2: PipeWire v: 0.3.48 running: yes
Network:
Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi
IF: wlp6s0 state: down mac: 56:29:09:cb:66:cb
Device-2: Intel I211 Gigabit Network driver: igb
IF: enp7s0 state: up speed: 1000 Mbps duplex: full mac: b4:2e:99:f7:3e:40
Device-3: Realtek RTL8125 2.5GbE driver: vfio-pci
IF-ID-1: virbr0 state: down mac: 52:54:00:44:1a:d2
Bluetooth:
Device-1: Intel AX200 Bluetooth type: USB driver: btusb
Report: rfkill ID: hci0 state: up address: see --recommends
Drives:
Local Storage: total: 5.93 TiB used: 1.22 TiB (20.6%)
ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO 500GB
size: 465.76 GiB
ID-2: /dev/nvme1n1 vendor: Seagate model: XPG GAMMIX S50 Lite
size: 953.87 GiB
ID-3: /dev/nvme2n1 vendor: Samsung model: SSD 970 EVO 250GB
size: 232.89 GiB
ID-4: /dev/sda vendor: Toshiba model: HDWE140 size: 3.64 TiB
ID-5: /dev/sdb vendor: Samsung model: SSD 840 EVO 250GB size: 232.89 GiB
ID-6: /dev/sdc vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB
Partition:
ID-1: / size: 448.43 GiB used: 196.58 GiB (43.8%) fs: ext4
dev: /dev/nvme0n1p2
ID-2: /boot/efi size: 299.4 MiB used: 288 KiB (0.1%) fs: vfat
dev: /dev/nvme0n1p1
Swap:
ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%)
dev: /dev/nvme0n1p3
Sensors:
System Temperatures: cpu: 46.4 C mobo: 16.8 C gpu: amdgpu temp: 54.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:
Processes: 510 Uptime: 1h 29m Memory: 62.73 GiB used: 22.21 GiB (35.4%)
Shell: Zsh inxi: 3.3.13
It would be great if I can apply these settings for all users, but I will take it just for me too.