Laptop does not suspend when lid is closed

Bug #1776113 reported by Bruce Phillips
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

$ lsb_release -rd

Description: Ubuntu 18.04 LTS
Release: 18.04

In Tweaks > Power, "Suspend when laptop lid is closed" is ON, but my laptop does not suspend when the lid is closed. The laptop is a Thinkpad P50.

When closing the laptop lid, no events show up in dmesg.

This is my /etc/systemd/login.conf:

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=suspend
HandleLidSwitchDocked=suspend
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.15.0-22-generic 4.15.0-22.24
ProcVersionSignature: Ubuntu 4.15.0-22.24-generic 4.15.17
Uname: Linux 4.15.0-22-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sun Jun 10 14:16:10 2018
InstallationDate: Installed on 2018-03-26 (76 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20180105.1)
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-signed
UpgradeStatus: Upgraded to bionic on 2018-05-17 (24 days ago)

Revision history for this message
Bruce Phillips (bphillips) wrote :
Revision history for this message
Luis Alberto Pabón (copong) wrote :

I've been experiencing the same problem since friday on a Dell XPS 9560 laptop on Bionic. I created a different user account to test and laptop doesn't suspend, but if I switch that user to a Mate Desktop session it works fine.

These are the relevant lines on my logind.conf file:

~ cat /etc/systemd/logind.conf |grep -i lid
HandleLidSwitch=ignore
#HandleLidSwitchDocked=ignore
#LidSwitchIgnoreInhibited=yes

Curiously, I can see this config file was changed last (presumably due to an update?) just last friday june the 8th, which is perhaps too much of a coincidence:

/etc/systemd ~ ll
total 36K
-rw-r--r-- 1 root root 1.1K Apr 2 20:25 journald.conf
-rw-r--r-- 1 root root 1017 Jun 8 13:33 logind.conf
drwxr-xr-x 2 root root 4.0K Oct 4 2017 network
-rw-r--r-- 1 root root 601 Apr 12 12:12 resolved.conf
drwxr-xr-x 21 root root 4.0K Jun 11 08:18 system
-rw-r--r-- 1 root root 1.7K Apr 2 20:25 system.conf
-rw-r--r-- 1 root root 604 Apr 2 20:25 timesyncd.conf
drwxr-xr-x 3 root root 4.0K May 10 15:52 user
-rw-r--r-- 1 root root 1.2K Jul 12 2017 user.conf

This happens on:
  * Ubuntu gnome session
  * Vanilla gnome session
  * Unity 7 session

Suspend on lid closed works correctly on
  * Mate session

I do not mix DE's on the same user, always create a new one to use with it to avoid home folder pollution.

Revision history for this message
Luis Alberto Pabón (copong) wrote :

All gnome sessions above are on X btw, not Wayland.

Revision history for this message
Luis Alberto Pabón (copong) wrote :

Commenting out the line

 HandleLidSwitch=suspend

restores normal behaviour. Since I didn't change it to begin with, I gather an update did this judging by how its last modified date was the same day suspend-on-lidclose stopped working.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.17 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17

affects: linux-signed (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1776113

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Mirko W (mirkow) wrote :

Same problem here.

Doesnt work with HandleLidSwitch=suspend commented or uncommented.

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

Other bug subscribers

Remote bug watches

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