From owner-cvs-all@FreeBSD.ORG Thu Dec 29 21:24:52 2005 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 570A016A420 for ; Thu, 29 Dec 2005 21:24:52 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11E5243D46 for ; Thu, 29 Dec 2005 21:24:50 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by nproxy.gmail.com with SMTP id l36so661411nfa for ; Thu, 29 Dec 2005 13:24:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ls+WIze4o7eJLQ6KHLA8Hh2JfZFq3Y3rpkLHJOLFxuU5sor8IRHInzrg79sU55MaG7i0svr5jRaj3EdpLjfKzXTR2EqI9WA3yT38D7oTbi5sntm9PEw25QansFMhEBjh1uwBbV1KNBScye9sC/KopeXjCul5Zd0QSNv2e7ML+zs= Received: by 10.49.63.14 with SMTP id q14mr239483nfk; Thu, 29 Dec 2005 13:24:49 -0800 (PST) Received: by 10.48.127.10 with HTTP; Thu, 29 Dec 2005 13:24:49 -0800 (PST) Message-ID: Date: Thu, 29 Dec 2005 13:24:49 -0800 From: Maksim Yevmenkin To: Maxim Sobolev In-Reply-To: <200512292011.jBTKBkVa073791@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200512292011.jBTKBkVa073791@repoman.freebsd.org> Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.sbin/kbdcontrol kbdcontrol.1 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 21:24:52 -0000 Maxim, > sobomax 2005-12-29 20:11:46 UTC > > FreeBSD src repository > > Modified files: > usr.sbin/kbdcontrol kbdcontrol.1 > Log: > Reveal sacred spells necessary for putting kbdmux(4) to real use. > > Hopefully gods of RTFS and RTFCL will not go after me. > > Revision Changes Path > 1.39 +15 -0 src/usr.sbin/kbdcontrol/kbdcontrol.1 thanks for doing this! unfortunately, the sequence of command you have put into the man page not entirely correct. it will work, if you do all the commands from the scripts and do it fast enough. note that syscons(4) will try to grab the first available keyboard when it does not have one, and, the first thing you do is to release current keyboard. there is a better way to do it. syscons(4) supports KBADDKBD and KBRELKBD ioctl(2)s, so you could do (assuming atkbd0 is the default keyboard) # kbdcontrol -a ukbd0 < /dev/kbdmux0 -- attach ukbd0 to kbdmux0 # kbdcontrol -k /dev/kbdmux0 < /dev/ttyv0 -- switch console to kbdmux0/ukb0 # kbdcontrol -a atkbd0 < /dev/ttyv0 -- add atkbd0 to kbdmux0 i still cant figure out why my system locks up in X when i use kbdmux(4)/atkbd(4) and psm(4). my only guess that kbdmux(4) somehow changes order of evens and atkbd(4) and/or psm(4) access ps2 hardware in the wrong way. thanks, max