API for finding out whether your X monitor is on the current VT

Tim Dijkstra newsuser at famdijkstra.org
Tue Jun 20 02:42:29 PDT 2006


On Mon, 19 Jun 2006 17:27:54 +0200
Samuel Thibault <samuel.thibault at ens-lyon.org> wrote:

> Tim Dijkstra, le Mon 19 Jun 2006 16:52:19 +0200, a écrit :
> > > You should be able to use the root window property XFree86_VT and
> > > the Linux fgconsole command to do it, not sure how to do it for
> > > remote clients, as calling fgconsole isn't probably possible.
> > 
> > Excuse my ignorance, but how can you get this property? With 
> > 'xprop -root XFree86_VT'? That doesn't seem to work here.
> 
> The XFree86_VT root property got added to the XFree86 X server
> starting from 4.4, and Xorg inherited it in 6.8.

Ah, right, should have checked versions. At work we run Cern Linux which
has XFree86 4.3.

grts Tim



More information about the xorg mailing list