On Tue, Sep 3, 2019, at 8:54 PM, joshua stein wrote: > 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 > >
Thank you. I should have said, I have the following: bsd# cat /etc/apm/suspend #!/bin/sh pkill -USR1 xidle and that file is executable.