Disabled screen lock in power manager, also sleep = never. This is on Debian Trixie with XFCE 4.20 on x11 without LinuxCNC. I don't touch the mouse and keyboard for 5 minutes and it blanks and locks. Totally locks me out if I was accessing it via vnc, it has to be locally unlocked before vnc can reconnect to the display but ssh still works.
I don't have screensaver installed at all. I installed screensaver on a friend's Trixie machine and screensaver's sleep settings seemed to work as advertised. My previous Bookworm install didn't have screensaver either but screen lock settings worked. I read something on Debian forums about more people with similar problems. I think it was here:
forums.debian.net/viewtopic.php?p=814969
xfce.org/about/tour
Enabled user autologin in /etc/lightdm/lightdm.conf so it logs me right to the desktop upon boot. That didn't seem to change anything with the screen blanking problem.
I can put up with it on the workstation for now, it would be a real problem on a cnc machine.
Even so, XFCE is my favorite desktop. It is similar to what Gnome was the first time I used Linux. Some years ago Gnome changed and completely lost my interest.