Red Hat Bugzilla – Bug 366981
ConsoleKit tries to find the console using keyboard ioctls that don't always work
Last modified: 2013-03-05 22:53:34 EST
Description of problem: ConsoleKit tries to find a valid fd it can issue
VT_WAITACTIVE against by iterating across a file list and issuing
ioctl(fd, KDGKBTYPE, &arg), then checking the return value. Not all console
devices support this ioctl, so in some cases it never finds a valid file
descriptor to use, and from then on never marks any session active.
We probably ought to be using something like VT_GETSTATE instead of a keyboard
ioctl, but that's not sufficient to fix it. One fix that seems to work, though
I'm not completely sure if it's the best answer, is to add /dev/tty0 to the list
of files to try before /dev/console.
I've attached a patch that seems to resolve the issue for me.
Created attachment 248391 [details]
patch to use VT_ETSTATE and tty0
*** This bug has been marked as a duplicate of 359361 ***