From owner-freebsd-questions@freebsd.org Wed Feb 17 16:44:21 2016 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 93BEFAAA1EC for ; Wed, 17 Feb 2016 16:44:21 +0000 (UTC) (envelope-from luislupe@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F3D951C8D for ; Wed, 17 Feb 2016 16:44:20 +0000 (UTC) (envelope-from luislupe@gmx.com) Received: from localhost ([95.95.94.35]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LiY3U-1ZxrSP3l7s-00cdal for ; Wed, 17 Feb 2016 17:44:18 +0100 Date: Wed, 17 Feb 2016 16:44:14 +0000 From: "Luis P. Mendes" To: freebsd-questions@FreeBSD.org Subject: kbdmux disabled --> no useable keyboard?! Message-ID: <20160217164414.GA73442@hp.tbl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Provags-ID: V03:K0:p9MRQdocnylasBxDRBjZSCRfmEtv/0MO2p1Qlh1zs57o3XRgrQn s9ZIz9/2fpb4NUorLXevK3ejEeucAZiE/b+064lSRgKy93fOeqg/5X4RzjG1fXoSLnxejRl wzWj2mr/qjQzWn92Bidap8LiLc3AwKpwhzJgoXgE4ueURzi+1xmxSWb2JszWGXObu8qVJCF jsYXPgAQY2lQadC4FUUgQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:CsMxvl7YdXg=:HNPQN5tp0NjKLX/K2fKSSV HXXWLxVzU+Esoh/VClmG6xOEv4QLTg/UUl8LAvsT98Ta5AvXRytJWOpkMCOuEvsEeTyTWDUqT wut9ph4oFCfGJe+0mfzWzMB9F0y9o8VjCIbmC1VKcwI5Qtu5XuCWHGY9/S5wZ89Beu+ZbM+No zduGnPLQR5Lo3aWNwp7llKsUYIdGUAwNvjkRNGNgwMXeepDlj60JhVlQ/DM+oNGGwXHzhY8B2 yTGMzOEkZtSyzjF7PXNhe8wzT7mp7ThV5IPB9pG73VB2pOiijqAp+VuoQEKivcMrYMXCXO6P3 3ZaoZj6+QzgYFXsRqEvJrzVXpbJYAiCp1BN9WIscY2GCXiSFki/xr6MHAlZ7pPECWVo6SIbpm XgSujtIgtQMcBSLrBKF3x4EpVJOc+2ku/TGRsN4dMYRUKkXl6phcPFMC+MThuA1pIh5lbQZbO Hja+uzu9ofceGaR73NpqEJ8tigwYepaM5MBeVgzgbowdwm8f4uLnFj1UQ/tpaGvMyTcO4qiuN Rzrreq5AqrgLj65aHxgI1AEad0y3jj2VOAjLB4vc9pi++tFYY0LYW+uyV6xiBHpq77lHGSSQY 8edm446msPUKVocgC/d4PkIkN4F0fvjF5lN8uqwP0FnziTFVTT9B2jeCcDEterB9/Qjv3H2gW YtshYRdp6h8Ti+eraZ99Ew3LID4mvkIi8h4xDoZYzBE9lxiq8xFj/4/F920cFgI5qUnPopwHe C8Le/nEZpBZlFXGi/4X269nVLnFarT7jYVCr+QrGQKC79tLEW82bP6EXo64= 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, 17 Feb 2016 16:44:21 -0000 (Due to change of hardware and OS I lost the original messages, but will paste the context) On 2015.11.25 Polytropon wrote: > 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. Only now, could I return to this project. The steps I've taken: 1. Have an USB keyboard attached to the motherboard. No serial keyboard used. 2. In /boot/loader.conf, have these lines added: ukbd_load="YES" hint.kbdmux.0.disabled="1" hint.atkbd.0.disabled="1" hint.atkbdc.0.disabled="1" 3. In /etc/rc.conf.local: kbdcontrol -k /dev/ukbd0 < /dev/console 4. In /var/log/messages, there are these lines: kernel: ukbd0: on usbus0 kernel: kbd0 at ukbd0 5. # ll /dev/uk* crw------- 1 root wheel 0x7f 15 Fev 22:39 /dev/ukbd0 6. # ls -l /dev/kb* lrwxr-xr-x 1 root wheel 5 15 Fev 22:39 /dev/kbd0 -> ukbd0 But I can't type anything in the (virtual) console. I'm not considering X yet. I don't understand what exactly is meant as example in the manual of kbdcontrol, so cannot find what is wrong with this. Would appreciate some help on this. Luis