Laptop with USB-C external monitors sleeping shortly after login
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdm3 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Since upgrading to Ubuntu 20.10 on my Dell XPS 9380, I now experience an unwanted sleep immediately after login. It seems to only occur when I am at my office, where I use dual 1440p displays connected via USB-C, and close my laptop lid immediately after power-on.
Previously, the system would boot and use my external displays without issue. Now very shortly after I login (enough time to launch a terminal a cat my syslog), my system goes into a sleep state. My workaround is to simply open the lid until I see the laptop panel light up, and immediately close it, and then everything returns to normal on my external displays right back where I left it.
An excerpt from attached dmesg shows wireless ready at 21s and then deauthenticating at 34s after I login.
[ 21.378061] IPv6: ADDRCONF(
[ 22.528077] kauditd_printk_skb: 35 callbacks suppressed
[ 22.528078] audit: type=1400 audit(160760880
profile=
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 23.146095] rfkill: input handler disabled
[ 27.861772] logitech-
[ 30.927312] Bluetooth: RFCOMM TTY layer initialized
[ 30.927317] Bluetooth: RFCOMM socket layer initialized
[ 30.927321] Bluetooth: RFCOMM ver 1.11
[ 31.131406] rfkill: input handler enabled
[ 33.688341] rfkill: input handler disabled
[ 33.900456] audit: type=1400 audit(160760881
profile=
capname="fsetid"
[ 34.031152] wlp2s0: deauthenticating from c4:71:54:05:39:d1 by local choice (Reason:
3=DEAUTH_LEAVING)
Output from systemctl confirms my wakeup from a sleep state using my open-lid method described above. For anyone else on a 9380, it is worth noting my hostname identifies an older 9365 XPS model I had previously.
root@imac-
● sleep.target - Sleep
Loaded: loaded (/lib/systemd/
Active: inactive (dead)
Docs: man:systemd.
Dec 10 09:00:43 imac-XPS-13-9365 systemd[1]: Reached target Sleep.
Dec 10 09:00:57 imac-XPS-13-9365 systemd[1]: Stopped target Sleep.
I assume it must be something to do with gdm not detecting external monitors after login, however I do not close the lid, so I am still not sure why a sleep state is triggered. Current packages listed below.
root@imac-
ii gdm3 3.38.1-2ubuntu1.1 amd64
GNOME Display Manager
ii gir1.2-
GObject introspection data for the GNOME Display Manager
ii libgdm1 3.38.1-2ubuntu1.1 amd64
GNOME Display Manager (shared library)
root@imac-
ii libva-wayland2:
Video Acceleration (VA) API for Linux -- Wayland runtime
ii libwayland-
wayland compositor infrastructure - client library
ii libwayland-
wayland compositor infrastructure - cursor library
ii libwayland-
wayland compositor infrastructure - EGL library
ii libwayland-
wayland compositor infrastructure - server library
ii xwayland 2:1.20.9-2ubuntu1.1 amd64
Xwayland X server
I have included my syslog as well, where you can align the dmesg of my wifi coming on, and then turning off with the following entries.
Dec 10 09:00:01 imac-XPS-13-9365 kernel: [ 21.378061] IPv6: ADDRCONF(
...
Dec 10 09:00:13 imac-XPS-13-9365 kernel: [ 34.031152] wlp2s0: deauthenticating from c4:71:54:05:39:d1 by local choice (Reason: 3=DEAUTH_LEAVING)
In between these in my syslog I browsed for lines that might indicate something triggering sleep, and below are some lines I thought were of interest (complete syslog for the period attached).
Everything seems fine up to here ..
Dec 10 09:00:02 imac-XPS-13-9365 systemd[1]: Startup finished in 15.065s (firmware) + 10.533s (loader) + 4.734s (kernel) + 17.648s (userspace) = 47.981s.
...
Dec 10 09:00:04 imac-XPS-13-9365 gnome-shell[1960]: Registering session with GDM
This one is interesting, maybe just re-detecting my power supply (which was already plugged in) or an indication that it reach 100%, since it was likely nearly fully charged.
Dec 10 09:00:08 imac-XPS-13-9365 upowerd[1399]: treating change event as add on /sys/devices/
Still later we have
Dec 10 09:00:10 imac-XPS-13-9365 systemd[1]: Starting User Manager for UID 1000...
gdm detects my panel, even though the lid is closed
Dec 10 09:00:11 imac-XPS-13-9365 /usr/libexec/
output eDP-1
Dec 10 09:00:11 imac-XPS-13-9365 /usr/libexec/
And goes on to detect my monitors
Dec 10 09:00:11 imac-XPS-13-9365 /usr/libexec/
Dec 10 09:00:11 imac-XPS-13-9365 /usr/libexec/
...
Dec 10 09:00:11 imac-XPS-13-9365 /usr/libexec/
Dec 10 09:00:11 imac-XPS-13-9365 /usr/libexec/
..
Then we get to here
Dec 10 09:00:12 imac-XPS-13-9365 systemd[2829]: Reached target GNOME Session Manager is ready.
..
Dec 10 09:00:13 imac-XPS-13-9365 systemd[2829]: Reached target GNOME Session (session: ubuntu).
..
And then all of a sudden the network manager is announcing sleep has been requested
Dec 10 09:00:13 imac-XPS-13-9365 gnome-session-
Dec 10 09:00:13 imac-XPS-13-9365 NetworkManager[
Dec 10 09:00:13 imac-XPS-13-9365 dbus-daemon[2850]: [session uid=1000 pid=2850] Successfully activated service 'org.freedeskto
Dec 10 09:00:13 imac-XPS-13-9365 gnome-shell[3080]: Error looking up permission: GDBus.Error:
Dec 10 09:00:13 imac-XPS-13-9365 systemd[1709]: tmp-snap.
Dec 10 09:00:13 imac-XPS-13-9365 systemd[2829]: tmp-snap.
Dec 10 09:00:13 imac-XPS-13-9365 systemd[1]: tmp-snap.
Dec 10 09:00:13 imac-XPS-13-9365 kernel: [ 33.900456] audit: type=1400 audit(160760881
Dec 10 09:00:13 imac-XPS-13-9365 systemd[1]: NetworkManager-
Dec 10 09:00:13 imac-XPS-13-9365 NetworkManager[
Dec 10 09:00:13 imac-XPS-13-9365 ModemManager[1257]: <info> [sleep-monitor] system is about to suspend
So I really have no idea what might be causing this, and it doesn't seem clear from what I have reviewed so far.
And here is the dmesg