Laptop can't suspend (closing lid/sleep button/terminal goes to login screen)

I noticed probably a month ago my laptop couldn’t go into suspend/sleep mode. A system update seemed to fix it but now the problem is back. As the title suggests, closing lid/sleep button/suspending from terminal goes to login screen
I did scour the forums Laptop is unable to sleep recently - casten Closing Lid in Linux Does not Send Sleep Signal - Gabriel_Woloz
and found out that it seemed to be something related to bugs in the upower package. I ended up removing the package and installed upower-git using yay. But the problem persists.

my setting


/etc/systemd/sleep.conf

[Sleep]
#AllowSuspend=yes
#AllowHibernation=yes
#AllowSuspendThenHibernate=yes
#AllowHybridSleep=yes
#SuspendMode=
#SuspendState=mem standby freeze
#HibernateMode=platform shutdown
#HibernateState=disk
#HybridSleepMode=suspend platform shutdown
#HybridSleepState=disk
#HibernateDelaySec=180min

/etc/systemd/logind.conf

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#UserStopDelaySec=10
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#HandleRebootKey=reboot
#HandleRebootKeyLongPress=poweroff
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#RebootKeyIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodesMax=400k
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192

What am I possibly missing here?

For some reason, it’s back to normal. Since around two days ago, my laptop can go into suspend mode again.
I think I figured out the cause of the problem
While this post suggests some peripherals to be responsible, I found that it was Steam that might be causing the problem
image
“Steam is currently blocking sleep and screen locking (Client interface)”

But now, the system can go into suspend mode regardless, even when the notification says that it is blocked. Or, by “sleep”, does it means the screen switching off? I’m not entirely sure. Weird. But I guess that’s Linux for you! I’ll take it any day