Since the latest update of Arch repo, the
pam broke the system and I removed the file
.pam_environment. I had to make clean reinstall.
Observe that SDDM and i3lock-fancy’s xidlehook work perfectly. It used to suspend perfectly before the latest update. Now after the latest update, the problem is the SDDM which overwrote the xidlehook, did not suspend, but logged the session out instead of xidlehook.
I want to keep SDDM as the default login screen, but i3lock-fancy’s xidlehook as default lock screen and suspend.
After the suspend, the PC enters into xidlehook, and after a little inactivity, it enters into SDDM instead of xidlehook. I notice it did not suspend. When I wake up the computer and log in SDDM, all the apps were or the session was gone. It seems that SDDM did not suspend but logs out, it overwrites the xidlehook.
$ i3 --version i3 version 4.18.2 (2020-07-26) $ xidlehook --version xidlehook 0.9.1