<?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>450737</bug_id>
          
          <creation_ts>2022-02-23 07:48:38 +0000</creation_ts>
          <short_desc>5.24.2 break multi monitor setup on wayland</short_desc>
          <delta_ts>2022-03-18 17:40:24 +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>wayland-generic</component>
          <version>5.24.2</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>VHI</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Weng Xuetian">wengxt</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>dennis.schridde</cc>
    
    <cc>globalunity</cc>
    
    <cc>nate</cc>
    
    <cc>xaver.hugl</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/commit/85558234e1d86dc084cd2776cdb22799eaa9254b</cf_commitlink>
          <cf_versionfixedin>5.24.3</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2107427</commentid>
    <comment_count>0</comment_count>
    <who name="Weng Xuetian">wengxt</who>
    <bug_when>2022-02-23 07:48:38 +0000</bug_when>
    <thetext>SUMMARY
5.24.2 may give me black screen on laptop when external monitor is plugged.
The first bad commit is 29bc1173c70b2a31753c791aa60fb33ee320440a
backends/drm: ignore enabled state of outputs for the lifetime of surfaces

STEPS TO REPRODUCE
1. plugin second monitor
2. log in into kwin

OBSERVED RESULT
laptop screen is still showing tty or blank (but not operatable). adjust systemsetting doesn&apos;t help to restore it into a usable state. Downgrade to 5.24.1 works.

EXPECTED RESULT
screen show content correctly. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  5.24.2 Archlinux
KDE Frameworks Version: 5.91.0 
Qt Version: 5.15.2

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2107726</commentid>
    <comment_count>1</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2022-02-24 04:54:25 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/2067</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2107727</commentid>
    <comment_count>2</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2022-02-24 04:55:31 +0000</bug_when>
    <thetext>I&apos;m relatively certain that the MR should fix it but could you test it to make sure? I don&apos;t have a multi-gpu system</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2107855</commentid>
    <comment_count>3</comment_count>
    <who name="Weng Xuetian">wengxt</who>
    <bug_when>2022-02-24 22:12:01 +0000</bug_when>
    <thetext>(In reply to Zamundaaa from comment #2)
&gt; I&apos;m relatively certain that the MR should fix it but could you test it to
&gt; make sure? I don&apos;t have a multi-gpu system

I manually cherry-pick against Plasma/5.24 and it seems to fix my issue, thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2107859</commentid>
    <comment_count>4</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2022-02-24 22:38:16 +0000</bug_when>
    <thetext>Git commit 85558234e1d86dc084cd2776cdb22799eaa9254b by Xaver Hugl.
Committed on 24/02/2022 at 21:48.
Pushed by zamundaaa into branch &apos;Plasma/5.24&apos;.

backends/drm: fix multi gpu

In 5.24 there&apos;s still multiple egl backends, only outputs of the relevant
gpu may be handled

M  +2    -2    src/backends/drm/egl_gbm_backend.cpp

https://invent.kde.org/plasma/kwin/commit/85558234e1d86dc084cd2776cdb22799eaa9254b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2110764</commentid>
    <comment_count>5</comment_count>
    <who name="Zamundaaa">xaver.hugl</who>
    <bug_when>2022-03-11 17:53:29 +0000</bug_when>
    <thetext>*** Bug 450871 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2111846</commentid>
    <comment_count>6</comment_count>
    <who name="Dennis Schridde">dennis.schridde</who>
    <bug_when>2022-03-18 17:40:24 +0000</bug_when>
    <thetext>The update has just landed in Fedora 35. I can confirm that the issue is fixed. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>