Unable to suspend computer

Bug #1768176 reported by David LaPointe
26
This bug affects 8 people
Affects Status Importance Assigned to Milestone
gnome-screensaver (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 18.04 fails to suspend if a window is open - it merely goes to the lock screen with a message that 1 process could not be stopped. [Side note - this behaviour disregards that I have the lock screen disabled in Privacy settings.]

I closed Chrome and a terminal window to reveal the second behaviour: When suspend is selected (through power icon) the computer power momentarily stops (under a second) then the computer returns to the lock screen after a pause.

Suspend worked very consistently on this hardware on 16.04 LTS in all situations. No changes have been made to the hardware since (long before) upgrade to 18.04.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnome-screensaver 3.6.1-8ubuntu3
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 30 22:55:45 2018
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-screensaver
Symptom: security
Title: Screen locking issue
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
David LaPointe (echus-arcana) wrote :
Revision history for this message
Tom (tom-lorinthe) wrote :

Same problem on Dell XPS 15 9560 with fresh install of Ubuntu 18.04 both X and Wayland. Did not have issue on 17.10 (X) and 17.04.

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

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

Changed in gnome-screensaver (Ubuntu):
status: New → Confirmed
Revision history for this message
Tom (tom-lorinthe) wrote :

Suspend works for me again, after adding "acpi_rev_override=1" with "sudo nano /etc/default/grub" in: GRUB_CMDLINE_LINUX_DEFAULT="splash acpi_rev_override=1 nouveau.runpm=0"

Then "sudo update-grub"

Revision history for this message
Eduardo Aguilar (tolitocr) wrote :

Hi Tom-lorinthe... I'm not so sure what is your suggestion. I should add "acpi_rev_override=1" after GRUB_CMDLINE_LINUX_DEFAULT="splash acpi_rev_override=1 nouveau.runpm=0"??
In my case, when I run that command that line is commented as GRUB_CMDLINE_LINUX_DEFAULT="quiet splash". I am running Ubuntu 18.04, fresh install from April 26th on a Lenovo e11.
Everything works fine but the suspend feature; not with all windows closed, not at all, period.
Some guidance would be grateful.
Cheers.

Revision history for this message
David LaPointe (echus-arcana) wrote :

Follow-up and clarification:

Timed suspend (e.g. after x hours) works on my system fairly reliably.
Suspend from the GNOME GUI does not work ever.

As such, this might be caused by the transition to GNOME. Here is a guess at a cause: to access suspend on the GUI you must now press the ALT key. Possibly this key release is getting processed as a wake-up event?

Revision history for this message
David LaPointe (echus-arcana) wrote :

I'd like to confirm the above observation. With GNOME the user has to hold down ALT to get the suspend option to appear on shutdown menu (IMHO this is really poor design). When the ALT key releases it wakes the computer before it has even really shut down. It is very timing sensitive. You have to release the ALT key the instant you click the button for the computer to actually suspend.

It's a simple fix: just make suspend option appear all the time in a separate button. Why would you want to hide capability from users?

Now, I've seen the computer be unable to suspend for other reasons (maybe 20% of the time). It seems to be something to do with a process that refuses to cooperate.

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.