Notebook doesn't suspend when lid is closed after update to 16.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pm-utils (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
systemd (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
My notebook does not suspend after upgrading from 15.10 to 16.04.
According to system settings the notebook should suspend when lid is closed but actually this does not happen. Instead it continues to run as if nothing had happened.
With the previous versions of ubuntu (14.04-15.10) everything worked fine.
My System: HP Pavilion dv7.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: acpi (not installed)
ProcVersionSign
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Apr 23 23:11:15 2016
InstallationDate: Installed on 2015-10-29 (176 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
SourcePackage: acpi
UpgradeStatus: Upgraded to xenial on 2016-04-22 (1 days ago)
patrick70 (patrick70) wrote : | #1 |
- JournalErrors.txt Edit (9.4 KiB, text/plain; charset="utf-8")
- ProcEnviron.txt Edit (112 bytes, text/plain; charset="utf-8")
Launchpad Janitor (janitor) wrote : | #2 |
Changed in acpi (Ubuntu): | |
status: | New → Confirmed |
dlh (dolohow) wrote : | #3 |
Happens on my HP ProBook 640 G2 too.
Bruno Santos (bsantos) wrote : | #4 |
Same thing on a HP Sleekbook 15
Bruno Santos (bsantos) wrote : | #5 |
Adding HandleLidSwitch
patrick70 (patrick70) wrote : | #6 |
I tried HandleLidSwitch
When I suspend the notebook with the item in the system menu it gets into a similar state without any chance to wake it up again.
Betty (sturdyandserviceable) wrote : | #7 |
This bug affects me on my HP Pavilion dv6, but adding HandleLidSwitch
Changed in acpi (Ubuntu): | |
importance: | Undecided → Medium |
Pranav Sharma (sudopluto-deactivatedaccount) wrote : | #8 |
I had this problem as well, and adding the "HandleLidSwitc
Carl (carl-leach-public-b) wrote : | #9 |
Same issue on HP G62-105SA Notebook PC.
The lid state is correctly reported in /proc/acpi/
Carl (carl-leach-public-b) wrote : | #10 |
Confirm that adding HandleLidSwitch
Richard Brooksby (rptb1) wrote : | #11 |
Also affects my HP Stream 11.
affects: | acpi (Ubuntu) → systemd (Ubuntu) |
Bruno Santos (bsantos) wrote : | #12 |
From https:/
"If the system is inserted in a docking station, or if more than one display is connected, the action specified by HandleLidSwitch
In my case I don't have a docking station nor any other monitor attached to the laptop, so as Pranav suggested, there may be some issues with detecting the laptop as being docked or as having other connected monitors?
My machine has an Optimus card, with both Intel and Nvidia chips, could this be related to the bug? Any of you have machines with this system too?
Bruno Santos (bsantos) wrote : | #13 |
patrick70 did you reboot or restart the systemd-logind service?
Carl (carl-leach-public-b) wrote : | #14 |
VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
Carl (carl-leach-public-b) wrote : | #15 |
~$ xrandr --query
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767
LVDS1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1366x768 59.64*+
1360x768 59.80 59.96
1280x720 60.00
1024x768 60.00
1024x576 60.00
960x540 60.00
800x600 60.32 56.25
864x486 60.00
640x480 59.94
720x405 60.00
680x384 60.00
640x360 60.00
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Julien Olivier (julo) wrote : | #16 |
I, too, have an Optimus Prime video card (Nvidia GeForce 830M/PCIe/SSE2).
patrick70 (patrick70) wrote : | #17 |
@Bruno
I rebooted the system.
patrick70 (patrick70) wrote : | #18 |
It seems that there are two issues:
1) Wrong detection oft closed lid
Can be worked around with the aforementioned settings.
2) Failure to suspend at all
Incorrect state, fan still operating.
Failure to wake up in any event.
I wonder if I shall file a different bug for 2.
Carl (carl-leach-public-b) wrote : | #19 |
I don't think it is 'Wrong detection of closed lid' as '/proc/
Wayne Brown (fwbrown) wrote : | #20 |
My HP Pavilion 15 Notebook PC (15f019dx) had the same problem after upgrading to 16.04. It would suspend from the menu with no problem, but would not suspend automatically when the lid was closed. /proc/acpi/
patrick70 (patrick70) wrote : | #21 |
I found a solution to the issue '2) Failure to suspend at all': I upgraded the kernel to 4.4.8.
Now patching HandleLidSwitch
Martin Pitt (pitti) wrote : | #22 |
@patrick70: As you already found out, failures in the actual suspend are hardware/kernel specific. Great to hear that the new kernel works.
As for not suspending in the default configuration (i. e. without HandleLidSwitch
- Does suspend work from the session indicator (rightmost in the top panel)?
- Can you please copy&paste the output of "systemd-inhibit" in a situation where closing the lid does not do anything?
- After a lid close/open without suspend, please do "sudo journalctl -b > /tmp/journal.txt" and attach /tmp/journal.txt here.
Changed in systemd (Ubuntu): | |
status: | Confirmed → Incomplete |
patrick70 (patrick70) wrote : | #23 |
- journal.txt Edit (368.7 KiB, text/plain)
Suspend from the session indicator works.
systemd-inhibit:
Who: patrick (UID 1000/patrick, PID 1564/unity-
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
Who: Unity (UID 1000/patrick, PID 1570/compiz)
What: sleep
Why: Unity needs to lock the screen
Mode: delay
Who: patrick (UID 1000/patrick, PID 1564/unity-
What: handle-
Why: GNOME handling keypresses
Mode: block
Who: NetworkManager (UID 0/root, PID 722/NetworkManager)
What: sleep
Why: NetworkManager muss Netzwerke abschalten
Mode: delay
4 inhibitors listed.
Bruno Santos (bsantos) wrote : | #24 |
- I cleaned up the log up to the logind service restart, so as not to have so many unnecessary entries. If a complete log is needed, I'll reboot and do it again. Edit (7.8 KiB, text/plain)
I removed the workaround in logind.conf and as expected suspend stopped working. It does work from panel menu.
$ systemd-inhibit
Who: Telepathy (UID 1000/bruno, PID 2482/mission-
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
Who: bruno (UID 1000/bruno, PID 2070/unity-
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
Who: bruno (UID 1000/bruno, PID 2070/unity-
What: handle-
Why: GNOME handling keypresses
Mode: block
Who: NetworkManager (UID 0/root, PID 904/NetworkManager)
What: sleep
Why: NetworkManager needs to turn off networks
Mode: delay
4 inhibitors listed.
Richard Brooksby (rptb1) wrote : | #25 |
rb@bluejay:
Who: NetworkManager (UID 0/root, PID 812/NetworkManager)
What: sleep
Why: NetworkManager needs to turn off networks
Mode: delay
Who: rb (UID 1000/rb, PID 1589/unity-
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
Who: rb (UID 1000/rb, PID 1589/unity-
What: handle-
Why: GNOME handling keypresses
Mode: block
Who: Unity (UID 1000/rb, PID 1594/compiz)
What: sleep
Why: Unity needs to lock the screen
Mode: delay
4 inhibitors listed.
Note: Closing the lid does switch off the display, but doesn't suspend the machine.
Here is the tail of the output of journalctl at the time I closed and opened the lid.
Apr 26 23:21:13 bluejay kernel: atkbd serio0: Unknown key pressed (translated set 2, code 0xd8 on isa0060/serio0).
Apr 26 23:21:13 bluejay kernel: atkbd serio0: Use 'setkeycodes e058 <keycode>' to make it known.
Apr 26 23:21:13 bluejay kernel: atkbd serio0: Unknown key released (translated set 2, code 0xd8 on isa0060/serio0).
Apr 26 23:21:13 bluejay kernel: atkbd serio0: Use 'setkeycodes e058 <keycode>' to make it known.
Apr 26 23:21:14 bluejay systemd-
Apr 26 23:21:17 bluejay systemd-
Apr 26 23:21:22 bluejay sudo[8534]: rb : TTY=pts/6 ; PWD=/home/
Apr 26 23:21:22 bluejay sudo[8534]: pam_unix(
Neil Woolford (neil-neilwoolford) wrote : | #26 |
On my HP255G1 I have six inhibitors listed, the two blocks being;
Who: neilw (UID 1000/neilw, PID 1669/unity-
What: handle-
Why: GNOME handling keypresses
Mode: block
Who: neilw (UID 1000/neilw, PID 1669/unity-
What: handle-lid-switch
Why: Multiple displays attached
Mode: block
However, I certainly don't have multiple displays attached.
Martin Pitt (pitti) wrote : | #27 |
@Neil: So for you, unity-settings-
Benoît Vézina (a-1enoit-n) wrote : | #28 |
Same here dv7, closing lid, nothing happen
Neil Woolford (neil-neilwoolford) wrote : | #29 |
- As requested in post #22 Edit (676.4 KiB, text/plain)
The problem persists after sorting the oddity with the unity-settings-
Now I find that suspend only works if "HandleLidSwitc
Without that I return to the bug condition.
In the bug condition suspend works fine from the session indicator.
neilw@NWPS-LAP:~$ systemd-inhibit
Who: neilw (UID 1000/neilw, PID 1558/unity-
What: handle-
Why: GNOME handling keypresses
Mode: block
Who: NetworkManager (UID 0/root, PID 2267/NetworkMan
What: sleep
Why: NetworkManager needs to turn off networks
Mode: delay
Who: Telepathy (UID 1000/neilw, PID 1797/mission-
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
Who: neilw (UID 1000/neilw, PID 1558/unity-
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
Who: Unity (UID 1000/neilw, PID 1566/compiz)
What: sleep
Why: Unity needs to lock the screen
Mode: delay
5 inhibitors listed.
Sam Brookfield (sbrookfield) wrote : | #30 |
Affects HP Spectre z360 also (suspend works from interface but does not happen when lid closed despite setting in power settings) - had to both upgrade to kernel 4.4.8 from 4.4.0 and add the workarounds to /etc/systemd/
systemd-inhibit output -
Who: sam (UID 1000/sam, PID 1750/unity-
What: handle-
Why: GNOME handling keypresses
Mode: block
Who: sam (UID 1000/sam, PID 1750/unity-
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
Who: NetworkManager (UID 0/root, PID 873/NetworkManager)
What: sleep
Why: NetworkManager needs to turn off networks
Mode: delay
Who: sam (UID 1000/sam, PID 1757/gnome-
What: shutdown:sleep
Why: user session inhibited
Mode: block
4 inhibitors listed.
Игорь (ifree92) wrote : | #31 |
Have the same problem on HP Probook 450 G3
When lid was closed.. laptop didn't suspend. When I open lid.. I cannot click on some tray icon on top panel.
Игорь (ifree92) wrote : | #32 |
On all previously versions all works fine.
Sebastien Bacher (seb128) wrote : | #33 |
@Sam,
your log states that gnome-session inhibits suspends, it's usually because some code asked it to do so
what if you try to
$ dbus-send --print-reply --dest=
then
$ dbus-send --print-reply --dest=
where "object path" is the string returned by the previous call (e.g "/org/gnome/
Carl (carl-leach-public-b) wrote : | #34 |
~$ systemd-inhibit
Who: NetworkManager (UID 0/root, PID 686/NetworkManager)
What: sleep
Why: NetworkManager needs to turn off networks
Mode: delay
Who: Telepathy (UID 1000/carl, PID 1923/mission-
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
Who: carl (UID 1000/carl, PID 1805/gnome-
What: handle-
Why: GNOME handling keypresses
Mode: block
Who: carl (UID 1000/carl, PID 1805/gnome-
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
4 inhibitors listed.
Игорь (ifree92) wrote : | #35 |
Also in additions I propose this error from `dmesg` (for my HP Probook 450 G3) when I trying to close lid:
[ 2736.262341] atkbd serio0: Unknown key pressed (translated set 2, code 0x85 on isa0060/serio0).
[ 2736.262355] atkbd serio0: Use 'setkeycodes e005 <keycode>' to make it known.
May be it should help to resolve this error
Zed (darkbroodzed) wrote : | #36 |
notebook hp x360 13-4002dx
new install 16.04
same issue "Notebook doesn't suspend when lid is closed"
adding HandleLidSwitch
If need more info for making proper fix - ask
Sebastien Bacher (seb128) wrote : | #37 |
Those who state that "HandleLidSwitc
Neil Woolford (neil-neilwoolford) wrote : | #38 |
Ok.
Commented out the HandleLidSwitch
Closed lid, waited a minute, the bug showed itself, the system did not suspend.
neilw@NWPS-
Who: Unity (UID 1000/neilw, PID 1463/compiz)
What: sleep
Why: Unity needs to lock the screen
Mode: delay
Who: neilw (UID 1000/neilw, PID 1448/unity-
What: handle-
Why: GNOME handling keypresses
Mode: block
Who: neilw (UID 1000/neilw, PID 1448/unity-
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
Who: Telepathy (UID 1000/neilw, PID 1729/mission-
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
Who: NetworkManager (UID 0/root, PID 2218/NetworkMan
What: sleep
Why: NetworkManager needs to turn off networks
Mode: delay
5 inhibitors listed.
neilw@NWPS-
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
LVDS connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1366x768 60.07*+ 40.04
1280x720 59.86
1152x768 59.78
1024x768 59.92
800x600 59.86
848x480 59.66
720x480 59.71
640x480 59.38
HDMI-0 disconnected (normal left inverted right x axis y axis)
VGA-0 disconnected (normal left inverted right x axis y axis)
neilw@NWPS-
SESSION UID USER SEAT
c2 1000 neilw seat0
1 sessions listed.
Neil Woolford (neil-neilwoolford) wrote : | #39 |
I've reinstated the workaround and run the requested commands again.
As far as I can see, the output of all three is exactly the same as in the bug condition, apart from the items in the inhibitors list being shown in a different order.
Sebastien Bacher (seb128) wrote : | #40 |
hum, could you get in the buggy state, run a "sleep 10; systemd-inhibit", close the lid, wait until the 10s are over, open it back and see what that listed? it could be that one of the processes delaying suspend is
Changed in systemd (Ubuntu): | |
status: | Incomplete → New |
Changed in systemd (Ubuntu): | |
status: | New → Confirmed |
55 comments hidden Loading more comments | view all 135 comments |
Dan Palmer-Bancel (dan-palmer-bancel) wrote : | #96 |
Apologies, I misread the above fix (it's been a long day!) :-/
HandleLidSwitch
fixes the issue on 16.10 as well on my HP (not XP!) Spectre x360.
Fans came on for a minute or two after resume but have since stopped.
Ryan C. Underwood (nemesis-icequake) wrote : | #97 |
Still happens on 16.10 on a HP Pavilion 15 (Skylake i5-6300HQ, Intel 530, Nvidia 950M).
HandleLidSwitch
However, it has the undesirable side effect of suspending when an external monitor is attached to the HDMI port (driven by the NVidia chip).
In the latter case, the system also fails to resume from suspend, leaving only a black screen. I'd be willing to believe that this particular case is due to bugs in the nouveau driver. But the system should not be suspending when there is an external display attached in any case - this appears to be systemd policy overriding GNOME policy.
Catch (catch22tb) wrote : | #98 |
This occured to me today, seemingly after no update for changes made to my laptop. I fixed in in the following way. Hope this helps someone...
What did not work: Running the latest update, installing kernel 4.8.x or 4.4.25, or any of the fixes you can find doing a google search for kubuntu 16.04 suspend. I had finally tried a commond line common pm-suspend, which caused the laptop to freeze and then freeze on booting.
I have dell vostro 3500 laptop.
What worked: I reinstalled the kubuntu 16.04.1 base. I have a separate /home partition so that was not effected by the reinstall (i didn't format it. just specified to mount /home in the install setup).
reinstall was fast. After install finished, I also ran the update... to kernel 4.4.0-62-generic. I did not test the suspend here. I installed powernap and cpufreq, then rebooted. Later I closed the lid and the computer suspended. All set and it works fine.
Not sure what was the exact problem was or the fix.
Catch (catch22tb) wrote : | #99 |
More on this, adding to my comment above... My computer ceases its ability to suspend again, without any updated etc. There was a notice that a program had crashed yesterday evening, but the computer suspended fine. This morning I noticed there was no sound (the speaker icon was red in kubuntu 16.04 task bar) and kwin-x11 was at 100% cpu. rebooting did not fix this.
I reinstalled pulseaudio, and cpufreqd cpufreuutil and rebooted. All fixed agin with sounds and suspend.
Damian Serrano Thode (dsthode) wrote : | #100 |
HP Pavilion g6 here.
After upgrading the past month from 14.04 to 16.04, I was also affected by this bug, where with 14.04 I closed the lid and my laptop suspended as it should.
I tried to set HandleLidSwitch
Today I upgraded from 16.04 to 16.10 and it was all the same, closing the lid of my laptop does not suspend it.
Reading the comments on this thread, I added HandleLidSwitch
jgm (jogama) wrote : | #101 |
- journal.txt Edit (192.5 KiB, text/plain)
Lenovo T450s with Intel graphics suffering from this bug. Suspend does indeed work from my session indicator, however.
Updated kernel from 4.4 to 4.8, nothing happened. Uncommented HandleLidSwitch
- Can you please copy&paste the output of "systemd-inhibit" in a situation where closing the lid does not do anything?
- After a lid close/open without suspend, please do "sudo journalctl -b > /tmp/journal.txt" and attach /tmp/journal.txt here.
jgm (jogama) wrote : | #102 |
- ran "sudo journalctl -b > /tmp/journal.txt" after closing/opening lid. Edit (192.5 KiB, text/plain)
Please help? The usual fixes haven't worked for me.
Lenovo T450s with Intel graphics suffering from this bug. Suspend does indeed work from my session indicator, however.
Updated kernel from 4.4 to 4.8, nothing happened. Uncommented HandleLidSwitch
$ systemd-inhibit
Who: Unity (UID 1000/jogama, PID 3944/compiz)
What: sleep
Why: Unity needs to lock the screen
Mode: delay
Who: NetworkManager (UID 0/root, PID 1103/NetworkMan
What: sleep
Why: NetworkManager needs to turn off networks
Mode: delay
Who: jogama (UID 1000/jogama, PID 3680/unity-
What: handle-
Why: GNOME handling keypresses
Mode: block
Who: jogama (UID 1000/jogama, PID 3680/unity-
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
4 inhibitors listed.
Carlo (carlo-b) wrote : | #103 |
Just FYI I posted this https:/
Hope it helps.
Alf HP Lund (alf-c) wrote : | #104 |
Ubuntu Studio 16.04 on Toshiba Satellite p850
Regardless of settings in power manager or logind.conf, machine will not suspend on lid close. It will turn off the screen, though.
Suspend from menu, command or power button works.
Lid state is reported correct (cat /proc/acpi/
However, as described here: https:/
Menahem Julien Raccah Lisei (menajrl) wrote : | #105 |
Neither HandleLidSwitch, nor HandleLidSwitch
The machine neither suspends on lid down, nor does it prompt me for a password on lid up.
Bob (caltinay) wrote : | #106 |
I have the same issue on a HP ZBook G3 running Debian with the 4.11 kernel from experimental and after reading comment #103 I tried
rmmod hp_wmi
and this fixed it!
So hopefully an updated kernel will fix it properly with that driver loaded.
Kai-Heng Feng (kaihengfeng) wrote : | #107 |
I think there are two ongoing patches are going to address this, maybe worth a try:
One is from Benjamin Tissoires:
https:/
Another one is from Lv Zheng:
https:/
zaharmd (zaharmd) wrote : | #108 |
HP EliteBook 840 G3, Xubuntu 17.04
Workaround by - rmmod hp_wmi
Benjamin Halbrock (kontakt-bennis-blog) wrote : | #109 |
HP ProBook 440 G4, fix in #108 works for me, but I'm not sure what the purpose of this module is and if it is save to blacklist.
dmesg also has some strange keycode on closing and opening the lid (see #38)
[ 750.004558] atkbd serio0: Unknown key pressed (translated set 2, code 0x85 on isa0060/serio0).
[ 750.004569] atkbd serio0: Use 'setkeycodes e005 <keycode>' to make it known.
Benjamin Halbrock (kontakt-bennis-blog) wrote : | #110 |
quick update to #109
adding HandleLidSwitch
/etc/systemd/
is also working
Kai-Heng Feng (kaihengfeng) wrote : | #111 |
Please try latest mainline kernel - Carlo's patches are included.
Bob (caltinay) wrote : | #112 |
Updated to 4.12.2 (from Debian experimental) and the issue is resolved on my HP ZBook G3.
Ilja Polivanovas (ilja-polivanovas) wrote : | #113 |
Using 17.04 Gnome,
Kernel 4.10.0-28-generic
Problem is still here on Dell XPS 13 (9350).
Neither of this has no effect:
HandleLidSwitch
HandleLidSwitch
PC still runnning after lid is closed. However lid state is reported correctly.
$ sleep 5; cat /proc/acpi/
state: closed
Ilja Polivanovas (ilja-polivanovas) wrote : | #114 |
Ok Sorry for misleading report on #113.
It actually works, however the problem was with Tweak tool setting which silently adds autostart script preventing notebook to suspend on lid closed regardless settings in /etc/systemd/
More: https:/
Bill Duetschler (bikergeek) wrote : | #115 |
HP 450 G3 laptop here, just a few days old. Adding the "HandleLidSwitc
Bill Duetschler (bikergeek) wrote : | #116 |
Looks like I misspoke, adding "HandleLidSwitc
Bill Duetschler (bikergeek) wrote : | #117 |
Installing the "pm-utils" package--which for some reason wasn't installed on a fresh install of Ubuntu 17.04--fixed it, along with altering my /etc/systemd/
HandleSuspendKe
HandleHibernate
HandleLidSwitch
HandleLidSwitch
And now everything works.
Carlos Gomes (gocarlos) wrote : | #118 |
My Thinkpad P51 is also affected by this bug.
Gnome tweak tools is set to suspend on lid close, but nothing happens.
Carlos Gomes (gocarlos) wrote : | #119 |
Most important information: I'm using ubuntu 18.04, fresh install
Anders Ellenshøj Andersen (andersa-ellenshoej) wrote : | #120 |
Kubuntu 18.04 on Zenbook Pro UX550VE. Also doesn't work. Tried all the suggestions like installing pm-utils and modifying logind.conf. Nothing has helped.
Josh Hill (ingenium) wrote : | #121 |
I'm experiencing this issue after upgrading from 16.04 to 18.04 on a Thinkpad T460p.
I have set the following in /etc/systemd/
HandleSuspendKe
HandleHibernate
HandleLidSwitch
HandleLidSwitch
journalctl shows "systemd-
My laptop is in a docking station and also has an external monitor connected.
Josh Hill (ingenium) wrote : | #122 |
One other note, it appears that gsd-power might be blocking the suspend:
josh@josh-
Who: gdm (UID 147/gdm, PID 3040/gsd-power)
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
Who: NetworkManager (UID 0/root, PID 1524/NetworkMan
What: sleep
Why: NetworkManager needs to turn off networks
Mode: delay
Who: josh (UID 1000/josh, PID 20754/gsd-power)
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
Who: gdm (UID 147/gdm, PID 3037/gsd-
What: sleep
Why: GNOME handling keypresses
Mode: delay
Who: Telepathy (UID 1000/josh, PID 4930/mission-
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
Who: josh (UID 1000/josh, PID 20754/gsd-power)
What: handle-lid-switch
Why: Multiple displays attached
Mode: block
Who: gdm (UID 147/gdm, PID 3040/gsd-power)
What: handle-lid-switch
Why: Multiple displays attached
Mode: block
Who: gdm (UID 147/gdm, PID 3037/gsd-
What: handle-
Why: GNOME handling keypresses
Mode: block
Who: josh (UID 1000/josh, PID 20741/gsd-
What: handle-
Why: GNOME handling keypresses
Mode: block
Who: UPower (UID 0/root, PID 2813/upowerd)
What: sleep
Why: Pause device polling
Mode: delay
Who: ModemManager (UID 0/root, PID 1466/ModemManager)
What: sleep
Why: ModemManager needs to reset devices
Mode: delay
Who: josh (UID 1000/josh, PID 20741/gsd-
What: sleep
Why: GNOME handling keypresses
Mode: delay
Who: GNOME Shell (UID 1000/josh, PID 20651/gnome-shell)
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
13 inhibitors listed.
And this related bug https:/
In the gnome power settings, on 16.04 there was a toggle to have it perform suspend with the lid closed while docked or while an external monitor was connected. That option is now gone.
Cornelius (7-cornelius) wrote : | #123 |
Same on dell precision with nvidia Quadro M1000M:
# systemd-inhibit --list --mode=block
Who: gdm (UID 128/gdm, PID 5533/gsd-
What: handle-
Why: GNOME handling keypresses
Mode: block
Who: dirmeier (UID 1001/dirmeier, PID 6669/gsd-
What: handle-
Why: GNOME handling keypresses
Mode: block
Who: gdm (UID 128/gdm, PID 5548/gsd-power)
What: handle-lid-switch
Why: Multiple displays attached
Mode: block
Who: dirmeier (UID 1001/dirmeier, PID 6605/gsd-power)
What: handle-lid-switch
Why: Multiple displays attached
Mode: block
4 inhibitors listed.
But I have only my laptop open without any monitor attached.
So maybe it is not a bug in systemd?
mike-g2 (mikeg-utk) wrote : | #124 |
I have had this problem in the past and it reemerged on an upgrade from 16.04 to 18.04 and have resolved it. For me (Lenovo Yoga) the issue is with USB rewaking the machine.
The following fix worked for me.
1) Created file: /etc/systemd/
with following informaiton
[Unit]
Description="Make suspend ignore USB wake up."
[Service]
ExecStart=/bin/bash -c "echo XHC >> /proc/acpi/wakeup"
[Install]
WantedBy=
2) Created a symbolic link to above script in /etc/systemd/
3) Executed following commands
4) checked service was started with sudo systemctl status toggle.
Notes:
mike-g2 (mikeg-utk) wrote : | #125 |
I have had this problem in the past and it reemerged on an upgrade from 16.04 to 18.04 and have resolved it. For me (Lenovo Yoga) the issue is with USB rewaking the machine.
The following fix worked for me.
1) Created file: /etc/systemd/
with following informaiton
[Unit]
Description="Make suspend ignore USB wake up."
[Service]
ExecStart=/bin/bash -c "echo XHC >> /proc/acpi/wakeup"
[Install]
WantedBy=
2) Created a symbolic link to above script in /etc/systemd/
3) Executed following commands
4) checked service was started with
sudo systemctl status toggle.
5) Enable it on boot with
sudo systemctl enable toggle.
Last steps are based on
https:/
Shri (shriharikulkarni07) wrote : | #126 |
Happens with me too
Gaute (gaute-div) wrote : | #127 |
I have a similar problem on 18.04 on a Lenovo V330.
Suspend works fine without external monitor, but no matter what I do it's inhibited when its connected. I want it to suspend always.
$ grep -i lid /etc/systemd/
#HandleLidSwitc
HandleLidSwitch
#LidSwitchIgnor
$ dconf read /org/gnome/
true
$ systemd-inhibit --list --mode=block
<snip>
Who: gdm (UID 121/gdm, PID 5935/gsd-power)
What: handle-lid-switch
Why: Multiple displays attached
Mode: block
Who: gaute (UID 1000/gaute, PID 1713/gsd-power)
What: handle-lid-switch
Why: Multiple displays attached
Mode: block
Only the second of these goes away when monitor is unplugged, but lid close still works.
This is possibly due to a bug in gsd-power which is mentioned in the following guthub issues.
https:/
https:/
https:/
Jaime Hablutzel (hablutzel1-h) wrote : | #128 |
I'm experiencing the same that Gaute in Ubuntu 18.04.2 LTS: Suspending on closing the lid is only working without the external monitor connected, no matter what I try to configure.
tags: | added: eoan |
Launchpad Janitor (janitor) wrote : | #129 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in pm-utils (Ubuntu): | |
status: | New → Confirmed |
naisanza (naisanza) wrote : | #130 |
Same problem with Ubuntu 19.04 on Dell XPS 13 2-in-1 (2019)
Full Name (unusedusername) wrote : | #131 |
Same problem on Ubuntu 19.10 on HP 250 G7.
Tried editing logind.conf as per previous suggestions, but no combination solved the problem.
Tried installing pm-utils, which weren't installed (see #117), that didn't help either.
Tried turning off the automatic suspend and automatic blank screen in the Power settings, thinking that they might for whatever reason be interfering; no success.
Tried uncommenting InhibitDelayMaxSec, HoldoffTimeoutSec and LidSwitchIgnore
Closing the lid only blanks the screen (fans are running), even if I leave it for some time. Opening the lid turns the screen back on, but doesn't open up the login screen.
Besides the unsuccessful editing of logind.conf, the only other concurrent issue that I haven't found anyone else encountering, is that, in my case, closing the lid and then opening it also turns on Airplane mode, and then the next time I close it and open it, it turns the Airplane mode off.
As I often need a quick suspend, as a temporary workaround, I set it up so that the physical power button suspends it. This works as intended, without any problems, so instead of having to close the lid, I have to press the button, then close the lid. It's better than having to open the top right menu, press Alt and click suspend, then close the lid, every time, but I'd still like to solve the problem properly...
Bob (caltinay) wrote : | #132 |
@unusedusername I found a snippet somewhere that helped me do things when my lid is closed (or rather when the session is locked). Since your laptop switches to airplane mode something is detecting it so maybe this helps. Put this in a script and run it, then close lid and open lid. Do you get any output?
<snip>
#!/bin/sh
iface=org.
dbus-monitor --system --profile "type=signal,
while read type stamp sender dest path intf member; do
case "$member" in
*Lock)
date
echo LOCKED at $stamp ;;
*Unlock)
date
echo UNLOCKED at $stamp ;;
*)
esac
done
</snip>
If it works you could even insert a suspend command and run this in the background to avoid having to use the mouse.
MohammadAli (aliomidi) wrote : | #133 |
Same problem with Ubuntu 20.04.1 LTS on Asus N55sf laptop.
thinkpad (fellowsgarden) wrote : | #134 |
bump. thinkpad x1 5th gen carbon.
Changed in systemd (Ubuntu): | |
status: | Confirmed → Invalid |
status: | Invalid → Won't Fix |
status: | Won't Fix → Incomplete |
Nick Rosbrook (enr0n) wrote : | #135 |
This bug is stale, so marking Won't Fix for systemd. For any similar issues on newer releases/hardware, new bugs should be opened.
Changed in systemd (Ubuntu): | |
status: | Incomplete → Won't Fix |
Status changed to 'Confirmed' because the bug affects multiple users.