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

Samuel Thibault samuel.thibault at ens-lyon.org
Mon Jun 19 08:27:54 PDT 2006


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.

On my laptop with Xorg 7.0, xprop -root XFree86_VT returns 
XFree86_VT(INTEGER) = 7
as appropriate.

Samuel



More information about the xorg mailing list