On Tue, 03 Sep 2019 at 19:41:40 -0400, Trey Sizemore wrote: > One remaining issue is getting the screen to lock when the laptop lid is > closed and the laptop suspends. The screen does not lock and just resumes to > the XFCE4 desktop. > > I have the following in my .xsession: > > bsd$ cat .xsession > xidle -timeout 300 -program "/usr/local/bin/slock" & > > Any help greatly appreciated.
xidle locks on SIGUSR1, so you could send it such a signal upon suspend. With apmd enabled, add "pkill -USR1 xidle" to /etc/apm/suspend