<?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>459253</bug_id>
          
          <creation_ts>2022-09-17 06:50:41 +0000</creation_ts>
          <short_desc>External screen mode is set to &quot;clone&quot; after every login or screen locking</short_desc>
          <delta_ts>2023-01-23 17:24:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>KScreen</product>
          <component>common</component>
          <version>5.25.90</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>regression</keywords>
          <priority>HI</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lucia Mrenica">lucia.mrenica</reporter>
          <assigned_to name="kscreen-bugs-null@kde.org">kscreen-bugs-null</assigned_to>
          <cc>kde</cc>
    
    <cc>kde</cc>
    
    <cc>lemmyg</cc>
    
    <cc>lucia.mrenica</cc>
    
    <cc>me</cc>
    
    <cc>meven29</cc>
    
    <cc>miranda</cc>
    
    <cc>nate</cc>
    
    <cc>nortexoid</cc>
    
    <cc>postix</cc>
    
    <cc>rainer.klier</cc>
    
    <cc>xaver.hugl</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kscreen/commit/ed95ce556fb965f998d2d9b805c1ec68b89e16d9</cf_commitlink>
          <cf_versionfixedin>5.26</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2153530</commentid>
    <comment_count>0</comment_count>
    <who name="Lucia Mrenica">lucia.mrenica</who>
    <bug_when>2022-09-17 06:50:41 +0000</bug_when>
    <thetext>SUMMARY
I have two screens, the laptop one and an external monitor. I always use them in &quot;external monitor only&quot; mode. Every time I log in, only the external monitor turns on. At least that is how it worked before Plasma 5.26 Beta. Now every time I log in It  starts as &quot;clone screens&quot; an I have to switch it back. Secondly if I lock my screen and leave my computer for a while it also switches to &quot;clone screens&quot;. If I unplug the cable and plug it back in it also switches to &quot;clone screens&quot; mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2153640</commentid>
    <comment_count>1</comment_count>
    <who name="galder">lemmyg</who>
    <bug_when>2022-09-17 13:39:19 +0000</bug_when>
    <thetext>Hello,
when say &quot;external monitor only&quot;,  are you referring to disable the laptop monitor in the kscreen menu?

I have tested  in 5.25.90 x11, it looks like a regression.. once log out and log in, the laptop screen is on again with enable option to true.

I could not test it yet in Wayland.

Regards</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2153643</commentid>
    <comment_count>2</comment_count>
    <who name="Lucia Mrenica">lucia.mrenica</who>
    <bug_when>2022-09-17 13:43:37 +0000</bug_when>
    <thetext>(In reply to galder from comment #1)
&gt; Hello,
&gt; when say &quot;external monitor only&quot;,  are you referring to disable the laptop
&gt; monitor in the kscreen menu?
&gt; 
&gt; I have tested  in 5.25.90 x11, it looks like a regression.. once log out and
&gt; log in, the laptop screen is on again with enable option to true.
&gt; 
&gt; I could not test it yet in Wayland.
&gt; 
&gt; Regards

I am selecting the external monitor in the screen menu you can open with Meta+P (or fn+F9?) and choosing the first option &quot;Switch to external screen&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2153664</commentid>
    <comment_count>3</comment_count>
    <who name="galder">lemmyg</who>
    <bug_when>2022-09-17 14:13:57 +0000</bug_when>
    <thetext>good to know :),
I think is the same as disable the screen manually.

definitively is not keeping the settings as in 5.25.5. The screen also gets activated for me after I connect  and disconnect the external one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155580</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-09-23 02:24:10 +0000</bug_when>
    <thetext>*** Bug 459473 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155714</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-09-23 13:46:59 +0000</bug_when>
    <thetext>*** Bug 459562 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155881</commentid>
    <comment_count>6</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-09-23 21:39:11 +0000</bug_when>
    <thetext>*** Bug 459562 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2156120</commentid>
    <comment_count>7</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2022-09-24 22:16:01 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kscreen/-/merge_requests/139</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2156124</commentid>
    <comment_count>8</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2022-09-24 22:19:31 +0000</bug_when>
    <thetext>*** Bug 459431 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2156515</commentid>
    <comment_count>9</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2022-09-26 15:46:20 +0000</bug_when>
    <thetext>Git commit 8d275814c5b0054c29916ff374771edfa67217d2 by Xaver Hugl.
Committed on 26/09/2022 at 15:44.
Pushed by zamundaaa into branch &apos;master&apos;.

Revert &quot;when loading defaults don&apos;t forget to set enablement&quot;

This reverts commit 30376403493ea32e0782cff6b7be5a5fed571f49 because it overwrites
enablement for all connected outputs

M  +0    -1    kded/output.cpp

https://invent.kde.org/plasma/kscreen/commit/8d275814c5b0054c29916ff374771edfa67217d2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2156516</commentid>
    <comment_count>10</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2022-09-26 15:47:00 +0000</bug_when>
    <thetext>Git commit ed95ce556fb965f998d2d9b805c1ec68b89e16d9 by Xaver Hugl.
Committed on 26/09/2022 at 15:46.
Pushed by zamundaaa into branch &apos;Plasma/5.26&apos;.

Revert &quot;when loading defaults don&apos;t forget to set enablement&quot;

This reverts commit 30376403493ea32e0782cff6b7be5a5fed571f49 because it overwrites
enablement for all connected outputs


(cherry picked from commit 8d275814c5b0054c29916ff374771edfa67217d2)

M  +0    -1    kded/output.cpp

https://invent.kde.org/plasma/kscreen/commit/ed95ce556fb965f998d2d9b805c1ec68b89e16d9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157082</commentid>
    <comment_count>11</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-09-28 08:08:19 +0000</bug_when>
    <thetext>*** Bug 459720 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157333</commentid>
    <comment_count>12</comment_count>
    <who name="Iyán M. V.">me</who>
    <bug_when>2022-09-29 09:34:22 +0000</bug_when>
    <thetext>Matej Mrenica, did you try the patch? Did it solve the issue for you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157336</commentid>
    <comment_count>13</comment_count>
    <who name="Lucia Mrenica">lucia.mrenica</who>
    <bug_when>2022-09-29 09:41:16 +0000</bug_when>
    <thetext>(In reply to Iyán Méndez Veiga from comment #12)
&gt; Matej Mrenica, did you try the patch? Did it solve the issue for you?

I wanted to, but I got errors when building the source so I didn&apos;t go further.
Did you try it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157338</commentid>
    <comment_count>14</comment_count>
    <who name="Iyán M. V.">me</who>
    <bug_when>2022-09-29 10:42:01 +0000</bug_when>
    <thetext>I tried the patch but I didn&apos;t have the exact same issue as you, so that&apos;s why I asked you. In my case, after applying the patch, I still observe that if my laptop is suspended and I attach it to a docking station both screens turn on and in clone mode, while with 5.25, the laptop&apos;s screen would remain off and only the external screen would turn on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157787</commentid>
    <comment_count>15</comment_count>
    <who name="">miranda</who>
    <bug_when>2022-10-01 20:36:40 +0000</bug_when>
    <thetext>Reporter of 459720 here. I installed an upstream versions of libkscreen and kscreen, which has the aforementioned merge request, and the buggy behavior I was seeing when turning on my TV is fixed! All that&apos;s left is a separate display issue when I first open a window, but I&apos;ll save that for another bug report. Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157790</commentid>
    <comment_count>16</comment_count>
    <who name="galder">lemmyg</who>
    <bug_when>2022-10-01 21:31:24 +0000</bug_when>
    <thetext>Hello,
I have tested latest 5.26 branch and still the disabled screen
gets reset after I restart the session.

Regards</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2158129</commentid>
    <comment_count>17</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-10-03 14:11:28 +0000</bug_when>
    <thetext>Matej, since you reported the issue, it would be really great if we could get a confirmation one way or the other about this patch. I can help you build it if you&apos;re having trouble; please feel free to ping me on Matrix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2158154</commentid>
    <comment_count>18</comment_count>
    <who name="Lucia Mrenica">lucia.mrenica</who>
    <bug_when>2022-10-03 15:30:33 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #17)
&gt; Matej, since you reported the issue, it would be really great if we could
&gt; get a confirmation one way or the other about this patch. I can help you
&gt; build it if you&apos;re having trouble; please feel free to ping me on Matrix.

I have posted to the KDE Development room.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2158167</commentid>
    <comment_count>19</comment_count>
    <who name="Lucia Mrenica">lucia.mrenica</who>
    <bug_when>2022-10-03 16:23:10 +0000</bug_when>
    <thetext>I was able to test the new version successfully and the issue has been fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2158168</commentid>
    <comment_count>20</comment_count>
    <who name="Lucia Mrenica">lucia.mrenica</who>
    <bug_when>2022-10-03 16:25:50 +0000</bug_when>
    <thetext>(In reply to Matej Mrenica from comment #19)
&gt; I was able to test the new version successfully and the issue has been fixed.

That said, when I logged in into Wayland my &quot;do not disturb&quot; mode was on because &quot;Screen is mirrored&quot; even though it was not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2158280</commentid>
    <comment_count>21</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-10-04 09:10:33 +0000</bug_when>
    <thetext>Thank you so much! But it sounds like there is a remaining issue here. Can you please file a new bug report for that? and link it here? Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2158290</commentid>
    <comment_count>22</comment_count>
    <who name="Lucia Mrenica">lucia.mrenica</who>
    <bug_when>2022-10-04 10:50:43 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #21)
&gt; Thank you so much! But it sounds like there is a remaining issue here. Can
&gt; you please file a new bug report for that? and link it here? Thanks!

I will look into it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2158460</commentid>
    <comment_count>23</comment_count>
    <who name="galder">lemmyg</who>
    <bug_when>2022-10-05 08:02:59 +0000</bug_when>
    <thetext>Hello,
I just want to let you know that disabling one screen is working now. At least in x11. I believe before I didn&apos;t recompile kscreen.
Unfortunately I cant test it in Wayland as there are some problems in Kubuntu 22.04 and nvidia gpus.
Tested latest 5.26 branch.
I can relogin and the screen is disabled as in 5.25.5.

Regards
Galder</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2159947</commentid>
    <comment_count>24</comment_count>
    <who name="Lucia Mrenica">lucia.mrenica</who>
    <bug_when>2022-10-11 15:26:49 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #21)
&gt; Thank you so much! But it sounds like there is a remaining issue here. Can
&gt; you please file a new bug report for that? and link it here? Thanks!

Sorry for the delay but here it is: https://bugs.kde.org/show_bug.cgi?id=460247</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2160390</commentid>
    <comment_count>25</comment_count>
    <who name="Rainer Klier">rainer.klier</who>
    <bug_when>2022-10-12 12:39:52 +0000</bug_when>
    <thetext>hi,
it seems, that in KDE frameworks 5.26 the setting of external screens is not remembered/(re-)stored.
today i updated my opensuse tumbleweed system (notebook with nvidia graphics running X11) to latest available KDE framework 5 packages in version 5.26, and after reboot i noticed, that my external monitor was not enabled.
i could enable it in system settings, but after reboot, it is disabled again.
i also can enable it with the &quot;Anzeige Einrichtung&quot; Widget in &quot;Systemabschnitt der Kontrollleiste&quot;, but after reboot/re-login it is disabled again.
the monitor is enabled for example at the system-login because i can see the user-login screen on both monitors, but when then KDE desktop starts after login, the external monitor gets disabled.
i think, this might be the issue, you are discussing here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2160450</commentid>
    <comment_count>26</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-10-12 16:50:08 +0000</bug_when>
    <thetext>Can you please file a new bug report about that? Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2160460</commentid>
    <comment_count>27</comment_count>
    <who name="Rainer Klier">rainer.klier</who>
    <bug_when>2022-10-12 18:05:40 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #26)
&gt; Can you please file a new bug report about that? Thanks!

yes, ok, of course. will do.
i was just thinking, that a new bug report will anyhow be resolved as dublicate of this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2161145</commentid>
    <comment_count>28</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-10-14 17:40:49 +0000</bug_when>
    <thetext>That bug should have just been fixed today for Plasma 5.26.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2200238</commentid>
    <comment_count>29</comment_count>
    <who name="Lucia Mrenica">lucia.mrenica</who>
    <bug_when>2023-01-21 08:51:39 +0000</bug_when>
    <thetext>This issue reappeared yesterday after the update to Plasma 5.27 Beta, do you recommend a new report or a reopen? Also anyone else has the same issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2200518</commentid>
    <comment_count>30</comment_count>
    <who name="Lucia Mrenica">lucia.mrenica</who>
    <bug_when>2023-01-22 08:31:59 +0000</bug_when>
    <thetext>(In reply to Matej Mrenica from comment #29)
&gt; This issue reappeared yesterday after the update to Plasma 5.27 Beta, do you
&gt; recommend a new report or a reopen? Also anyone else has the same issue?

It looks like a different but similar issue, I will make a new report when I have more information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2200949</commentid>
    <comment_count>31</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-01-23 17:24:44 +0000</bug_when>
    <thetext>New one, since the code has changed so much between 5.26 and 5.27 that it&apos;s almost certainly caused by something different.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>