In case we're taking over the console after a killed X server.
https://bugzilla.redhat.com/show_bug.cgi?id=771563
/* Disable exclusive mode, just in case */
ioctl(fd, TIOCNXCL);
/* Disable exclusive mode, just in case */
ioctl(fd, TIOCNXCL);
+ /* Switch to text mode */
+ ioctl(fd, KDSETMODE, KD_TEXT);
+
/* Enable console unicode mode */
ioctl(fd, KDSKBMODE, K_UNICODE);
/* Enable console unicode mode */
ioctl(fd, KDSKBMODE, K_UNICODE);