Bug 467395 - A mark appears on the primary monitor after switching between 2 screens and 1 screen several times.
Summary: A mark appears on the primary monitor after switching between 2 screens and 1...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (other bugs)
Version First Reported In: git-stable-Plasma/5.27
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2023-03-15 12:35 UTC by igor
Modified: 2024-07-29 21:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
image with the issue visible (1.44 MB, image/png)
2023-03-15 12:35 UTC, igor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description igor 2023-03-15 12:35:19 UTC
Created attachment 157301 [details]
image with the issue visible

STEPS TO REPRODUCE
1. Have 2 monitors attached
2. disconnect primary monitor
3. reconnect primary monitor
4. using 'xrandr --output ${secondary} --off' removes the mark.  Re-enabling the secondary screen with xrandr re draws the mark in the same place on the primary screen.

OBSERVED RESULT
An approximately diagonal pink/purple mark at about 1400,600 (x, y origin at top left). The mark is about 2 cm long and about 2 mm wide on my 32 inch 1920x1080 monitor.




EXPECTED RESULT
No mark.


SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.13
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 5.15.94-gentoo (64-bit)
Graphics Platform: X11
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: X570 AORUS MASTER
System Version: -CF

ADDITIONAL INFORMATION
I use a KVM. Hence my primary monitor is frequently disconnected and reconnected. This happend after some time going back and forth between my machines.
Comment 1 igor 2023-03-15 18:46:43 UTC
I noticed the issue is still present with a single monitor.
The mark is at the same horizontal position but at the bottom of my screen when in single monitor mode.
Based on this, it is in the same place in the X canvas in both modes.

I use the following script to switch between single and multi monitor modes:
```
#!/bin/bash

main="DP-4"
right_vert="DP-0"

multi () {
    xrandr --output $main --primary --mode 1920x1080 --pos 0x540 --rotate normal --rate 240
    xrandr --output $right_vert --mode 1920x1080 --pos 1920x0 --rotate left --rate 100
}

single () {
    xrandr --output $main --primary --mode 1920x1080 --pos 0x0 --rotate normal --rate 240
    xrandr --output $right_vert --off
}

xrandr --listactivemonitors | grep $right_vert > /dev/null \
    && single \
    || ( multi; multi )
```