From owner-freebsd-questions@FreeBSD.ORG Fri Oct 14 01:02:34 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 0EB8F16A41F for ; Fri, 14 Oct 2005 01:02:34 +0000 (GMT) (envelope-from grog@lemis.com) Received: from ext-gw.lemis.com (ext-gw.lemis.com [150.101.14.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6807343D45 for ; Fri, 14 Oct 2005 01:02:33 +0000 (GMT) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by ext-gw.lemis.com (Postfix) with ESMTP id A7A92131D5D; Fri, 14 Oct 2005 10:32:31 +0930 (CST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 8757D84F89; Fri, 14 Oct 2005 10:32:31 +0930 (CST) Date: Fri, 14 Oct 2005 10:32:31 +0930 From: Greg 'groggy' Lehey To: Rob Message-ID: <20051014010231.GD49168@wantadilla.lemis.com> References: <20051013212144.90087.qmail@web36215.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RBwhyBAm9PDPRYWT" Content-Disposition: inline In-Reply-To: <20051013212144.90087.qmail@web36215.mail.mud.yahoo.com> 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 Subject: Re: 2 keyboards, 2 mice, 2 monitors with 1 PC; possible? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 01:02:34 -0000 --RBwhyBAm9PDPRYWT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thursday, 13 October 2005 at 14:21:44 -0700, Rob wrote: > > I'm using 5-Stable right now. > > I wonder if FreeBSD allows me to have two independent users working > on the same PC, by using two monitors, two keyboards and two mice, > all connected to a single PC. > > xorg supports dual-head, which could be > a starting point. > > But how about the keyboards and mice? > Should that be one keyboard/mouse pair as PS/2, > and a second pair as USB? How would that > be detected and controlled? > > Is such a setup supported by the FreeBSD kernel? > Has someone tried this? I've certainly used multiple monitors, multiple mice and a single keyboard in a single user environment, and that works fine. I've also run multiple X servers on the same machine. X configuration allows you to specify which device to use. The only part I'm hazy about is how to map the keyboard definition to hardware devices. Looking at /dev, however, I see: crw------- 1 root wheel 3, 63 Sep 11 15:52 /dev/kbd0 crw------- 1 root wheel 3, 31 Sep 11 15:52 /dev/sysmouse I just tried plugging in a USB keyboard and got this: crw------- 1 root wheel 3, 63 Sep 11 15:52 /dev/kbd0 crw------- 1 root wheel 3, 195 Sep 11 15:52 /dev/kbd1 crw------- 1 root wheel 3, 31 Sep 11 15:52 /dev/sysmouse (yes, the date *must* be wrong). This looks very promising, but as long as it was plugged in, X only responded to /dev/kbd1. When I disconnected it, /dev/kbd0 responded again. So possibly there's some issue with the keyboard mapping. 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. --RBwhyBAm9PDPRYWT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDTwOnIubykFB6QiMRAksuAJ9NT0DXUs4VaiS6+gJCVEy7kixi+wCgp1+T qPLmTAh+xKXTXS9Yn8Uzew4= =5fPc -----END PGP SIGNATURE----- --RBwhyBAm9PDPRYWT--