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;
}
Aug 22 15:19:19 laptop console- kit-daemon[ 1110]: WARNING: input of ck_get_ active_ console_ num: 3 kit-daemon[ 1110]: WARNING: got an error: ioctl VT_GETSTATE kit-daemon[ 1110]: WARNING: Could not determine active console
Aug 22 15:19:19 laptop console-
Aug 22 15:19:19 laptop 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);
g_warning ("got an error: ioctl VT_GETSTATE");
perror ("ioctl VT_GETSTATE");
goto out;
if (res == ERROR) {
}
{
int i;