Re: yet more on dual_headed svgalib support

Search this archive.

From: Matan Ziv-Av (matan@svgalib.org)
Date: Mon 26 Jun 2000 - 23:34:24 IDT


> Primarily I want to use the first display for standard input and display. I
> want to use the second for display only. Do you see any problems with that?

No, providing the program you use does not expect input. If it does
expect input, and you run with the novccontrol option (necessary for
secondary display), it might fail very early. I don't yet know exactly
why, or what kind of input causes that.

> Also in case I might want to use the second display for input as well would
> you explain how the association between keyboard and display is made? That
> is how is the first display associated with your normal
> keyboard and the second display associated with the keyboard through
> the PS2 port?

The kernel does not know about the second keyboard. I run a user mode
program I wrote that reads the keyboard (from /dev/psaux) and sends the
keys to a vc of my choice. Then I run an svgalib program (that uses
getch, not raw mode) on that vc with the novccontrol option, and the
secondary display. Then I can switch away, and the program still runs,
and gets its input from the second keyboard, while the main keyboard and
display can use any other vc, including X, or other svgalib programs.


-- 
Matan Ziv-Av.                         matan@svgalib.org


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST