x11/xscreensaver 2026Q1 locks and no login

Ramiro Aceves <[email protected]> Sat, 27 Jun 2026 22:50:17 +0200
Newsgroups gmane.os.netbsd.devel.pkgsrc.user,gmane.os.netbsd.general
Message-ID <[email protected]>
Hello,

pkgsrc 2026Q1 binaries.

netbsd-nuc$ pkgin se xscreensaver
xscreensaver-6.14nb1 = Screen saver and locker for the X window system


netbsd-nuc# uname -a
NetBSD netbsd-nuc.home 11.0_RC5 NetBSD 11.0_RC5 (GENERIC) #0: Tue Jun 16 15:48:07 UTC 2026  [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC amd64

netbsd-nuc$ xscreensaver &
[1] 12339
netbsd-nuc$ error: XDG_RUNTIME_DIR is invalid or not set in the environment.

xscreensaver does NOT show the splash screen and keeps running in the background ok.

When I issue the lock command:

netbsd-nuc$ xscreensaver-command --lock
xscreensaver-command: locking


Screen goes black but when moving mouse or keyboard it never returns to the login screen. I did pkill xscreensaver and I could return to my XFCE4 session.


netbsd-nuc$ error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
xscreensaver: 18:33:53: SIGTERM received while locked: exiting

SIGTERM is from pkill command I issued.


xscreensaver-demo works fine showing the different types of screensaver. If I choose one of them and run xscreensaver-command --lock, the animation works but
  I cannot unlock, unlocking screen never appears. I always must kill the xscreensaver command running in the background.


Thanks.
Ramiro.