From owner-freebsd-questions@FreeBSD.ORG Fri Jan 13 22:19:22 2006 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 F1EE816A41F for ; Fri, 13 Jan 2006 22:19:21 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 222DA43D64 for ; Fri, 13 Jan 2006 22:19:14 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by uproxy.gmail.com with SMTP id o2so34666uge for ; Fri, 13 Jan 2006 14:19:14 -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=uI1MYP7rI10TEC1+S/DjUZbsJiyK3Cp7B3VHiafv3Wv4bar5J4CJ5B9L0DcmANBHtsocCFXzZ7pQ1mdFn43OgQZ9dV2OeJU3RfqL/OOrWIDefvDBNDYq/feE5naQbLfiLykjZwHUMqw/k3aa6EwKhG32AAyoy6qifKaFNXxf9qY= Received: by 10.49.88.19 with SMTP id q19mr99812nfl; Fri, 13 Jan 2006 14:19:13 -0800 (PST) Received: by 10.49.4.9 with HTTP; Fri, 13 Jan 2006 14:19:13 -0800 (PST) Message-ID: Date: Fri, 13 Jan 2006 14:19:13 -0800 From: Maksim Yevmenkin To: Eugeny Kuzakov In-Reply-To: <43C82162.40909@coredumped.org.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43C7DA71.5080609@coredumped.org.ru> <43C82162.40909@coredumped.org.ru> Cc: freebsd-questions@freebsd.org Subject: Re: kbdmux: unable to work with dual keyboard 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, 13 Jan 2006 22:19:22 -0000 > >no, its not the same as in your previous email. you got different > >error. did you run your script in console or xterm window? > > > >also, just to be on the safe side, you might want to replace > >/dev/console with /dev/ttyv0, i.e. > > kbdcontrol -K < /dev/ttyv0 > kbdcontrol -a ukbd0 < /dev/kbdmux0 > kbdcontrol -a atkbd0 < /dev/kbdmux0 > kbdcontrol -k /dev/kbdmux0 < /dev/ttyv0 > > output: > > root@coredumped:/add/home/coredumped/tmp$cat mmm.log > + kbdcontrol -K > kbd0 > atkbd0, type:AT 101/102 (2) > + kbdcontrol -a ukbd0 > kbdcontrol: unable to (un)mux the keyboard: Operation not supported by > device > kbd1 > kbdmux0, type:AT 101/102 (2) > + kbdcontrol -a atkbd0 > kbdcontrol: unable to (un)mux the keyboard: Operation not supported by > device > kbd1 > kbdmux0, type:AT 101/102 (2) > + kbdcontrol -k /dev/kbdmux0 > kbd1 > kbdmux0, type:AT 101/102 (2) > ---14-01-2006 00:53:15 well, you are doing something wrong. stupid questions: did you kldload kbdmux? is your userland and kernel in sync? i just tried beetle# uname -a FreeBSD beetle.digisle.com 7.0-CURRENT FreeBSD 7.0-CURRENT #47: Thu Jan 5 14:20:02 PST 2006 =20 max@beetle.digisle.com:/usr/obj/usr/src/sys/GENERIC i386 beetle# ls -la /dev/*kbd* crw------- 1 root wheel 0, 39 Jan 6 12:21 /dev/atkbd0 lrwxr-xr-x 1 root wheel 6 Dec 31 1969 /dev/kbd0 -> atkbd0 lrwxr-xr-x 1 root wheel 5 Jan 6 04:21 /dev/kbd1 -> ukbd0 lrwxr-xr-x 1 root wheel 7 Jan 13 09:46 /dev/kbd2 -> kbdmux0 crw------- 1 root wheel 0, 124 Jan 6 12:21 /dev/kbdmux0 crw------- 1 root wheel 0, 89 Jan 6 12:21 /dev/ukbd0 beetle# cat k.sh #!/bin/sh -x kbdcontrol -K < /dev/ttyv0 kbdcontrol -a atkbd0 < /dev/kbdmux0 kbdcontrol -a ukbd0 < /dev/kbdmux0 kbdcontrol -k /dev/kbdmux0 < /dev/ttyv0 beetle# sh -x k.sh + kbdcontrol -K kbd0 atkbd0, type:AT 101/102 (2) + kbdcontrol -a atkbd0 kbd2 kbdmux0, type:AT 101/102 (2) + kbdcontrol -a ukbd0 kbd2 kbdmux0, type:AT 101/102 (2) + kbdcontrol -k /dev/kbdmux0 kbd2 kbdmux0, type:AT 101/102 (2) and both keyboards work. you might want to try other way, i.e. 1) connect usb keyboard and make sure it is _NOT_ default, i.e. comment out ubkd section in /etc/devd.conf and restart devd 2) kbdcontrol -a ukbd0 < /dev/kbdmux0 -- this should add ukbd0 to kbdmux0 but it will _NOT_ switch the keyboards. 3) if (3) above was succesful, then kbdcontrol -k /dev/kbdmux0 < /dev/ttyv0 -- this should switch the keyboard to kbdmux0 (and ukbd0). it should also cut out atkbd0. 4) add atkbd0 to kbdmux0 kbdcontrol -a atkbd0 < /dev/ttyv0 if everything above worked then you should have both keyboards working. thanks, max