using two keyboards at the same time

Greg 'groggy' Lehey grog at FreeBSD.org
Wed Dec 15 14:43:56 PST 2004


On Wednesday, 15 December 2004 at 17:34:01 +0100, Norbert Koch wrote:
> Hello.
>
> I know, the syscons driver does not allow to have
> two keyboards attached at the same time.
>
> So my idea was to have a userland application which polls the
> keyboard(s) currently _not_ attached to syscons using select(2) or
> poll(2).  From reading the source code under /sys/dev/kbd I thought
> this should work.
>
> I made this simple test: I attached syscons to /dev/kbd1 and ran
> "cat /dev/kbd0".  As expected I saw characters coming from both
> keyboards.

Interesting.  I can also confirm that it works with x2x
(/usr/ports/x11/x2x) when connected to a remote machine.  That
actually works for me now, though I can't see any good use for it.

> Then I wrote a program to do the selecting and switching.  Well, it
> does not work. Select never returns.  Does anyone have an idea?

Traditionally, select() doesn't work on all kinds of devices.  I'd
guess you've just found one that doesn't support select().

In any case, this is probably a question for
FreeBSD-hackers at FreeBSD.org.  You may get more (accurate) results
there.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20041216/0cb625a9/attachment.bin


More information about the freebsd-questions mailing list