I run Debian Jessie on my laptop, without Desktop Enviroment. (just awesomeWM as windowmanager)
I played with xdm in the past, but at the time decided that I didn't like it. Now, when I install it, xdm restarts right after login. Output of tail /var/log/xdm.log:
➜ ~ tail /var/log/xdm.log
(==) Log file: "/var/log/Xorg.0.log", Time: Mon May 30 17:44:11 2016
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Mon May 30 17:44:13 2016 xdm info (pid 6734): sourcing /etc/X11/xdm/Xsetup
Mon May 30 17:44:14 2016 xdm info (pid 6734): sourcing /etc/X11/xdm/Xstartup
Mon May 30 17:44:14 2016 xdm info (pid 6746): executing session /etc/X11/xdm/Xsession
/etc/X11/xdm/Xsession: 17: /etc/X11/Xsession: fold: not found
Mon May 30 17:44:14 2016 xdm info (pid 6734): sourcing /etc/X11/xdm/Xreset
Mon May 30 17:44:14 2016 xdm info (pid 6720): Starting X server on :0
Mon May 30 17:44:16 2016 xdm info (pid 6758): sourcing /etc/X11/xdm/Xsetup
(II) AIGLX: Suspending AIGLX clients for VT switch
I tried creating a test user and login with that, same results, so the problem is system wide. X11 functions when just calling 'startx' from the virtual console.
Any advice how to solve this?