Hi,
I've noticed this issue for sometime now. I was hoping one
of the Xorg updates would fix it, so finally I decided to
read some man pages, specifically sessreg.
Evidently the Xservers path is not correct (or has changed)
in OBSD's install. No longer found at:
/usr/X11R6/lib/X11/xdm/Xservers
is at:
/etc/X11/xdm/Xservers
[pre-patch]
Log into X using xdm, then log out. Alt+Ctrl+F1 login and
run last as such:
$ last -5
sidster : Tue Jan 13 12:01 still logged in
sidster ttyC0 Sat Jan 10 16:35 still logged in
reboot ~ Sat Jan 10 16:35
shutdown ~ Sat Jan 10 16:34
root ttyC0 Sat Jan 10 16:28 - shutdown (00:06)
[post-patch below (loally modified files)]
Same procedure as above:
$ last -5
sidster : Tue Jan 13 13:23 - 13:24 (00:00)
sidster : Tue Jan 13 12:01 - 13:23 (01:22)
sidster ttyC0 Sat Jan 10 16:35 still logged in
reboot ~ Sat Jan 10 16:35
shutdown ~ Sat Jan 10 16:34
This is on:
kern.version=OpenBSD 5.7-beta (GENERIC) #701: Sat Jan 10 07:52:06 MST 2015
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC
Index: GiveConsole
===================================================================
RCS file: /cvs/obsd/xenocara/app/xdm/config/GiveConsole,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 GiveConsole
--- GiveConsole 18 Nov 2013 20:39:48 -0000 1.4
+++ GiveConsole 13 Jan 2015 21:26:24 -0000
@@ -11,4 +11,4 @@ chown $USER /dev/console
if [ -c /dev/drm0 ]; then
chown $USER /dev/drm0
fi
-/usr/X11R6/bin/sessreg -a -l $DISPLAY -u none -x
/usr/X11R6/lib/X11/xdm/Xservers $USER
+/usr/X11R6/bin/sessreg -a -l $DISPLAY -u none -x /etc/X11/xdm/Xservers $USER
Index: TakeConsole
===================================================================
RCS file: /cvs/obsd/xenocara/app/xdm/config/TakeConsole,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 TakeConsole
--- TakeConsole 18 Nov 2013 20:39:48 -0000 1.4
+++ TakeConsole 13 Jan 2015 21:26:24 -0000
@@ -8,4 +8,4 @@ chown root /dev/console
if [ -c /dev/drm0 ]; then
chown root /dev/drm0
fi
-/usr/X11R6/bin/sessreg -d -l $DISPLAY -u /var/run/utmp -x
/usr/X11R6/lib/X11/xdm/Xservers $USER
+/usr/X11R6/bin/sessreg -d -l $DISPLAY -u /var/run/utmp -x
/etc/X11/xdm/Xservers $USER