From owner-freebsd-questions@freebsd.org Wed Nov 25 11:30:35 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CA471A36235 for ; Wed, 25 Nov 2015 11:30:35 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8D9E519FB for ; Wed, 25 Nov 2015 11:30:34 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-76-245.dynamic.qsc.de [92.195.76.245]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 8D2933CDEB; Wed, 25 Nov 2015 12:30:25 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id tAPBUOd5002310; Wed, 25 Nov 2015 12:30:24 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 25 Nov 2015 12:30:24 +0100 From: Polytropon To: "Luis P. Mendes" Cc: freebsd-questions@freebsd.org Subject: Re: kbdmux disabled --> no useable keyboard?! Message-Id: <20151125123024.384c4aa1.freebsd@edvax.de> In-Reply-To: <20151124232356.GA24123@acer.home> References: <20151124232356.GA24123@acer.home> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Nov 2015 11:30:35 -0000 On Tue, 24 Nov 2015 23:23:56 +0000, Luis P. Mendes wrote: > Hi, > > I'm setting up a multiseat workstation, where two users, with two > monitors, two keyboards, two mice and two X sessions can be > connected to the same computer at the same time. > > For this to happen, one of the things that is necessary to do is to > disable kbdmux in order for the two keyboards to be considered > independent. > > In the past, I've accomplished this with syscon, which had other > problems. But now with vt, when I disable kbdmux either on > /boot/device.hints or in /boot/loader.conf with: > hint.kbdmux.0.disabled="1" > > No keys are recognized by the OS, although dmesg seems to know about > the existence of the USB keyboard. You need to manually transfer the control of one keyboard to the other - from the "active" to the "inactive" one (to become the "active" one). Use the kbdcontrol program to do this, "man kbdcontrol" has more information about the -k option. This of course only works when kbdmux is disabled. > So, I'm stuck on this. Is this an intended feature of kbdmux? Yes. When using kbdmux, both keyboards operate "in parallel", so you can use which ever you want, even key combinations across two keyboards are possible, for example, press Alt on AT keyboard, PF1 on USB keyboard - Alt+PF1! :-) > What > should I do to be able to use two keyboards (in X) independently, > and still be able to use one in the console. "Fortunately", X has its own automagic input device detection, which will probably shoot you in the foot. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...