I have ctrl-alt-backspace enabled to terminate Xorg in an xorg.conf.d file:
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbOptions" "caps:super,terminate:ctrl_alt_bksp"
EndSection
This successfully kills the server and brings me back to the lightdm login screen. But after doing this I can't login anymore. After entering my credentials lightdm goes black for a second and then brings me back to the login screen.
I think the problem might be related to my encrypted home directory. After a reboot, if I login via a virtal console (ctrl-alt-F1) my home directory gets properly decrypted and mounted. If I stay logged in via the virtual console I can kill the X server and still login again in lightdm, presumably because my home directory didn't get unmounted (as I still had an active session open). But if I logout of the virtual console, killing the X server results in me not being able to login via lightdm and if I login using the virtual console my home directory doesn't get automatically unencrypted/mounted. According to the README that I see when my $HOME isn't mounted, I should be able to run ecryptfs-mount-private, but when I run that it exits immediately with an exit code of 0 and no error messages and it doesn't mount my home directory.
This is happening on Xubuntu 13.10.
I haven't found anything useful in any logs. Any tips on fixing this or diagnosing the problem would be appreciated.