Basically when the screen-saver gets triggered I see the screen saver but I’m unable to unlock the lock screen! Basically if I move the mouse or press a key I see the lock screen for half a second (I see that my input is registred in the password box) but after half second it returns to the screen saver! It’s so fast I can’t input my password…
Anyone have any clue on how to possibly fix this? Thanks
Anyone can help? I also tried installing the whole xfc4 system settings but not luck.
Maybe it’s related, but by installing xfc4 system settings on other distros I could see settings related to already installed packages, like xfce4 power manager or arandr… Now I get just an empty window
Hello again. Sorry for continuously posting but this is driving me crazy because I’m basically without a lockscreen. i3lock does not do it for me because it has an unresolved bug that when you wake from suspend the i3status bar is shown.
Please is someone able to advise on what to do? Thanks
Try setting security.pam.services.xfce4-screensaver.unixAuth = true; in your nixos config. (That’s what the xfce module sets)
My theory is that the screensaver is trying to initialize PAM to check your password, failing because it isn’t configured, and dropping out of the password entry mode.
Using i3-lock I had to enable the program like programs.i3lock.enable = true; instead of just adding the package, due to some not-so-clearly outlined changed in 25.05. Maybe you need to do something similar?
Finally!!! Thanks. I wonder why this option is not available on NixOS Search. Wonder how you found it.
services.xserver.desktopManager.xfce.enableScreensaver = true; this was the thing I tried but it wasn’t working at all. Your solutions works good. Thanks so much.
Also I would love to understand why xfce.xfce4-settings does not pick up already isntalled programs like “xfce4-power-manager” or “arandr”, these gets picked up by it on arch without having the full xfce installed
security.pam.services is an option of type attribute set of (submodule). The xfce-screensaver part is just the attribute name, so it wouldn’t really show up in search. You could put any string there and it would be a valid option.
So the option search lists the leaf option used here as security.pam.services.<name>.unixAuth.
One last question if you will. I have installed xscreensaver which is a collection of screensavers that can be used by xfce-screensaver. Why when I select xscreensaver as an option from xfce-screensaver I just get a black screen? Is there a way to make it work?
I think it’s because xfce4-screensaver tries to search for xscreensaver in the standard /bin/ folder, but being on nixos it does not find it. Same with xfce-preferences that does not find settings to apply.