Laptop does not suspend after lid is closed on nvidia drivers

Bug #1767715 reported by Wolf Rogner
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
gdm3 (Ubuntu)
Invalid
Undecided
Unassigned
gnome-shell (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

System: Ubuntu 18.04 fresh install
HW: Macbook Pro Retina 15"

Settings in Tweak: Suspend on Lid closed

The machine does not suspend after lid is closed

syslog: -----------
Apr 28 21:42:18 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: (EE) event7 - bcm5974: kernel bug: Touch jump detected and discarded.
Apr 28 21:42:18 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: See https://wayland.freedesktop.org/libinput/doc/1.10.4/touchpad_jumping_cursor.html for details
Apr 28 21:42:19 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: (EE) event7 - bcm5974: kernel bug: Touch jump detected and discarded.
Apr 28 21:42:19 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: See https://wayland.freedesktop.org/libinput/doc/1.10.4/touchpad_jumping_cursor.html for details
Apr 28 21:42:22 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: (EE) event7 - bcm5974: kernel bug: Touch jump detected and discarded.
Apr 28 21:42:22 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: See https://wayland.freedesktop.org/libinput/doc/1.10.4/touchpad_jumping_cursor.html for details
Apr 28 21:42:26 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: (EE) event7 - bcm5974: kernel bug: Touch jump detected and discarded.
Apr 28 21:42:26 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: See https://wayland.freedesktop.org/libinput/doc/1.10.4/touchpad_jumping_cursor.html for details
Apr 28 21:42:26 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: (EE) event7 - bcm5974: kernel bug: Touch jump detected and discarded.
Apr 28 21:42:26 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: See https://wayland.freedesktop.org/libinput/doc/1.10.4/touchpad_jumping_cursor.html for details
Apr 28 21:42:27 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: (EE) event7 - bcm5974: kernel bug: Touch jump detected and discarded.
Apr 28 21:42:27 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: See https://wayland.freedesktop.org/libinput/doc/1.10.4/touchpad_jumping_cursor.html for details
Apr 28 21:42:27 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: (EE) event7 - bcm5974: kernel bug: Touch jump detected and discarded.
Apr 28 21:42:27 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: See https://wayland.freedesktop.org/libinput/doc/1.10.4/touchpad_jumping_cursor.html for details
Apr 28 21:42:27 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: (EE) event7 - bcm5974: kernel bug: Touch jump detected and discarded.
Apr 28 21:42:27 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: See https://wayland.freedesktop.org/libinput/doc/1.10.4/touchpad_jumping_cursor.html for details
Apr 28 21:42:27 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: (EE) event7 - bcm5974: kernel bug: Touch jump detected and discarded.
Apr 28 21:42:27 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: See https://wayland.freedesktop.org/libinput/doc/1.10.4/touchpad_jumping_cursor.html for details
Apr 28 21:42:34 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: (EE) event7 - bcm5974: kernel bug: Touch jump detected and discarded.
Apr 28 21:42:34 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: See https://wayland.freedesktop.org/libinput/doc/1.10.4/touchpad_jumping_cursor.html for details
Apr 28 21:42:34 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: (EE) event7 - bcm5974: kernel bug: Touch jump detected and discarded.
Apr 28 21:42:34 mbpr15a /usr/lib/gdm3/gdm-x-session[2063]: See https://wayland.freedesktop.org/libinput/doc/1.10.4/touchpad_jumping_cursor.html for details
Apr 28 21:42:35 mbpr15a gnome-shell[1460]: _st_paint_shadow_with_opacity: assertion 'shadow_pipeline != NULL' failed

...
---------

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gdm3 3.28.0-0ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
NonfreeKernelModules: wl nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sat Apr 28 21:46:37 2018
InstallationDate: Installed on 2018-04-28 (0 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: gdm3
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Wolf Rogner (war-rsb) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gdm3 (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It looks like you might have 2 or 3 different bugs here.

The failure to suspend is reported in bug 1736820 and others.

The gnome-shell assertion is bug 1730254.

Revision history for this message
Wolf Rogner (war-rsb) wrote :

I could narrow this issue down to the NVIDIA driver.
Setting the graphics card to Intel eliminates the issue.

summary: - suspend to RAM not working in 18.04
+ Laptop does not suspend after lid is closed
Revision history for this message
Sebastien Bacher (seb128) wrote :

When you get the issue is "systemctl suspend" successful at suspending?
Can you give the output of the "systemd-inhibit --list"?

Changed in gdm3 (Ubuntu):
status: Confirmed → Invalid
summary: - Laptop does not suspend after lid is closed
+ Laptop does not suspend after lid is closed on nvidia drivers
Revision history for this message
Meowsus (tooblies) wrote :

I'm not using the Nvidia drivers and am experiencing the same issue.

➜ ~ sudo lshw -c video
[sudo] password for meowsus:
  *-display
       description: VGA compatible controller
       product: Crystal Well Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 08
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:50 memory:a0000000-a03fffff memory:90000000-9fffffff ioport:1000(size=64) memory:c0000-dffff

For what it's worth here are my inhibitors:

➜ ~ systemd-inhibit --list
     Who: gdm (UID 121/gdm, PID 1524/gsd-power)
    What: sleep
     Why: GNOME needs to lock the screen
    Mode: delay

     Who: ModemManager (UID 0/root, PID 1039/ModemManager)
    What: sleep
     Why: ModemManager needs to reset devices
    Mode: delay

     Who: gdm (UID 121/gdm, PID 1520/gsd-media-keys)
    What: sleep
     Why: GNOME handling keypresses
    Mode: delay

     Who: GNOME Shell (UID 1000/meowsus, PID 2563/gnome-shell)
    What: sleep
     Why: GNOME needs to lock the screen
    Mode: delay

     Who: NetworkManager (UID 0/root, PID 1082/NetworkManager)
    What: sleep
     Why: NetworkManager needs to turn off networks
    Mode: delay

     Who: meowsus (UID 1000/meowsus, PID 2729/gsd-media-keys)
    What: sleep
     Why: GNOME handling keypresses
    Mode: delay

     Who: gdm (UID 121/gdm, PID 1520/gsd-media-keys)
    What: handle-power-key:handle-suspend-key:handle-hibernate-key
     Why: GNOME handling keypresses
    Mode: block

     Who: UPower (UID 0/root, PID 1349/upowerd)
    What: sleep
     Why: Pause device polling
    Mode: delay

     Who: meowsus (UID 1000/meowsus, PID 2678/gsd-power)
    What: sleep
     Why: GNOME needs to lock the screen
    Mode: delay

     Who: meowsus (UID 1000/meowsus, PID 2729/gsd-media-keys)
    What: handle-power-key:handle-suspend-key:handle-hibernate-key
     Why: GNOME handling keypresses
    Mode: block

10 inhibitors listed.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Revision history for this message
Damian (kojotee) wrote :

Same issue, works only the first time you suspend after reboot any time after that it fails. (Laptop Lenovo T400)

sudo lshw -c video
*-display:0
       description: VGA compatible controller
       product: Mobile 4 Series Chipset Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 07
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:16 memory:f4400000-f47fffff memory:d0000000-dfffffff ioport:1800(size=8) memory:c0000-dffff
  *-display:1 UNCLAIMED
       description: Display controller
       product: Mobile 4 Series Chipset Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2.1
       bus info: pci@0000:00:02.1
       version: 07
       width: 64 bits
       clock: 33MHz
       capabilities: pm bus_master cap_list
       configuration: latency=0
       resources: memory:f4200000-f42fffff

systemd-inhibit --list
     Who: gdm (UID 121/gdm, PID 1125/gsd-power)
    What: sleep
     Why: GNOME needs to lock the screen
    Mode: delay

     Who: GNOME Shell (UID 1000/damian, PID 1552/gnome-shell)
    What: sleep
     Why: GNOME needs to lock the screen
    Mode: delay

     Who: damian (UID 1000/damian, PID 1696/gsd-media-keys)
    What: handle-power-key:handle-suspend-key:handle-hibernate-key
     Why: GNOME handling keypresses
    Mode: block

     Who: damian (UID 1000/damian, PID 1649/gsd-power)
    What: sleep
     Why: GNOME needs to lock the screen
    Mode: delay

     Who: gdm (UID 121/gdm, PID 1122/gsd-media-keys)
    What: handle-power-key:handle-suspend-key:handle-hibernate-key
     Why: GNOME handling keypresses
    Mode: block

     Who: ModemManager (UID 0/root, PID 764/ModemManager)
    What: sleep
     Why: ModemManager needs to reset devices
    Mode: delay

     Who: NetworkManager (UID 0/root, PID 786/NetworkManager)
    What: sleep
     Why: NetworkManager needs to turn off networks
    Mode: delay

     Who: gdm (UID 121/gdm, PID 1122/gsd-media-keys)
    What: sleep
     Why: GNOME handling keypresses
    Mode: delay

     Who: damian (UID 1000/damian, PID 1696/gsd-media-keys)
    What: sleep
     Why: GNOME handling keypresses
    Mode: delay

     Who: UPower (UID 0/root, PID 1021/upowerd)
    What: sleep
     Why: Pause device polling
    Mode: delay

10 inhibitors listed.

tags: added: nvidia
Revision history for this message
Damian (kojotee) wrote :

Anything I can help with? Any additional info you may need or logs?

This bug is super annoying.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

All,

Please log your own bugs. As the problem and solutions are likely to be hardware-specific this bug should be used by Wolf Rogner only.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.