Comment 16 for bug 40011

Revision history for this message
Erik Meitner (e.meitner) wrote :

I've created a workaround for this bug.

1. Copy the attached file to /usr/local/bin/
2. sudo chmod 755 /usr/local/bin/gdm_vt_fixer
3. Add the following to /etc/gdm/PostSession/Default before the "exit 0" command:
/usr/local/bin/gdm_vt_fixer &
4. Restart GDM or reboot.

The script will be run after a GDM session ends(a user logs out). It will wait five seconds and then check that the virtual terminal that is active is associated with an existing X session. If it is not, it will switch to a VT that is running the login window. If there is no login window it will switch to a VT of some existing X session.