I was using MATE but I installed xfce. When I select the suspend button a message appears saying suspend in 30 seconds. If I click suspend the screen locks. If I wait the system does not suspend. If I log in again an error message says suspend failed timeout reached.
There seem to be conflicting settings available for example in power management and in session management for lock before suspend. I tried using slim instead of lightdm but this has removed the suspend options. What I want is for the system to suspend to ram if it is left unattended, and to suspend to ram when I request it to do so, and in both cases to lock the screen so that it is locked on return from suspend. How do I do this with XFCE (4?) ?