Laptop does not suspend when lid is closed
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]
#NAutoVTs=6
#ReserveVT=6
#KillUserProces
#KillOnlyUsers=
#KillExcludeUse
#InhibitDelayMa
#HandlePowerKey
#HandleSuspendK
#HandleHibernat
HandleLidSwitch
HandleLidSwitch
#PowerKeyIgnore
#SuspendKeyIgno
#HibernateKeyIg
#LidSwitchIgnor
#HoldoffTimeout
#IdleAction=ignore
#IdleActionSec=
#RuntimeDirecto
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 4.15.0-22-generic x86_64
NonfreeKernelMo
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_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: linux-signed
UpgradeStatus: Upgraded to bionic on 2018-05-17 (24 days ago)
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 =ignore hDocked= ignore eInhibited= yes
HandleLidSwitch
#HandleLidSwitc
#LidSwitchIgnor
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.