From owner-freebsd-questions@FreeBSD.ORG Wed Dec 15 22:43:55 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E575616A4CE for ; Wed, 15 Dec 2004 22:43:55 +0000 (GMT) Received: from blackwater.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FCB043D45 for ; Wed, 15 Dec 2004 22:43:53 +0000 (GMT) (envelope-from grog@lemis.com) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 40D8D85664; Thu, 16 Dec 2004 09:13:16 +1030 (CST) Date: Thu, 16 Dec 2004 09:13:16 +1030 From: Greg 'groggy' Lehey To: Norbert Koch Message-ID: <20041215224316.GI862@wantadilla.lemis.com> References: <000001c4e2c3$e22397a0$4801a8c0@ws-ew-3.W2KDEMIG> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Zlo2GrDIozf6aQFY" Content-Disposition: inline In-Reply-To: <000001c4e2c3$e22397a0$4801a8c0@ws-ew-3.W2KDEMIG> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: freebsd-questions@freebsd.org Subject: Re: using two keyboards at the same time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2004 22:43:56 -0000 --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--