winft / disman

Qt/C++ display management library
GNU Lesser General Public License v2.1
3 stars 1 forks source link

XRandR backend does not re-enable output when monitor is powered off then powered on #42

Open romangg opened 3 years ago

romangg commented 3 years ago

In GitLab by @ishitatsuyuki on Jul 29, 2021, 17:42

If I power off and then power on my monitor (LG 27GL850), then I get no output (black screen) because the XRandR config is messed up. I can switch to VT and restart things from there, but apart from restarting the only way to get the output back is to unplug and replug the DP cable.

The system journal when this happens looks like this.

``` Jul 26 16:50:38 ishitatsuyuki-ryzen kded5[4364]: ktp-kded-module: "auto-away" state change: TelepathyKDEDModulePlugin::Enabled Jul 26 16:50:38 ishitatsuyuki-ryzen kded5[4364]: ktp-kded-module: plugin queue activation: "away" "" Jul 26 16:50:38 ishitatsuyuki-ryzen audit[21418]: USER_AUTH pid=21418 uid=1000 auid=1000 ses=6 msg='op=PAM:unix_chkpwd acct="ishitatsuyuki" exe="/usr/bin/unix_chkpwd" hostname=? addr=? terminal=? res=success' Jul 26 16:50:38 ishitatsuyuki-ryzen kernel: audit: type=1100 audit(1627285838.658:200): pid=21418 uid=1000 auid=1000 ses=6 msg='op=PAM:unix_chkpwd acct="ishitatsuyuki" exe="/usr/bin/unix_chkpwd" hostname=? addr=? terminal=? res=success' Jul 26 16:50:38 ishitatsuyuki-ryzen kwin_x11[4368]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 20699, resource id: 58720315, major code: 18 (ChangeProperty), minor code: 0 Jul 26 16:50:38 ishitatsuyuki-ryzen kded5[4364]: ktp-kded-module: "screen-saver-away" state change: TelepathyKDEDModulePlugin::Enabled Jul 26 16:50:38 ishitatsuyuki-ryzen kded5[4364]: ktp-kded-module: plugin queue activation: "unset" "" Jul 26 16:50:39 ishitatsuyuki-ryzen upowerd[769]: treating change event as add on /sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:05:00.1/usb1/1-3/1-3.1/1-3.1:1.2/0003:046D:C539.0004/0003:046D:407F.0009/power_supply/hidpp_battery_0 Jul 26 16:50:39 ishitatsuyuki-ryzen upowerd[769]: treating change event as add on /sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:05:00.1/usb1/1-3/1-3.1/1-3.1:1.2/0003:046D:C539.0004/0003:046D:407F.0009/power_supply/hidpp_battery_0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: RRNotify_OutputProperty (ignored) Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Output: 87 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Property: EDIDlete! Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: State (newValue, Deleted): 1 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: RRNotify_OutputProperty (ignored) Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Output: 87 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Property: EDID Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: State (newValue, Deleted): 1 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: RRNotify_OutputChange Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Output: 87 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: CRTC: 79 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Mode: 90 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Connection: "Disconnected" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Subpixel Order: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: RRScreenChangeNotify Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Window: 52428805 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Root: 1610 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Size ID: 65535 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Size: 2560 1440 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: SizeMM: 677 381 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: RRNotify_OutputChange Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Output: 87 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: CRTC: 79 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Mode: 90 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Connection: "Disconnected" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Subpixel Order: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: RRNotify_CrtcChange Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: CRTC: 79 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Mode: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Geometry: 0 0 0 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: RRNotify_OutputChange Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Output: 87 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: CRTC: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Mode: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Connection: "Disconnected" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Subpixel Order: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: RRScreenChangeNotify Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Window: 52428805 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Root: 1610 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Size ID: 65535 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Size: 2560 1440 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: SizeMM: 677 381 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: RRNotify_CrtcChange Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: CRTC: 79 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Mode: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Geometry: 0 0 0 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: RRNotify_OutputChange Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Output: 87 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: CRTC: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Mode: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Connection: "Disconnected" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Subpixel Order: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen pipewire-media-session[1274]: device 'alsa_card.pci-0000_0a_00.1': can't restore profile: No such device Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xrandr: XRandROutput 87 update m_connected: 0 m_crtc XRandRCrtc(0x5611d014da00) CRTC: 79 MODE: 90 Connection: 1 Primary: true Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xrandr: Output 87 : connected = false , enabled = true Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xrandr: XRandROutput 87 update m_connected: 1 m_crtc XRandRCrtc(0x5611d014da00) CRTC: 79 MODE: 90 Connection: 1 Primary: true Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xrandr: Output 87 : connected = false , enabled = true Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xrandr: XRandROutput 87 update m_connected: 1 m_crtc XRandRCrtc(0x5611d014da00) CRTC: 0 MODE: 0 Connection: 1 Primary: true Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xrandr: Disconnected output 87 from CRTC 79 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xrandr: Output 87 : connected = false , enabled = false Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xrandr: XRandROutput 87 update m_connected: 1 m_crtc QObject(0x0) CRTC: 0 MODE: 0 Connection: 1 Primary: true Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xrandr: Output 87 : connected = false , enabled = false Jul 26 16:50:39 ishitatsuyuki-ryzen kwin_x11[4368]: libkwinglutils: Skipping self test as it is reported to return false positive results on Mesa drivers Jul 26 16:50:39 ishitatsuyuki-ryzen kwin_x11[4368]: kwin_core: XCB error: 10 (BadAccess), sequence: 20950, resource id: 1610, major code: 142 (Composite), minor code: 2 (RedirectSubwindows) Jul 26 16:50:39 ishitatsuyuki-ryzen kwin_x11[4368]: BlurConfig::instance called after the first use - ignoring Jul 26 16:50:39 ishitatsuyuki-ryzen kwin_x11[4368]: DesktopGridConfig::instance called after the first use - ignoring Jul 26 16:50:39 ishitatsuyuki-ryzen kwin_x11[4368]: KscreenConfig::instance called after the first use - ignoring Jul 26 16:50:39 ishitatsuyuki-ryzen kwin_x11[4368]: PresentWindowsConfig::instance called after the first use - ignoring Jul 26 16:50:39 ishitatsuyuki-ryzen kwin_x11[4368]: SlideConfig::instance called after the first use - ignoring Jul 26 16:50:39 ishitatsuyuki-ryzen kwin_x11[4368]: SlidingPopupsConfig::instance called after the first use - ignoring Jul 26 16:50:39 ishitatsuyuki-ryzen kwin_x11[4368]: ZoomConfig::instance called after the first use - ignoring Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: RRNotify_OutputChange Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Output: 87 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: CRTC: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Mode: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Connection: "Connected" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Subpixel Order: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xrandr: XRandROutput 87 update m_connected: 1 m_crtc QObject(0x0) CRTC: 0 MODE: 0 Connection: 0 Primary: true Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xrandr: Output 87 : connected = true , enabled = false Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: RRScreenChangeNotify Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Window: 52428805 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Root: 1610 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Size ID: 65535 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Size: 2560 1440 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: SizeMM: 677 381 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: RRNotify_OutputChange Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Output: 87 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: CRTC: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Mode: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Connection: "Connected" Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xcb.helper: Subpixel Order: 0 Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xrandr: XRandROutput 87 update m_connected: 0 m_crtc QObject(0x0) CRTC: 0 MODE: 0 Connection: 0 Primary: true Jul 26 16:50:39 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xrandr: Output 87 : connected = true , enabled = false Jul 26 16:50:39 ishitatsuyuki-ryzen kwin_x11[4368]: libkwinglutils: Skipping self test as it is reported to return false positive results on Mesa drivers Jul 26 16:50:39 ishitatsuyuki-ryzen kwin_x11[4368]: kwin_core: XCB error: 10 (BadAccess), sequence: 21245, resource id: 1610, major code: 142 (Composite), minor code: 2 (RedirectSubwindows) Jul 26 16:50:39 ishitatsuyuki-ryzen kwin_x11[4368]: BlurConfig::instance called after the first use - ignoring Jul 26 16:50:39 ishitatsuyuki-ryzen kwin_x11[4368]: DesktopGridConfig::instance called after the first use - ignoring Jul 26 16:50:39 ishitatsuyuki-ryzen kwin_x11[4368]: KscreenConfig::instance called after the first use - ignoring Jul 26 16:50:39 ishitatsuyuki-ryzen kwin_x11[4368]: PresentWindowsConfig::instance called after the first use - ignoring Jul 26 16:50:40 ishitatsuyuki-ryzen kwin_x11[4368]: SlideConfig::instance called after the first use - ignoring Jul 26 16:50:40 ishitatsuyuki-ryzen kwin_x11[4368]: SlidingPopupsConfig::instance called after the first use - ignoring Jul 26 16:50:40 ishitatsuyuki-ryzen kwin_x11[4368]: ZoomConfig::instance called after the first use - ignoring Jul 26 16:50:40 ishitatsuyuki-ryzen kscreen_backend_launcher[4544]: kscreen.xrandr: Emitting configChanged() Jul 26 16:50:40 ishitatsuyuki-ryzen kded5[4364]: kscreen.kded: Config does not have at least one screen enabled, WILL NOT save this config, this is not what user wants. ```

Note that disman doesn't log it's actions at all, apparently it configures the logger in a different way from KScreen and debug logs won't be outputted. However this log should be enough to describe what is happening, since the XRandR backend is mostly the same as KScreen (which logs every received event and performed action) except the offending code described below.

The culprit seems to be https://gitlab.com/kwinft/disman/-/merge_requests/8. (After removing the change this issue disappear as expected.) It seems to be a strange logic to me, since it only introduces a disable code path without the corresponding enable code path. It's extra annoying that there is no code that logs this particular xcb_randr_set_crtc_config operations (other operations that exists in KScreen are all logged), which makes it really hard to find this piece of offending code.

For the reference, here are the logs from a case that doesn't trigger the issue. I disconnected the monitor DP cable and reconnected it (as opposed to powering off and on).

``` Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRNotify_OutputProperty (ignored) Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Output: 87 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Property: EDIDe Ke1 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: State (newValue, Deleted): 1 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRNotify_OutputProperty (ignored) Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Output: 87 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Property: EDIDd Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: State (newValue, Deleted): 1 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRNotify_OutputChange Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Output: 87 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: CRTC: 79 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Mode: 90 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Connection: "Disconnected" Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Subpixel Order: 0 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRScreenChangeNotify Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Window: 41943045 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Root: 1610 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Size ID: 65535 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Size: 2560 1440 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: SizeMM: 677 381 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRNotify_OutputChange Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Output: 87 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: CRTC: 79 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Mode: 90 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Connection: "Disconnected" Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Subpixel Order: 0 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: XRandROutput 87 update m_connected: 0 m_crtc XRandRCrtc(0x55ce86f452d0) CRTC: 79 MODE: 90 Connection: 1 Primary: true Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: Output 87 : connected = false , enabled = true Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: XRandROutput 87 update m_connected: 1 m_crtc XRandRCrtc(0x55ce86f452d0) CRTC: 79 MODE: 90 Connection: 1 Primary: true Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: Output 87 : connected = false , enabled = true Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRNotify_CrtcChange Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: CRTC: 79 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Mode: 0 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Geometry: 0 0 0 0 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRNotify_OutputChange Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Output: 87 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: CRTC: 0 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Mode: 0 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Connection: "Disconnected" Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Subpixel Order: 0 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRScreenChangeNotify Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Window: 41943045 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Root: 1610 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Size ID: 65535 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Size: 2560 1440 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: SizeMM: 677 381 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRNotify_CrtcChange Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: CRTC: 79 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Mode: 0 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Geometry: 0 0 0 0 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRNotify_OutputChange Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Output: 87 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: CRTC: 0 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Mode: 0 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Connection: "Disconnected" Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Subpixel Order: 0 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: XRandROutput 87 update m_connected: 1 m_crtc XRandRCrtc(0x55ce86f452d0) CRTC: 0 MODE: 0 Connection: 1 Primary: true Jul 30 00:39:22 ishitatsuyuki-ryzen pipewire-media-session[1268]: device 'alsa_card.pci-0000_0a_00.1': can't restore profile: No such device Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: Disconnected output 87 from CRTC 79 Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: Output 87 : connected = false , enabled = false Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: XRandROutput 87 update m_connected: 1 m_crtc QObject(0x0) CRTC: 0 MODE: 0 Connection: 1 Primary: true Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: Output 87 : connected = false , enabled = false Jul 30 00:39:22 ishitatsuyuki-ryzen plasmashell[1200]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:233: TypeError: Cannot read property 'visible' of null Jul 30 00:39:22 ishitatsuyuki-ryzen kwin_x11[1112]: libkwinglutils: Skipping self test as it is reported to return false positive results on Mesa drivers Jul 30 00:39:22 ishitatsuyuki-ryzen kwin_x11[1112]: kwin_core: XCB error: 10 (BadAccess), sequence: 3520, resource id: 1610, major code: 142 (Composite), minor code: 2 (RedirectSubwindows) Jul 30 00:39:22 ishitatsuyuki-ryzen kwin_x11[1112]: BlurConfig::instance called after the first use - ignoring Jul 30 00:39:22 ishitatsuyuki-ryzen kwin_x11[1112]: DesktopGridConfig::instance called after the first use - ignoring Jul 30 00:39:22 ishitatsuyuki-ryzen kwin_x11[1112]: KscreenConfig::instance called after the first use - ignoring Jul 30 00:39:22 ishitatsuyuki-ryzen kwin_x11[1112]: PresentWindowsConfig::instance called after the first use - ignoring Jul 30 00:39:22 ishitatsuyuki-ryzen kwin_x11[1112]: SlideConfig::instance called after the first use - ignoring Jul 30 00:39:22 ishitatsuyuki-ryzen kwin_x11[1112]: SlidingPopupsConfig::instance called after the first use - ignoring Jul 30 00:39:22 ishitatsuyuki-ryzen kwin_x11[1112]: ZoomConfig::instance called after the first use - ignoring Jul 30 00:39:22 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: Emitting configChanged() Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRNotify_OutputChange Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Output: 87 Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: CRTC: 0 Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Mode: 0 Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Connection: "Connected" Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Subpixel Order: 0 Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRScreenChangeNotify Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Window: 41943045 Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Root: 1610 Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Size ID: 65535 Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Size: 2560 1440 Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: SizeMM: 677 381 Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRNotify_OutputChange Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Output: 87 Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: CRTC: 0 Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Mode: 0 Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Connection: "Connected" Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Subpixel Order: 0 Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: XRandROutput 87 update m_connected: 1 m_crtc QObject(0x0) CRTC: 0 MODE: 0 Connection: 0 Primary: true Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: Output 87 : connected = true , enabled = false Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: XRandROutput 87 update m_connected: 0 m_crtc QObject(0x0) CRTC: 0 MODE: 0 Connection: 0 Primary: true Jul 30 00:39:24 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: Output 87 : connected = true , enabled = false Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: libkwinglutils: Skipping self test as it is reported to return false positive results on Mesa drivers Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: kwin_core: XCB error: 10 (BadAccess), sequence: 3823, resource id: 1610, major code: 142 (Composite), minor code: 2 (RedirectSubwindows) Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: BlurConfig::instance called after the first use - ignoring Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: DesktopGridConfig::instance called after the first use - ignoring Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: KscreenConfig::instance called after the first use - ignoring Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: PresentWindowsConfig::instance called after the first use - ignoring Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: SlideConfig::instance called after the first use - ignoring Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: SlidingPopupsConfig::instance called after the first use - ignoring Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: ZoomConfig::instance called after the first use - ignoring Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: Emitting configChanged() Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRNotify_CrtcChange Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: CRTC: 79 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Mode: 90 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Geometry: 0 0 2560 1440 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRNotify_OutputChange Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Output: 87 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: CRTC: 79 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Mode: 90 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Connection: "Connected" Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Subpixel Order: 0 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRScreenChangeNotify Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Window: 41943045 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Root: 1610 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Size ID: 0 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Size: 2560 1440 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: SizeMM: 677 381 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRNotify_CrtcChange Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: CRTC: 79 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Mode: 90 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Geometry: 0 0 2560 1440 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: RRNotify_OutputChange Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Output: 87 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: CRTC: 79 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Mode: 90 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Rotation: "Rotate_0" Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Connection: "Connected" Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xcb.helper: Subpixel Order: 0 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: XRandROutput 87 update m_connected: 0 m_crtc QObject(0x0) CRTC: 79 MODE: 90 Connection: 0 Primary: true Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: Connected output 87 to CRTC 79 Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: Output 87 : connected = true , enabled = true Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: XRandROutput 87 update m_connected: 0 m_crtc XRandRCrtc(0x55ce86f452d0) CRTC: 79 MODE: 90 Connection: 0 Primary: true Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: Output 87 : connected = true , enabled = true Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: libkwinglutils: Skipping self test as it is reported to return false positive results on Mesa drivers Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: kwin_core: XCB error: 10 (BadAccess), sequence: 4098, resource id: 1610, major code: 142 (Composite), minor code: 2 (RedirectSubwindows) Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: BlurConfig::instance called after the first use - ignoring Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: DesktopGridConfig::instance called after the first use - ignoring Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: KscreenConfig::instance called after the first use - ignoring Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: PresentWindowsConfig::instance called after the first use - ignoring Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: SlideConfig::instance called after the first use - ignoring Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: SlidingPopupsConfig::instance called after the first use - ignoring Jul 30 00:39:25 ishitatsuyuki-ryzen kwin_x11[1112]: ZoomConfig::instance called after the first use - ignoring Jul 30 00:39:25 ishitatsuyuki-ryzen kscreen_backend_launcher[1316]: kscreen.xrandr: Emitting configChanged() ```

Environment

Arch Linux, disman-kwinft 5.22.0-1

Monitor: LG 27GL850

Graphics Card: AMD Radeon RX 5700 XT

romangg commented 3 years ago

Note that disman doesn't log it's actions at all, apparently it configures the logger in a different way from KScreen and debug logs won't be outputted.

You can log Disman by restarting the backend process explicitly as described here.

romangg commented 3 years ago

Note that in your log the kscreen_backend_launcher should not execute at all. It's part of KScreen and not Disman/KDisplay. What you should see is only a disman_backend_launcher process log.

Make sure your KScreen installation is fully removed or the daemon at least disabled (System Settings -> Startup and Shutdown -> Background Services).

romangg commented 3 years ago

In GitLab by @ishitatsuyuki on Aug 5, 2021, 17:45

You can log Disman by restarting the backend process explicitly as described here.

I tried that before, I think I got the exact same logs (except that kscreen is replaced by disman) because the logging part of Disman's XRandR backend is identical to KScreen's.

Make sure your KScreen installation is fully removed or the daemon at least disabled (System Settings -> Startup and Shutdown -> Background Services).

Disabling KScreen daemon dosen't really work, the backend launcher is still triggered by something else. I can somewhat reliably disable it (temporarily) by killing the backend process.

I don't want to remove KScreen because the usual KDE dependency pasta, and for this particular issue it's irrelevant since it doesn't perform any write (set_config) action.

romangg commented 3 years ago

I tried that before, I think I got the exact same logs (except that kscreen is replaced by disman) because the logging part of Disman's XRandR backend is identical to KScreen's.

Everything in the log with kscreen in the front is not actually Disman. Make sure you're really logging the right stuff and that KScreen is not muddling around with the Xserver configuration. I wouldn't trust it to not do this even though it doesn't say so (set_config).

I don't want to remove KScreen because the usual KDE dependency pasta

You should be able to uninstall KScreen pretty cleanly. What has dependencies by other parts of Plasma is libkscreen. So only uninstall KScreen, don't try to uninstall libkscreen.