<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - systemd doesn't check for external monitor when system is resumed and therefore suspends the system again (lid closed)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=77310">77310</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>systemd doesn't check for external monitor when system is resumed and therefore suspends the system again (lid closed)
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tittiatcoke@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr></table>
<p>
<div>
<pre>When I boot the system up docked with the lid closed and an external monitor
connected, systemd is recognizing this and works fine. The issue starts when
the system is suspended un-docked and no external monitor and then resumed when
docked.
The system is started un-docked and without an external monitor connected. The
system boots fine as that the lid is open. After working for a couple of hours,
I close the lid and the system is automatically suspending and remains
suspended over night. The next morning I take the system to the office where I
have a docking station with an external monitor connected. I put the laptop in
the docking station and press the power button on the docking station to resume
the system. I do not open the lid !!
The system resumes and the external monitor shows the screensaver/desktop.
After about 3 minutes the system suddenly suspends again. Pressing the power
button again, resumes the system, but directly goes to suspend state again
after about 30 seconds.
In order for me to work with the system I need either to reboot the system or
to open the lid. Even if I open the lid no screen is shown there as that the
external monitor is attached.
I suspect that systemd is reading the system state during boot-up and does not
refresh the system state upon resuming which causes that the external monitor
is not detected and therefore a suspend is initiated as that the lid is closed.
I haven't tried the other way around to boot the system with an external
monitor and then to suspend it and resume it without an external monitor as
that the powerbutton is not reachable without opening the lid. But I expect
that systemd will make the same mistake and assumes that an external monitor is
connected.</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 the assignee for the bug.</li>
</ul>
</body>
</html>