https://bugs.kde.org/show_bug.cgi?id=519897
Bug ID: 519897
Summary: kwinoutputconfig.json writes invalid HDMI position and
replicationSource when lid is closed during screen
replication
Classification: Plasma
Product: kwin
Version First 6.6.4
Reported In:
Platform: Fedora RPMs
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: multi-screen
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 192122
--> https://bugs.kde.org/attachment.cgi?id=192122&action=edit
kwinoutputconfig.json
DESCRIPTION
When using screen replication (not extend) with an external HDMI monitor,
closing the laptop lid causes KWin to write an invalid configuration in
~/.config/kwinoutputconfig.json. This persists across reboots and breaks
display configuration until manually fixed.
Environment:
STEPS TO REPRODUCE
1. Connect external monitor via HDMI
2. Set display mode to "Replicate" in System Settings → Display & Monitor
3. Close the laptop lid (eDP-1 gets disabled, HDMI-A-1 remains active)
4. Reopen the lid and try to change any display setting
EXPECTED RESULT
HDMI-A-1 keeps position: {x: 0, y: 0} and replicationSource: "" when eDP-1 is
disabled.
OBSERVED RESULT
KWin writes to kwinoutputconfig.json:
HDMI-A-1 position: {x: 1920, y: 0} — positioned relative to the now-disabled
eDP-1
replicationSource: "a1ec6c43-cfe2-4a6e-8a34-d83e8b12ef4b" — still pointing to
the disabled eDP-1 UUID
This causes the following error when trying to apply any display configuration:
Could not apply display configuration:
Position of enabled output HDMI-A-1 is negative (-2147483647, -2147483647)
It also causes incorrect mouse position detection in games (input coordinates
do not match visual position on screen).
SOFTWARE/OS VERSIONS
Operating System: Fedora 44, Wayland
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.25.0-1.fc44.x86_64
Qt Version: 6.10.3-1.fc44.x86_64
GPU: AMD Radeon Vega (Picasso/Raven 2, amdgpu)
Internal display: eDP-1 (1920x1080)
External display: HDMI-A-1 (1920x1080)
ADDITIONAL INFORMATION
Workaround:
Log out of KDE, switch to a TTY (Ctrl+Alt+F2), and manually edit
~/.config/kwinoutputconfig.json: in the lidClosed: true block with two outputs,
for the enabled output (HDMI-A-1): set position.x to 0, replicationSource to
"", and priority to 1. Changes must be made while KDE is not running, as KWin
overwrites the file on session close.
Related:
This issue appears related to the negative position checks added in KWin and
discussed here by Zamundaaa:
https://discuss.kde.org/t/issue-when-disabling-screen-in-settings-position-of-output-s-is-negative/43485
— however the fix present in 6.6.4 does not cover the replication + lid close
case.
--
You are receiving this mail because:
You are watching all bug changes.