You are not logged in.
Pages: 1
I have an Acer Swift 3 sf314-42, and I can't get it to suspend on lid close.
I have the following settings in my logind.conf file:
HandleLidSwitch=suspend
HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=suspend
It's running GNOME, and in the tweaks app, I have "Suspend when laptop lid is closed" enabled.
tlp is installed and enabled using the default settings.
Suspend on lid close works with Manjaro and Windows, so this isn't a hardware issue. Any ideas?
Offline
What gets logged in the journal when you close the lid?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Dec 23 11:58:30 laptop systemd-logind[410]: Lid closed.
Dec 23 11:58:31 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Dec 23 11:58:31 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Dec 23 11:58:31 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Dec 23 11:58:31 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Dec 23 11:58:31 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Dec 23 11:58:31 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Dec 23 11:58:31 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Dec 23 11:58:31 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Dec 23 11:58:31 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Dec 23 11:58:38 laptop systemd-logind[410]: Lid opened.
Dec 23 11:58:38 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Dec 23 11:58:38 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Dec 23 11:58:38 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Dec 23 11:58:38 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Dec 23 11:58:38 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Dec 23 11:58:38 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Dec 23 11:58:38 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Dec 23 11:58:38 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Dec 23 11:58:38 laptop gnome-shell[1358]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Last edited by harpium (2021-12-23 20:23:14)
Offline
Does removing TLP fix the problem?
What does this say
systemd-inhibit
Offline
check the logind.conf too
Offline
Does removing TLP fix the problem?
What does this say
systemd-inhibit
WHO UID USER PID COMM WHAT WHY MODE
ModemManager 0 root 499 ModemManager sleep ModemManager needs to reset devices delay
NetworkManager 0 root 423 NetworkManager sleep NetworkManager needs to turn off networks delay
GNOME Shell 1000 eric 1315 gnome-shell sleep GNOME needs to lock the screen delay
discord 1000 eric 1567 Discord sleep Application cleanup before suspend delay
eric 1000 eric 1501 gsd-media-keys handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling keypresses block
eric 1000 eric 1501 gsd-media-keys sleep GNOME handling keypresses delay
eric 1000 eric 1504 gsd-power sleep GNOME needs to lock the screen delay
slack 1000 eric 1520 slack sleep Application cleanup before suspend delay
8 inhibitors listed.
I've tried without TLP before and that doesn't fix it.
Offline
check the logind.conf too
Yup, I did on my first comment.
Offline
So does the laptop suspend at all?
Try
systemctl suspend
Or
# tee /sys/power/state <<!
mem
!
Offline
Yes, it does suspend when I use that command or click the power button. Actually, I just noticed that it does suspend on lid close while being charged but not when it's unplugged.
Offline
It looks like I didn't read the wiki carefully. There is a second file '/etc/systemd/logind.conf.d/*.conf' where I set 'HandleLidSwitch=suspend' and now it works as it should. Thanks for the help!
Offline
I joined because I wanted to say that post #10 solved this issue for me. Thank you!
Last edited by BenjaminNYC (2022-07-22 03:37:58)
Offline
Pages: 1