Not going in Standby by closing laptop lid

Hi,

laptop won’t go in standby when I close the lid, in power manager is everything configured. Can you suggest how to fix the issue?

Perhaps supply some usable information (inxi, logs, etc).

Which command should I run to get information?

https://discovery.endeavouros.com/forum-log-tool-options/how-to-include-systemlogs-in-your-post/2021/03/

I would also include:

journalctl | grep -i suspend

And a photo of your settings setup could be helpful too.

Sometimes the power manager is blocked by systemd so it may also be worth checking the output of:

systemd-inhibit --list

https://man.archlinux.org/man/systemd-inhibit.1.en

WHO UID USER PID COMM WHAT >
NetworkManager 0 root 408 NetworkManager sleep >
UPower 0 root 785 upowerd sleep >
xfce4-power-manager 1000 mikheil 846 xfce4-power-man handle-power-key:handle-suspend-key:handle-hib>
xfce4-screensaver 1000 mikheil 720 xfce4-screensav sleep

Jan 22 14:19:05 mikheil-82kd kernel: audit: type=1131 audit(1674382745.993:103): pid=1 uid=0 auid=4294967295 ses=4294967295 msg=‘unit=systemd-suspend comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 22 14:19:34 mikheil-82kd systemd-logind[349]: Suspending…
Jan 22 14:19:35 mikheil-82kd systemd[1]: Starting System Suspend…
Jan 22 14:19:35 mikheil-82kd systemd-sleep[2548]: Entering sleep state ‘suspend’…
Jan 22 14:19:35 mikheil-82kd kernel: PM: suspend entry (deep)
Jan 22 14:19:37 mikheil-82kd kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Jan 22 14:19:37 mikheil-82kd systemd[1]: systemd-suspend.service: Deactivated successfully.
Jan 22 14:19:37 mikheil-82kd kernel: PM: suspend exit
Jan 22 14:19:38 mikheil-82kd systemd[1]: Finished System Suspend.
Jan 22 14:19:38 mikheil-82kd audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg=‘unit=systemd-suspend comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 22 14:19:38 mikheil-82kd audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg=‘unit=systemd-suspend comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 22 14:19:38 mikheil-82kd systemd[1]: Reached target Suspend.
Jan 22 14:19:38 mikheil-82kd systemd[1]: Stopped target Suspend.
Jan 22 14:19:38 mikheil-82kd kernel: audit: type=1130 audit(1674382778.009:110): pid=1 uid=0 auid=4294967295 ses=4294967295 msg=‘unit=systemd-suspend comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 22 14:19:38 mikheil-82kd kernel: audit: type=1131 audit(1674382778.009:111): pid=1 uid=0 auid=4294967295 ses=4294967295 msg=‘unit=systemd-suspend comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 22 14:20:06 mikheil-82kd systemd-logind[349]: Suspending…
Jan 22 14:20:07 mikheil-82kd systemd[1]: Starting System Suspend…
Jan 22 14:20:07 mikheil-82kd systemd-sleep[2573]: Entering sleep state ‘suspend’…
Jan 22 14:20:07 mikheil-82kd kernel: PM: suspend entry (deep)
Jan 22 14:20:09 mikheil-82kd kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Jan 22 14:20:09 mikheil-82kd systemd[1]: systemd-suspend.service: Deactivated successfully.
Jan 22 14:20:09 mikheil-82kd kernel: PM: suspend exit
Jan 22 14:20:10 mikheil-82kd systemd[1]: Finished System Suspend.
Jan 22 14:20:10 mikheil-82kd audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg=‘unit=systemd-suspend comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 22 14:20:10 mikheil-82kd audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg=‘unit=systemd-suspend comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 22 14:20:10 mikheil-82kd systemd[1]: Reached target Suspend.
Jan 22 14:20:10 mikheil-82kd systemd[1]: Stopped target Suspend.
Jan 22 14:20:10 mikheil-82kd kernel: audit: type=1130 audit(1674382810.009:118): pid=1 uid=0 auid=4294967295 ses=4294967295 msg=‘unit=systemd-suspend comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 22 14:20:10 mikheil-82kd kernel: audit: type=1131 audit(1674382810.009:119): pid=1 uid=0 auid=4294967295 ses=4294967295 msg=‘unit=systemd-suspend comm=“systemd” exe=“/usr/lib/systemd/systemd” hostname=? addr=? terminal=? res=success’
Jan 22 16:41:54 mikheil-82kd kernel: nvme 0000:03:00.0: platform quirk: setting simple suspend
Jan 22 18:59:14 mikheil-82kd kernel: nvme 0000:03:00.0: platform quirk: setting simple suspend

Hmm, this list doesn’t mention ‘handle-lid-switch’ anywhere so nothing blocking it, I guess something is waking the system up from suspend with the lid closed.

I can’t see the mode entries for the list, are NetworkManager, Upower and the screensaver set to delay rather than block?