[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#603767: gdm: starts on v8 instead of vt7

Le mercredi 17 novembre 2010 à 17:15 +0100, Mario 'BitKoenig' Holbe a
écrit :
> Well, to me, it does indeed appear to be a GDM bug: I can not reproduce
> this permanent VT allocation with either KDM, XDM or startx. The issue
> does only show up with GDM. And it does never show up when starting GDM
> the first time after boot, GDM needs to be stopped and started again for
> the issue to show up here on my systems.

Try the attached C code, it will show you what the kernel says, which is
what GDM bases its decisions upon.

The VT allocation code has not changed a single bit in gdm between the
lenny and squeeze versions. In gdm3 a very similar code is used, which
is why both behave the same in squeeze.

: :' :     “You would need to ask a lawyer if you don't know
`. `'       that a handshake of course makes a valid contract.”
  `-        --  J???rg Schilling
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <linux/vt.h>

int main (int argc, char ** argv)
 int fd,i;
 struct vt_stat vtstat;

 fd = open ("/dev/tty0", O_WRONLY|O_NOCTTY, 0);
 ioctl (fd, VT_GETSTATE, &vtstat);
 for (i=1; i<12; i++) {
   printf("tty%i %s\n", i, vtstat.v_state&(1<<i)?"busy":"free");

 return 0;

Reply to: