On Sun, Jan 25, 2004 at 01:42:13PM +0100, Samuel Thibault wrote:
>Hi,
>
>It's been a while since I proposed this:
>
>Le mar 05 ao� 2003 23:09:13 GMT, Samuel Thibault a tapot� sur son clavier :
>> We are currently developping X access to braille devices thanks to
>> gnopernicus connected to the standard text console reader brltty,
>> through BrlAPI. But for this to work (avoid conflicts with text console
>> reading), we need to know on which VT the X server is running.
>> 
>> Currently, there is no way to get this information from the server: X11
>> protocol doesn't have any native request for this. Parsing the logfile
>> like this:
>> 
>> CONTROLVT="$(grep "using VT number" "/var/log/XFree86.$(echo "$DISPLAY" | sed -e 
>> "s/^.*::*\([0-9]*\).*$/\1/").log" | sed -e "s/^.*using VT number 
>> \([0-9]*\).*$/\1/")"
>> export CONTROLVT
>> 
>> in the .xinitrc/.xsession is quite reliable, but a bit hairy... Dave
>> proposed that it be recorded as a property, which is quite fine to my
>> mind. Could this be done before 4.3.0 ?
>> 
>> Just a reminder: the VT number is got from the os dependant part, for
>> instance lnx_init.c:90, which stores it in xf86Info.vtno. It is printed
>> in the log file (which is parsed in the ugly line above), and then never
>> used again. I've just checked in the latest cvs revision with grep
>> xf86InfoRec[^.] (and vtno, of course), only references to the
>> Documentation or the definition itself could be found, so
>> xf86InfoRec.vtno is really not given to anybody.

It is used in xfree86/common/xf86Events.c.

>And there has not been a single response. I can't think it be difficult
>to implement for anybody involved in xfree development. May anybody
>care ?

Most of us have long todo lists, so if you can come up with a
proposed patch, it is more likely that it will get done.

It should be straightforward to call xf86RegisterRootWindowProperty() with
the appropriate information at some point after xf86Info.vtno has been
initialised.  Some place after the xf86OpenConsole() call in InitOutput()
would probably work.

David
-- 
David Dawes
developer/release engineer                      The XFree86 Project
www.XFree86.org/~dawes
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to