Public bug reported:

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(NETDEV_CHANGE): wlp2s0: link becomes ready
 [   22.528077] kauditd_printk_skb: 35 callbacks suppressed
 [   22.528078] audit: type=1400 audit(1607608802.264:47): apparmor="DENIED" 
operation="open"
profile="/usr/sbin/cupsd" name="/proc/1091/attr/apparmor/current" pid=1091 
comm="cupsd"
requested_mask="r" denied_mask="r" fsuid=0 ouid=0
 [   23.146095] rfkill: input handler disabled
 [   27.861772] logitech-hidpp-device 0003:046D:4023.0006: HID++ 2.0 device 
connected.
 [   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(1607608813.640:48): apparmor="DENIED" 
operation="capable"
profile="/snap/core/10444/usr/lib/snapd/snap-confine" pid=3278 
comm="snap-confine" capability=4
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-XPS-13-9365:~# systemctl status sleep.target
 ● sleep.target - Sleep
      Loaded: loaded (/lib/systemd/system/sleep.target; static)
      Active: inactive (dead)
        Docs: man:systemd.special(7)

 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-XPS-13-9365:~# dpkg -l | grep gdm
 ii  gdm3                                       3.38.1-2ubuntu1.1               
      amd64
 GNOME Display Manager
 ii  gir1.2-gdm-1.0:amd64                       3.38.1-2ubuntu1.1               
      amd64
 GObject introspection data for the GNOME Display Manager
 ii  libgdm1                                    3.38.1-2ubuntu1.1               
      amd64
 GNOME Display Manager (shared library)
 root@imac-XPS-13-9365:~# dpkg -l | grep wayland
 ii  libva-wayland2:amd64                       2.8.0-1                         
      amd64
 Video Acceleration (VA) API for Linux -- Wayland runtime
 ii  libwayland-client0:amd64                   1.18.0-2~exp1.1                 
      amd64
 wayland compositor infrastructure - client library
 ii  libwayland-cursor0:amd64                   1.18.0-2~exp1.1                 
      amd64
 wayland compositor infrastructure - cursor library
 ii  libwayland-egl1:amd64                      1.18.0-2~exp1.1                 
      amd64
 wayland compositor infrastructure - EGL library
 ii  libwayland-server0:amd64                   1.18.0-2~exp1.1                 
      amd64
 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(NETDEV_CHANGE): wlp2s0: link becomes ready
...
 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/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.1/0003:046D:C534.0004/0003:046D:4023.0006/power_supply/hidpp_battery_0

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/gdm-x-session[2937]: (II) 
modeset(0): EDID for
output eDP-1
 Dec 10 09:00:11 imac-XPS-13-9365 /usr/libexec/gdm-x-session[2937]: (II) 
modeset(0): Manufacturer: AUO  Model: 282b  Serial#: 0

And goes on to detect my monitors
 Dec 10 09:00:11 imac-XPS-13-9365 /usr/libexec/gdm-x-session[2937]: (II) 
modeset(0): EDID for output DP-1-1
 Dec 10 09:00:11 imac-XPS-13-9365 /usr/libexec/gdm-x-session[2937]: (II) 
modeset(0): Manufacturer: VSC  Model: 6b34  Serial#: 16843009
...
 Dec 10 09:00:11 imac-XPS-13-9365 /usr/libexec/gdm-x-session[2937]: (II) 
modeset(0): EDID for output DP-1-2
 Dec 10 09:00:11 imac-XPS-13-9365 /usr/libexec/gdm-x-session[2937]: (II) 
modeset(0): Manufacturer: VSC  Model: 6b34  Serial#: 16843009
..
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-binary[3059]: 
GnomeDesktop-WARNING: Could not create transient scope for PID 3297: 
GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 
3297 does not exist.
 Dec 10 09:00:13 imac-XPS-13-9365 NetworkManager[1093]: <info>  
[1607608813.5648] agent-manager: 
agent[dad91209bad6c8db,:1.86/org.gnome.Shell.NetworkAgent/1000]: agent 
registered
 Dec 10 09:00:13 imac-XPS-13-9365 dbus-daemon[2850]: [session uid=1000 
pid=2850] Successfully activated service 'org.freedesktop.FileManager1'
 Dec 10 09:00:13 imac-XPS-13-9365 gnome-shell[3080]: Error looking up 
permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for 
geolocation
 Dec 10 09:00:13 imac-XPS-13-9365 systemd[1709]: tmp-snap.rootfs_PDp5l4.mount: 
Succeeded.
 Dec 10 09:00:13 imac-XPS-13-9365 systemd[2829]: tmp-snap.rootfs_PDp5l4.mount: 
Succeeded.
 Dec 10 09:00:13 imac-XPS-13-9365 systemd[1]: tmp-snap.rootfs_PDp5l4.mount: 
Succeeded.
 Dec 10 09:00:13 imac-XPS-13-9365 kernel: [   33.900456] audit: type=1400 
audit(1607608813.640:48): apparmor="DENIED" operation="capable" 
profile="/snap/core/10444/usr/lib/snapd/snap-confine" pid=3278 
comm="snap-confine" capability=4  capname="fsetid"
 Dec 10 09:00:13 imac-XPS-13-9365 systemd[1]: 
NetworkManager-dispatcher.service: Succeeded.
 Dec 10 09:00:13 imac-XPS-13-9365 NetworkManager[1093]: <info>  
[1607608813.7593] manager: sleep: sleep requested (sleeping: no  enabled: yes)
 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.

** Affects: gdm3 (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "full syslog"
   https://bugs.launchpad.net/bugs/1907687/+attachment/5442535/+files/syslog.txt

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gdm3 in Ubuntu.
https://bugs.launchpad.net/bugs/1907687

Title:
  Laptop with USB-C external monitors sleeping shortly after login

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1907687/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to