Comment 57 for bug 544139

Revision history for this message
Lennie (lbesselink) wrote :

Aug 22 15:19:19 laptop console-kit-daemon[1110]: WARNING: input of ck_get_active_console_num: 3
Aug 22 15:19:19 laptop console-kit-daemon[1110]: WARNING: got an error: ioctl VT_GETSTATE
Aug 22 15:19:19 laptop console-kit-daemon[1110]: WARNING: Could not determine active console

When I have and it fails:

        g_warning ("input of ck_get_active_console_num: %d", console_fd);

        res = ioctl (console_fd, VT_GETSTATE, &stat);
        if (res == ERROR) {
                g_warning ("got an error: ioctl VT_GETSTATE");
                perror ("ioctl VT_GETSTATE");
                goto out;
        }

        {
                int i;

                g_warning ("Current VT: tty%d", stat.v_active);