Disable automatic screen lock in XFCE in Centos
ps aux | grep screen
revealed that gnome-screensaver
was running.
whereis gnome-screensaver
found it in /usr/bin
(among other places).
Also in /usr/bin/
was gnome-screensaver-preferences
Solution: run /usr/bin/gnome-screensaver-preferences
and uncheck "Lock screen when screensaver is active". Optionally uncheck "Activate screensaver when computer is idle".
Is gnome-screensaver listed and ticked in Applications, settings, session and startup, application autostart? If so, untick it to stop it from starting.
If you don't have the Session and startup menu, you can do same thing checking for a gnome-screensaver file in the autostart directory. $HOME/.config/autostart
Try checking whether there is an active gconf setting that sets gnome-screensaver to start. Per the xscreensaver manual, a
gconftool-2 --type boolean -s /apps/gnome_settings_daemon/screensaver/start_screensaver false
command stops gnome-screensaver from starting. This means that if you want to see the current setting, you may want to try `
gconftool-2 -g /apps/gnome_settings_daemon/screensaver/start_screensaver
using '-g' instead of '-s' to get instead of set.