<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - Errors on lid close/open, black screen."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93555#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - Errors on lid close/open, black screen."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93555">bug 93555</a>
              from <span class="vcard"><a class="email" href="mailto:bruno.pagani@ens-lyon.org" title="bruno.pagani@ens-lyon.org">bruno.pagani@ens-lyon.org</a>
</span></b>
        <pre>My machine does suspend/resume on lid close/open only if on battery, which
isn’t the case for all my tests here. So all I describe is when plugged on AC,
and there isn’t anything suspend related here. ;)

On lid close, the screen goes black, which is expected. Then, on lid open, it
stays black until I hit a key or move mouse, which is the issue I’m reporting.

And for the second point (with PSR enabled), it’s exactly that you described.
After hitting a key or moving the mouse a first time, the screen isn’t black
anymore, but « contains a stale image back from when I last entered my password
in the login screen », which also disappear when hitting a key or moving the
mouse. Sorry if I wasn’t very clear in my previous message, english isn’t my
mother tongue at all.

To be a bit more exhaustive, I’ve tried on battery. Lid close, screen goes
black and computer suspend. Lid open, nothing happens (which might be an issue
in fact, but probably for a different report — I expect my computer to resume
on lid open). Power button: resumes directly to the lock screen, without any
black screen or stale image.

In dmesg, I have this on lid close:
[ 6789.942085] pci_bus 0000:04: Allocating resources
[ 6789.942121] pci_bus 0000:06: Allocating resources
[ 6789.942168] pcieport 0000:00:1c.2: bridge window [io  0x1000-0x0fff] to [bus
06] add_size 1000
[ 6789.942176] pcieport 0000:00:1c.2: bridge window [mem 0x00100000-0x000fffff
64bit pref] to [bus 06] add_size 200000 add_align 100000
[ 6789.942188] pci_bus 0000:07: Allocating resources
[ 6789.942291] pcieport 0000:00:1c.3: bridge window [io  0x1000-0x0fff] to [bus
07] add_size 1000
[ 6789.942299] pcieport 0000:00:1c.3: bridge window [mem 0x00100000-0x000fffff
64bit pref] to [bus 07] add_size 200000 add_align 100000
[ 6789.942319] pcieport 0000:00:1c.2: res[15]=[mem 0x00100000-0x000fffff 64bit
pref] res_to_dev_res add_size 200000 min_align 100000
[ 6789.942327] pcieport 0000:00:1c.2: res[15]=[mem 0x00100000-0x002fffff 64bit
pref] res_to_dev_res add_size 200000 min_align 100000
[ 6789.942334] pcieport 0000:00:1c.3: res[15]=[mem 0x00100000-0x000fffff 64bit
pref] res_to_dev_res add_size 200000 min_align 100000
[ 6789.942341] pcieport 0000:00:1c.3: res[15]=[mem 0x00100000-0x002fffff 64bit
pref] res_to_dev_res add_size 200000 min_align 100000
[ 6789.942349] pcieport 0000:00:1c.2: res[13]=[io  0x1000-0x0fff]
res_to_dev_res add_size 1000 min_align 1000
[ 6789.942356] pcieport 0000:00:1c.2: res[13]=[io  0x1000-0x1fff]
res_to_dev_res add_size 1000 min_align 1000
[ 6789.942363] pcieport 0000:00:1c.3: res[13]=[io  0x1000-0x0fff]
res_to_dev_res add_size 1000 min_align 1000
[ 6789.942371] pcieport 0000:00:1c.3: res[13]=[io  0x1000-0x1fff]
res_to_dev_res add_size 1000 min_align 1000
[ 6789.942408] pcieport 0000:00:1c.2: BAR 15: assigned [mem
0xcf600000-0xcf7fffff 64bit pref]
[ 6789.942436] pcieport 0000:00:1c.3: BAR 15: assigned [mem
0xcf800000-0xcf9fffff 64bit pref]
[ 6789.942449] pcieport 0000:00:1c.2: BAR 13: assigned [io  0x3000-0x3fff]
[ 6789.942459] pcieport 0000:00:1c.3: BAR 13: assigned [io  0x4000-0x4fff]
[ 6790.016680] pci_bus 0000:02: Allocating resources

Then suspend/resume stuff, but the second part (from other messages here) isn’t
present, which I kind of expect since no black screen. However, any further lid
close (whether on battery or AC) leads to the same first part as other second
attempts:
[ 6880.004203] pci_bus 0000:04: Allocating resources
[ 6880.004231] pci_bus 0000:06: Allocating resources
[ 6880.004262] pci_bus 0000:07: Allocating resources
[ 6880.075329] pci_bus 0000:02: Allocating resources

And when on AC (nothing on battery), on lid open:
[ 6881.087919] pci_bus 0000:04: Allocating resources
[ 6881.087955] pci_bus 0000:06: Allocating resources
[ 6881.087992] pci_bus 0000:07: Allocating resources
[ 6881.159286] pci_bus 0000:02: Allocating resources

I suspect that if it was resuming on lid open, the black screen issue could be
present too.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>