Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Dec 2004 09:13:16 +1030
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Norbert Koch <NKoch@demig.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: using two keyboards at the same time
Message-ID:  <20041215224316.GI862@wantadilla.lemis.com>
In-Reply-To: <000001c4e2c3$e22397a0$4801a8c0@ws-ew-3.W2KDEMIG>
References:  <000001c4e2c3$e22397a0$4801a8c0@ws-ew-3.W2KDEMIG>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

--Zlo2GrDIozf6aQFY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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@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.

--Zlo2GrDIozf6aQFY
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBwL4EIubykFB6QiMRAvgSAJ9KfEQRPQU5ATV6i2CShI8lEkXtWACffqtx
VcHmTRTo/H7PGOz5LBuJjz8=
=byMo
-----END PGP SIGNATURE-----

--Zlo2GrDIozf6aQFY--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20041215224316.GI862>