<?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>345225</bug_id>
          
          <creation_ts>2015-03-16 17:54:53 +0000</creation_ts>
          <short_desc>External monitors not activated after resuming from sleep</short_desc>
          <delta_ts>2016-10-27 20:35:21 +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>1.0.2</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>UPSTREAM</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Simone Gaiarin">simgunz</reporter>
          <assigned_to name="Daniel Vrátil">dvratil</assigned_to>
          <cc>kde</cc>
    
    <cc>matthias</cc>
    
    <cc>mikhail-bugs-kde-org</cc>
    
    <cc>shohou</cc>
    
    <cc>simgunz</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>5.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1505703</commentid>
    <comment_count>0</comment_count>
    <who name="Simone Gaiarin">simgunz</who>
    <bug_when>2015-03-16 17:54:53 +0000</bug_when>
    <thetext>Using KScreen 2 I put the notebook to sleep while it&apos;s docked. When I resume it the two monitors attached to a docking station do not turn on. In KScreen KCM module they seems to be active and correctly configured.

At this point if I change the configuration of one of the monitor in KScreen KCM it turns on after I press Apply, but I&apos;m not able to turn them on together using this trick.

So I need to undock and dock again the notebook.

But since there is another bug, that makes KScreen forgot the configurations (I think it&apos;s already open) when the notebook is undocked I need to reconfigure KScreen again.

So every time I put the notebook to sleep I need to:
1. Undock
2. Dock again
3. Reconfigure KScreen



Reproducible: Always

Steps to Reproduce:
1.Connect two monitors to a docking station Dell
2.Dock the notebook
3.Put to sleep
4.Resume

Actual Results:  
External monitors not turning on

Expected Results:  
External monitors turning on

My configuration:
Dell E7440 notebook connected to a docking station where two other monitors are connected</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1505707</commentid>
    <comment_count>1</comment_count>
    <who name="Simone Gaiarin">simgunz</who>
    <bug_when>2015-03-16 18:03:23 +0000</bug_when>
    <thetext>May be related: https://bugs.kde.org/show_bug.cgi?id=345227</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1506061</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Vrátil">dvratil</who>
    <bug_when>2015-03-18 09:58:41 +0000</bug_when>
    <thetext>KScreen relies on X server telling it that something has changed.  Which with certain GPUs and drivers does not always happen when the change happens while the system is suspended or hibernated.

Starting with KScreen 5.2 (from Plasma 5.2), KScreen force-checks new configuration after system is resumed, which should cause X server to figure out that there was a change and dispatch change notifications, which we can react to and toggle the screens respectively.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1506094</commentid>
    <comment_count>3</comment_count>
    <who name="Simone Gaiarin">simgunz</who>
    <bug_when>2015-03-18 11:56:50 +0000</bug_when>
    <thetext>Thank you for the explanation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1517205</commentid>
    <comment_count>4</comment_count>
    <who name="Simone Gaiarin">simgunz</who>
    <bug_when>2015-05-09 12:07:21 +0000</bug_when>
    <thetext>Just tried with Plasma 5.2.2 and the problem persists. I&apos;ve upgraded from KDE 4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1519229</commentid>
    <comment_count>5</comment_count>
    <who name="Simone Gaiarin">simgunz</who>
    <bug_when>2015-05-16 15:58:54 +0000</bug_when>
    <thetext>Isn&apos;t there a way to manually force KScreen to check for new configuration (as a workaround)?  Because currently I need to undock and redock the notebook and all the windows are moved to on screen which is pretty annoying.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550152</commentid>
    <comment_count>6</comment_count>
    <who name="Simone Gaiarin">simgunz</who>
    <bug_when>2015-10-13 08:45:19 +0000</bug_when>
    <thetext>Problem still present in Plasma 5.4.2 in freshly installed Manjaro.
Can I provide some extra information to try to solve this bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550269</commentid>
    <comment_count>7</comment_count>
    <who name="Mikhail Khvoinitsky">mikhail-bugs-kde-org</who>
    <bug_when>2015-10-14 06:40:05 +0000</bug_when>
    <thetext>I can approve that the problem is exists in plasma 5.4.2 in archlinux.

To force kscreen to apply its configuration you can just open kscreen kcm settings in systemsettings instead of re-plugging your external screens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550278</commentid>
    <comment_count>8</comment_count>
    <who name="Simone Gaiarin">simgunz</who>
    <bug_when>2015-10-14 08:21:42 +0000</bug_when>
    <thetext>Doing it is problematic because systemsettings appears in the screen that is off. I solved this by using a shortcut to move the window to the active screen.

But in my case opening kscreen does nothing, the two monitors remain off. I can reactivate them by doing this:
1. Disable both monitors
2. Apply settings
3. Enable both monitors
4. Apply settings

Unfortunately when I apply settings in 2 and 4 the kscreen settings are lost (wrong position, wrong resolution), so that I need to reconfigure everything every time.

See bugs:
https://bugs.kde.org/show_bug.cgi?id=325277
https://bugs.kde.org/show_bug.cgi?id=346961</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1595862</commentid>
    <comment_count>9</comment_count>
    <who name="Matthias Blaicher">matthias</who>
    <bug_when>2016-05-21 06:28:16 +0000</bug_when>
    <thetext>While I have not yet fully understood the full standby logic of kscreen. It seems to me that two things might change how the logic behaves:
 - The time it takes to suspend (kscreen uses a timer internally)
 - The state of the laptop lid

Hence, does it make a difference to you if the lid is opened or closed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1600358</commentid>
    <comment_count>10</comment_count>
    <who name="Simone Gaiarin">simgunz</who>
    <bug_when>2016-06-11 16:26:02 +0000</bug_when>
    <thetext> I can suspend/resume via laptop lid/graphical interface/physical button and in any case the monitor doesn&apos;t wake up.

Still present in Plasma 5.6. I cannot apply the workaround suggested above, because the problems in comment #8 are still present as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1601443</commentid>
    <comment_count>11</comment_count>
    <who name="Simone Gaiarin">simgunz</who>
    <bug_when>2016-06-16 08:08:41 +0000</bug_when>
    <thetext>Another detail on this issue, is that sometimes there is no way to activate the monitor at all. In KScreen clicking enable and apply won&apos;t change anything. Often in this situation the list of resolutions available are wrong, so the monitor information are probably not detected at all, even though the monitor itself is detected as connected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1601445</commentid>
    <comment_count>12</comment_count>
    <who name="Simone Gaiarin">simgunz</who>
    <bug_when>2016-06-16 08:15:50 +0000</bug_when>
    <thetext>Also, I have this option related to the Intel driver in grub. Can this by related to the issues?

GRUB_CMDLINE_LINUX=&quot; acpi=force 
           acpi_enforce_resources=lax i915.enable_rc6=1 i915.enable_fbc=1 
           i915.lvds_downclock=1 i915.semaphores=1&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1635906</commentid>
    <comment_count>13</comment_count>
    <who name="Simone Gaiarin">simgunz</who>
    <bug_when>2016-10-27 20:35:21 +0000</bug_when>
    <thetext>I mark this as solved. In my case updating to Kernel 4.6 solved the problem. So it seems it was unrelated from KScreen.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>