My primary suspect is my pam / systemd setup.

If I am on X, and I ctrl+alt+f1, I switch to a terminal. ps aux shows
that all my programs are still running. However, if I alt+f7 back, the
X server immediately dies and I get sent back to my login prompt.

Clearly I'm missing something important. Any clues what it is?

I'm on USE=systemd, and my /etc/pam.d/system-auth has a session line
with optional pam_systemd.

My logind.conf is as follows:
=== snip
[Login]
#NAutoVTs=6
#ReserveVT=6
KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#Controllers=
#ResetControllers=cpu
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
===/snip
--
This email is:    [ ] actionable   [ ] fyi        [ ] social
Response needed:  [ ] yes          [ ] up to you  [ ] no
Time-sensitive:   [ ] immediate    [ ] soon       [ ] none

Reply via email to