PS/2 clue
Jeff Weinstein
jsw at xhead.esd.sgi.com
Thu Mar 15 15:03:43 AEST 1990
In article <YZzaudq00VsWQYnF0U at andrew.cmu.edu>, gk5g+ at andrew.cmu.edu
(Gary Keim) writes:
> if (hftQFD<0) {
> tempfd = open("/dev/tty",O_WRONLY);
> if (tempfd<0) {
> ErrorF("Cannot open /dev/tty to query device id\n");
> return 0;
> }
> }
If I remember right the way this code works is if you specify
a display type on the command line that display is opened and
the code above is never executed. If you don't specify a
display type the server calls the above code to determine
what screen you ran X from. As you can see it opens /dev/tty,
and then trys to do an hft query on it. Unfortunately
xinit appears to dis-associate itself from the controlling
tty, so the open of /dev/tty fails.
The easiest way to solve this problem is to specify the display
type on the command line. Try one of the following depending
on what type of display you have:
xinit -- Xibm -vga
xinit -- Xibm -8514
Or, you could just start Xibm directly, not using xinit. Since
you have virtual terminals this shouldn't be much of a problem.
--Jeff
Jeff Weinstein - X Protocol Police
Silicon Graphics, Inc., Entry Systems Division, Window Systems
jsw at xhead.esd.sgi.com
Any opinions expressed above are mine, not sgi's.
More information about the Comp.unix.aix
mailing list