<?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>523956</bug_id>
          
          <creation_ts>2026-08-07 03:25:35 +0000</creation_ts>
          <short_desc>When screen turns off after gracelock period while session is locked due to inactivity, it unlocks</short_desc>
          <delta_ts>2026-08-19 21:06:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Screen locking</component>
          <version>6.7.3</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>523504</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>VHI</priority>
          <bug_severity>grave</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Andrew Engelbrecht">andrew</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>nate</cc>
    
    <cc>patchwork_cadet515</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2537084</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Engelbrecht">andrew</who>
    <bug_when>2026-08-07 03:25:35 +0000</bug_when>
    <thetext>DESCRIPTION

The screen / login session does not always lock when configured to do so. After the screen turns off, and the 5 seconds of inactivity have long passed, the session sometimes remains unlocked.

I normally check if my laptop is locked by looking whether the screen is off, but with this behavior, I have to check manually.

STEPS TO REPRODUCE
1. Configure System Settings &gt; &quot;Power Management&quot; &gt; &quot;On AC Power&quot; &gt; &quot;Display and Brightness&quot; &gt; &quot;Turn off Screen&quot;: 5 minutes
2. Configure System Settings &gt; &quot;Screen locking&quot; &gt; &quot;Lock Screen Automatically&quot;: 5 minutes, &quot;Delay before password is required&quot;: 5 seconds
3. 

OBSERVED RESULT

Sometimes I walk over to my computer to use it, and when I go to log in, I see that it&apos;s already unlocked.

EXPECTED RESULT

The screen should lock when the device is configured to do so.

SOFTWARE/OS VERSIONS

Operating System: openSUSE Tumbleweed 20260804
KDE Plasma Version: 6.7.3
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1
Kernel Version: 7.1.5-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen AI 5 340 w/ Radeon 840M
Memory: 16 GiB of RAM (14.9 GiB usable)
Graphics Processor: AMD Radeon 840M Graphics
Manufacturer: Framework
Product Name: Laptop 13 (AMD Ryzen AI 300 Series)
System Version: A5

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2538462</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2026-08-12 21:06:29 +0000</bug_when>
    <thetext>This sounds bad.

So it happens when screen turn-off and screen locking are both configured to trigger at the same time?

Does it ever happen when they&apos;re set to different times? So, lock screen furn then turn off… or turn off first, then lock?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2538465</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Engelbrecht">andrew</who>
    <bug_when>2026-08-12 21:09:33 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #1)
&gt; This sounds bad.
&gt; 
&gt; So it happens when screen turn-off and screen locking are both configured to
&gt; trigger at the same time?

Yes, that&apos;s the behavior I&apos;ve seen so far.

&gt; Does it ever happen when they&apos;re set to different times? So, lock screen
&gt; furn then turn off… or turn off first, then lock?

I haven&apos;t tested that yet, but I&apos;ll give it a try to see if it helps to debug / as a workaround.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2538466</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2026-08-12 21:11:49 +0000</bug_when>
    <thetext>Yeah, I&apos;m asking for debugging purposes, not suggesting this as a workaround! Clearly there&apos;s a bug somewhere that needs fixing, but we&apos;ll need to know how to reproduce it on demand.

Let us know when you&apos;ve got that info.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2538534</commentid>
    <comment_count>4</comment_count>
    <who name="Andrew Engelbrecht">andrew</who>
    <bug_when>2026-08-12 23:41:49 +0000</bug_when>
    <thetext>Okay, so I was able to reproduce the error the first time I set both screen locking and screen power off to 1 minute, with a 5 minute locking delay.

I noticed that there were some updates, so I applied those and rebooted. I then tried locking 1 minute before screen power off,  locking 1 minute after, locking with no screen power off, and with both at the same time again. I haven&apos;t been able to reproduce the error after several tests. There was a time that the screen unlocked without me being certain about the time that had elapsed, but that&apos;s bad data, so it shouldn&apos;t count.

In the past, it would not always happen, but seemed random. I don&apos;t know if it&apos;s been resolved, but I&apos;ll keep testing to see if I can reproduce this behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2538536</commentid>
    <comment_count>5</comment_count>
    <who name="Andrew Engelbrecht">andrew</who>
    <bug_when>2026-08-13 00:15:50 +0000</bug_when>
    <thetext>Okay, I tried the 1 minute and 1 minute settings several times, and at first I couldn&apos;t reproduce the error. The latest time, the screen turned black, and I counted 8 seconds. I woke the screen up, and saw that it was unlocked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2538546</commentid>
    <comment_count>6</comment_count>
    <who name="Andrew Engelbrecht">andrew</who>
    <bug_when>2026-08-13 01:04:41 +0000</bug_when>
    <thetext>## on battery power:

- 1 minute + 5 seconds screen lock, 2 minute screen dim, 5 minute screen power off, &quot;when locked: immediately&quot;
  - 3/3 times, it did not lock, even when counting to 15 after the screen turned off

- same but never dimming:
  - 1/1 times: didn&apos;t lock 15 seconds after the screen went off
  - i also noticed that the screen goes black for a split second, shows graphics again, for a split second, then goes black

- same but never turning off screen:
  - 2/2 also blinks visuals, but screen with a clock shows up with the lockscreen background. screen is locked.

- same but screen turning off after 1 minute (same as lock time), and &quot;when locked: immediately&quot;
  - 3/3 screen was locked after counting to 15

- same, but dim automatically set to &quot;never&quot;, and &quot;turn off screen&quot; set to 1 minute
  - 3/3 times the screen was locked after counting to 15

- same, but set screen to lock after 2 minutes, 5 seconds
  - 3/3 times was locked, after &gt; 2 minutes 5 seconds

## on ac power

- 1 minute + 5 seconds screen lock, 2 minute screen dim, 5 minute screen power off, &quot;when locked: immediately&quot;
  - 2/2 times, did not lock after counting to 15 after the screen turned off
  - i also noticed the screen blink before it turned off completely

I stopped testing there. If you want more stats, let me know, and I&apos;ll do more.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2538547</commentid>
    <comment_count>7</comment_count>
    <who name="Andrew Engelbrecht">andrew</who>
    <bug_when>2026-08-13 01:08:52 +0000</bug_when>
    <thetext>I should note that I also recently saw this issue on another laptop with a 11th Generation Intel Core processor, so it&apos;s not specific to AMD hardware.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2538626</commentid>
    <comment_count>8</comment_count>
    <who name="">patchwork_cadet515</who>
    <bug_when>2026-08-13 08:47:03 +0000</bug_when>
    <thetext>Hey there. I can also confirm this bug. I&apos;m running CachyOS on a GMKtec NucBox G2 (Intel N100). Clean installed 2 days ago. KDE Plasma Version 6.7.4. Fully up to date.

After some trial and error, I think I&apos;ve narrowed down to the screen turning off before the &quot;Delay before password required&quot; timer has elapsed. I can reproduce the bug consistently as follows:

Under &quot;Power Management&quot;:
    - Set the main &quot;Turn off screen&quot; timer to a high value like 30 minutes (so it doesn&apos;t trigger for the purposes of this test)
    - Set the &quot;When locked&quot; timer to 20 seconds

Under &quot;Screen Locking&quot;
    - Set &quot;Lock screen automatically&quot; to 1 minute
    - Set &quot;Delay before password required&quot; to 21 seconds (this is 1 second longer than the &quot;When locked&quot; timer above)

After 1 minute, the lock screen appears, then falls back to the desktop 20 seconds later, the moment the screen turns off.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2540151</commentid>
    <comment_count>9</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2026-08-19 21:06:54 +0000</bug_when>
    <thetext>I can confirm the issue with those steps. After the screen turns off, the session is unlocked!

Looks like this is a duplicate of Bug 523504, which is reporting the same thing.

*** This bug has been marked as a duplicate of bug 523504 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>