[Bug 1907687] Re: Laptop with USB-C external monitors sleeping shortly after login

2020-12-10 Thread Daniel van Vugt
*** This bug is a duplicate of bug 1841826 ***
https://bugs.launchpad.net/bugs/1841826

This sounds close enough to bug 1841826 that we should use that for now.

** This bug has been marked a duplicate of bug 1841826
   Going to sleep instead of logging in while lid closed & external display

-- 
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

[Bug 1907687] Re: Laptop with USB-C external monitors sleeping shortly after login

2020-12-10 Thread iMac
And here I attached what systemd-inhibit looks like just after I login,
but before my computer is put to sleep


** Attachment added: "systemd-inhibit just prior to sleep after login"
   
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1907687/+attachment/5442541/+files/systemd-inhibit-initial.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

[Bug 1907687] Re: Laptop with USB-C external monitors sleeping shortly after login

2020-12-10 Thread iMac
attached cleaner output of systemd-inhibit


** Attachment added: "systemd-inhibit"
   
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1907687/+attachment/5442538/+files/systemd-inhibit.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

[Bug 1907687] Re: Laptop with USB-C external monitors sleeping shortly after login

2020-12-10 Thread iMac
Here is some additional info

root@imac-XPS-13-9365:~# systemd-inhibit 
WHO  UID  USER PID  COMMWHAT
 WHY
 MODE 
ModemManager 0root 1257 ModemManagersleep   
 ModemManager needs to reset devices
 delay
NetworkManager   0root 1093 NetworkManager  sleep   
 NetworkManager needs to turn off networks  
 delay
UPower   0root 1399 upowerd sleep   
 Pause device polling   
 delay
Unattended Upgrades Shutdown 0root 1300 unattended-upgr shutdown
 Stop ongoing upgrades or perform upgrades 
before shutdown   delay
GNOME Shell  1000 imac 3080 gnome-shell sleep   
 GNOME needs to lock the screen 
 delay
imac 1000 imac 3221 gsd-power   handle-lid-switch   
 External monitor attached or configuration 
changed recently block
imac 1000 imac 3215 gsd-media-keys  
handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling 
keypresses   block
imac 1000 imac 3215 gsd-media-keys  sleep   
 GNOME handling keypresses  
 delay

-- 
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

[Bug 1907687] Re: Laptop with USB-C external monitors sleeping shortly after login

2020-12-10 Thread iMac
And here is the dmesg

** Attachment added: "dmesg"
   
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1907687/+attachment/5442536/+files/dmesg.txt

** Description changed:

  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, my system goes to sleep.  My
- workaround is to simply open the lid until I see a screen, and close it,
- and then everything returns to normal.
+ 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.
  
- A excerpt from attached dmest shows wireless ready at 21s and then
+ 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" 
+  [   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  
+  [   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: 
+  [   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.
+  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  libgdm13.38.1-2ubuntu1.1 
amd64
-  GNOME Display