<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>502542</bug_id>
          
          <creation_ts>2025-04-08 03:21:05 +0000</creation_ts>
          <short_desc>press keyboard make screen still flicker when black screen</short_desc>
          <delta_ts>2025-05-08 15:23:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>platform-drm</component>
          <version>6.3.4</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>wayland-only</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>448311217</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>nate</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/-/commit/3dcc4daca4b2eb5cb2884d50600cc9595072e9db</cf_commitlink>
          <cf_versionfixedin>6.3.5</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2413942</commentid>
    <comment_count>0</comment_count>
    <who name="">448311217</who>
    <bug_when>2025-04-08 03:21:05 +0000</bug_when>
    <thetext>SUMMARY

```kinfo
Operating System: Arch Linux
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.9.0
Kernel Version: 6.12.21-1-lts (64-bit)
Graphics Platform: offscreen
Processors: 4 × Intel® Core™ i5-5200U CPU @ 2.20GHz
Memory: 15.3 GiB of RAM
```
Nvidia old driver 525.147.05-6, after screen black, and press keyboard to wake up it, screen will still flicker a few seconds.

STEPS TO REPRODUCE

1. waiting for screen black and then wait 1 minute(or &quot;Win+L&quot; lock screen, and press ESC to close screen, then wait 1minute).
2. press any keyboard key.
3. show this bug.

OBSERVED RESULT

screen was still flicker, 
`jounalctl -f` show this:
```
Apr 08 10:46:34 archlinux kwin_wayland[799]: kwin_wayland_drm: Bad link status detected on connector eDP-1
Apr 08 10:46:35 archlinux kwin_wayland[799]: kwin_wayland_drm: atomic commit failed: Invalid argument
Apr 08 10:47:03 archlinux systemd[1]: dbus-:1.2-org.kde.powerdevil.backlighthelper@16.service: Deactivated successfully.
```
Here is the full log of `sudo journalctl -b`: &lt;https://fars.ee/y8h_&gt;

EXPECTED RESULT

Screen show SDDM login interface.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION
On linux kernel 6.1.129-1, will not reproduce this bug.
And can reproduce it on: 6.6.85-1, 6.13.8.arch1-1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2414042</commentid>
    <comment_count>1</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-04-08 14:44:34 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/7464</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2414202</commentid>
    <comment_count>2</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2025-04-08 21:44:44 +0000</bug_when>
    <thetext>Git commit 6d8f78b2c579cada21e795a9c386068dd0168ac8 by Xaver Hugl.
Committed on 08/04/2025 at 14:43.
Pushed by zamundaaa into branch &apos;master&apos;.

backends/drm: immediately force a modeset on bad link status

In the past this happened automatically, as we did an atomic modeset test in
DrmGpu::updateOutputs, but now we need to do it explicitly.

M  +3    -1    src/backends/drm/drm_gpu.cpp

https://invent.kde.org/plasma/kwin/-/commit/6d8f78b2c579cada21e795a9c386068dd0168ac8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2414269</commentid>
    <comment_count>3</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2025-04-09 05:40:50 +0000</bug_when>
    <thetext>Git commit 3dcc4daca4b2eb5cb2884d50600cc9595072e9db by Vlad Zahorodnii, on behalf of Xaver Hugl.
Committed on 09/04/2025 at 05:24.
Pushed by vladz into branch &apos;Plasma/6.3&apos;.

backends/drm: immediately force a modeset on bad link status

In the past this happened automatically, as we did an atomic modeset test in
DrmGpu::updateOutputs, but now we need to do it explicitly.


(cherry picked from commit 6d8f78b2c579cada21e795a9c386068dd0168ac8)

Co-authored-by: Xaver Hugl &lt;xaver.hugl@gmail.com&gt;

M  +3    -1    src/backends/drm/drm_gpu.cpp

https://invent.kde.org/plasma/kwin/-/commit/3dcc4daca4b2eb5cb2884d50600cc9595072e9db</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2422152</commentid>
    <comment_count>4</comment_count>
    <who name="">448311217</who>
    <bug_when>2025-05-08 15:23:09 +0000</bug_when>
    <thetext>(In reply to Vlad Zahorodnii from comment #3)
&gt; Git commit 3dcc4daca4b2eb5cb2884d50600cc9595072e9db by Vlad Zahorodnii, on
&gt; behalf of Xaver Hugl.
&gt; Committed on 09/04/2025 at 05:24.
&gt; Pushed by vladz into branch &apos;Plasma/6.3&apos;.
&gt; 
&gt; backends/drm: immediately force a modeset on bad link status
&gt; 
&gt; In the past this happened automatically, as we did an atomic modeset test in
&gt; DrmGpu::updateOutputs, but now we need to do it explicitly.
&gt; 
&gt; 
&gt; (cherry picked from commit 6d8f78b2c579cada21e795a9c386068dd0168ac8)
&gt; 
&gt; Co-authored-by: Xaver Hugl &lt;xaver.hugl@gmail.com&gt;
&gt; 
&gt; M  +3    -1    src/backends/drm/drm_gpu.cpp
&gt; 
&gt; https://invent.kde.org/plasma/kwin/-/commit/
&gt; 3dcc4daca4b2eb5cb2884d50600cc9595072e9db

Today is 2025-05-08 UTC8.
I update to kwayland 6.3.5-1,and change &quot;nvidia&quot; to &quot;nouveau&quot;.
Then also repro this bug and see same log in `journalcltl -b`:

```
May 08 23:13:33 archlinux kwin_wayland[788]: kwin_wayland_drm: Bad link status detected on connector eDP-1
May 08 23:13:34 archlinux kwin_wayland[788]: kwin_wayland_drm: Bad link status detected on connector eDP-1
May 08 23:13:35 archlinux kwin_wayland[788]: kwin_wayland_drm: Bad link status detected on connector eDP-1
May 08 23:13:36 archlinux kwin_wayland[788]: kwin_wayland_drm: Bad link status detected on connector eDP-1
May 08 23:13:37 archlinux iwd[534]: invalid HE capabilities for 44:c7:fc:2a:1d:59
May 08 23:13:37 archlinux iwd[534]: invalid HE capabilities for 10:5d:dc:4f:d3:f1
May 08 23:13:37 archlinux iwd[534]: invalid HE capabilities for 44:c7:fc:2a:1d:5d
May 08 23:13:38 archlinux kwin_wayland[788]: kwin_wayland_drm: Bad link status detected on connector eDP-1
May 08 23:13:39 archlinux kwin_wayland[788]: kwin_wayland_drm: Bad link status detected on connector eDP-1
May 08 23:13:40 archlinux kwin_wayland[788]: kwin_wayland_drm: Bad link status detected on connector eDP-1
May 08 23:13:41 archlinux kwin_wayland[788]: kwin_wayland_drm: Bad link status detected on connector eDP-1
May 08 23:13:42 archlinux kwin_wayland[788]: kwin_wayland_drm: atomic commit failed: Permission denied
May 08 23:13:43 archlinux kwin_wayland[788]: kwin_wayland_drm: Bad link status detected on connector eDP-1
May 08 23:13:43 archlinux kwin_wayland[788]: kwin_core: Applying output config failed!
May 08 23:13:43 archlinux kwin_wayland[788]: kwin_wayland_drm: Atomic modeset commit failed! Permission denied
May 08 23:13:43 archlinux kwin_wayland[788]: kwin_core: Applying output config failed!
```

here is my `journalctl -b` log:
&lt;https://fars.ee/wAo8&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>