<?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>423035</bug_id>
          
          <creation_ts>2020-06-16 02:06:06 +0000</creation_ts>
          <short_desc>Turn off screen shortcut turns the screen back on automatically</short_desc>
          <delta_ts>2024-06-27 11:32:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>Powerdevil</product>
          <component>general</component>
          <version>master</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>480026</dup_id>
          
          <bug_file_loc>https://github.com/ValveSoftware/steam-for-linux/issues/5607</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>squidinkrf</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>ad.liu.jin</cc>
    
    <cc>alberto</cc>
    
    <cc>contact</cc>
    
    <cc>denilsonsa</cc>
    
    <cc>elydgolden</cc>
    
    <cc>eugene.beetle</cc>
    
    <cc>jonathangeorgiou94</cc>
    
    <cc>justin.zobel</cc>
    
    <cc>kde</cc>
    
    <cc>natalie_clarius</cc>
    
    <cc>nate</cc>
    
    <cc>onestone</cc>
    
    <cc>saulfautley</cc>
    
    <cc>till2.schaefer</cc>
    
    <cc>tinozzo123</cc>
    
    <cc>xaver.hugl</cc>
    
    <cc>yuking_net</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>1937484</commentid>
    <comment_count>0</comment_count>
    <who name="">squidinkrf</who>
    <bug_when>2020-06-16 02:06:06 +0000</bug_when>
    <thetext>SUMMARY
When assigning and using a shortcut to the function &quot;turn off screen&quot; the screen only stays off for a few seconds before turning back on. also if you do not release the button almost immediately it counts the same shortcut key as a button press and turns the screen on again.

STEPS TO REPRODUCE
1. assign a key to the turn off screen shortcut
2. press key
3. wait a few seconds
4. watch screen turn on again

OBSERVED RESULT
the screen turns on without you doing anything

EXPECTED RESULT
The screen would stay off until a key would be pressed

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro Linux
(available in About System)
KDE Plasma Version: 5.19
KDE Frameworks Version: 5.71
Qt Version: 5.15</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1938279</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-06-19 01:21:53 +0000</bug_when>
    <thetext>Can confirm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961600</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Fautley">saulfautley</who>
    <bug_when>2020-09-30 13:26:36 +0000</bug_when>
    <thetext>Can also confirm. It was working fine until I reassigned the shortcut. Now no matter what key I assign my screens turn back on immediately.

I don&apos;t suppose there&apos;s a fix planned anytime soon or a temporary workaround? I used this daily so it&apos;s become quite frustrating to not have this feature anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1974670</commentid>
    <comment_count>3</comment_count>
    <who name="Justin Zobel">justin.zobel</who>
    <bug_when>2020-11-12 22:49:56 +0000</bug_when>
    <thetext>Can confirm still an issue on 5.20.2 on KDE Neon User Edition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1996432</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Fautley">saulfautley</who>
    <bug_when>2021-01-20 21:33:26 +0000</bug_when>
    <thetext>I found the culprit of this on my system -- Steam. As soon as I quit Steam the shortcut works perfectly.

The issue is being tracked here: https://github.com/ValveSoftware/steam-for-linux/issues/5607</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1996438</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-01-21 00:30:54 +0000</bug_when>
    <thetext>Ah yup, that. An old, annoying known issue with Steam :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022337</commentid>
    <comment_count>6</comment_count>
    <who name="Peter Petrov">onestone</who>
    <bug_when>2021-04-04 22:14:26 +0000</bug_when>
    <thetext>&gt; I found the culprit of this on my system -- Steam. As soon as I quit Steam the shortcut works perfectly.

I&apos;m not running Steam, but the screen still turns back on after a few seconds (when using a Plasma/PowerDevil shortcut). On the other hand, if I use &quot;xset dpms force off&quot; to accomplish the same, the screen stays off until a key is pressed (or the mouse is moved).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2035972</commentid>
    <comment_count>7</comment_count>
    <who name="Till Schäfer">till2.schaefer</who>
    <bug_when>2021-05-26 19:48:35 +0000</bug_when>
    <thetext>I am not using steam neither and also have this issue. I think the key release event is registered to wake up the screen again after the monitor was turned off with key press. When pressing key and holding it, the screen is turned off as expected, but as soon the key is released, it is turned on again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2035975</commentid>
    <comment_count>8</comment_count>
    <who name="Till Schäfer">till2.schaefer</who>
    <bug_when>2021-05-26 19:51:24 +0000</bug_when>
    <thetext>(for that reason i used to add a sleep 1 to my custom script for turning the monitor off. However, that solution is not really great because it is not working when pressing the key for more that a second and the screen is turned of only after a short delay)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2064168</commentid>
    <comment_count>9</comment_count>
    <who name="Till Schäfer">till2.schaefer</who>
    <bug_when>2021-09-26 21:53:08 +0000</bug_when>
    <thetext>I can also reproduce this on wayland.

Operating System: Gentoo Linux
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.13.19-gentoo (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2064172</commentid>
    <comment_count>10</comment_count>
    <who name="Till Schäfer">till2.schaefer</who>
    <bug_when>2021-09-26 22:05:15 +0000</bug_when>
    <thetext>when calling the command from command line with pre-sleep, it works correctly. So the thing here seems to be indeed, that the key to invoke the shortcut actually triggers the wakeup.


workaround: sleep 1 &amp;&amp; dbus-send --session --print-reply --dest=org.kde.kglobalaccel /component/org_kde_powerdevil org.kde.kglobalaccel.Component.invokeShortcut string:&apos;Turn Off Screen&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2067005</commentid>
    <comment_count>11</comment_count>
    <who name="Yuking">yuking_net</who>
    <bug_when>2021-10-07 15:03:29 +0000</bug_when>
    <thetext>Tthe screen turns back on after a few seconds even I use &quot;xset dpms force off&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2089344</commentid>
    <comment_count>12</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-01-01 02:24:27 +0000</bug_when>
    <thetext>*** Bug 445566 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2218238</commentid>
    <comment_count>13</comment_count>
    <who name="Martino Fontana">tinozzo123</who>
    <bug_when>2023-03-24 21:25:26 +0000</bug_when>
    <thetext>The issue is kinda solved on Wayland: because there the screen fades off slowly (instead of instantly), the user has plenty of time to release the buttons used for the shortcut (but if they hold them long enough, then the screen will turn back on).

(On X11, about `xset dpms force off`, because the terminal takes a little time to process the instruction, you can have the screen stay off if you release Enter fast enough)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2249896</commentid>
    <comment_count>14</comment_count>
    <who name="Tino Lorenz">tilrnz</who>
    <bug_when>2023-09-01 01:05:18 +0000</bug_when>
    <thetext>*** Bug 462619 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2254798</commentid>
    <comment_count>15</comment_count>
    <who name="Denilson F. de Sá">denilsonsa</who>
    <bug_when>2023-09-22 11:33:52 +0000</bug_when>
    <thetext>Plasma 5.27 (released in February 2023) announced a new feature: “While on the lock screen, hit the Esc key to turn off the screen and save some power.”
Unfortunately, it seems this feature never worked for some people, as bug 466344 shows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2257342</commentid>
    <comment_count>16</comment_count>
    <who name="">elydgolden</who>
    <bug_when>2023-10-07 09:59:10 +0000</bug_when>
    <thetext>Can confirm on kubuntu 23.04 with plasma 5.27.4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2290868</commentid>
    <comment_count>17</comment_count>
    <who name="Jonathan Georgiou">jonathangeorgiou94</who>
    <bug_when>2024-02-21 23:09:17 +0000</bug_when>
    <thetext>I am experiencing this on Wayland on Fedora 39

KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
QT Version: 5.15.12
Kernel version: 6.7.3-200.fc39x86_64
Graphics Platform: Wayland

I get the issue both when assigning a shortcut through plasma settings and when running kscreen-doctor --dpms off, even if I add the reported sleep workaround.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2332588</commentid>
    <comment_count>18</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2024-06-27 11:32:09 +0000</bug_when>
    <thetext>

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

    </bug>

</bugzilla>