From owner-freebsd-questions@FreeBSD.ORG Mon Jan 6 19:31:38 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 87BCC7B2 for ; Mon, 6 Jan 2014 19:31:38 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 492C6131F for ; Mon, 6 Jan 2014 19:31:37 +0000 (UTC) Received: from r56.edvax.de (port-92-195-149-155.dynamic.qsc.de [92.195.149.155]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id B27E13CE1E; Mon, 6 Jan 2014 20:31:35 +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 s06JVCH7003226; Mon, 6 Jan 2014 20:31:12 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Mon, 6 Jan 2014 20:31:12 +0100 From: Polytropon To: "Christopher J. Ruwe" Subject: Re: Logitech unifying receivers and keyboard ordering (ukbd0/1) Message-Id: <20140106203112.d5fbc6a7.freebsd@edvax.de> In-Reply-To: <20140106192049.1e62a580@dijkstra.cruwe.de> References: <20140106192049.1e62a580@dijkstra.cruwe.de> 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 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jan 2014 19:31:38 -0000 On Mon, 6 Jan 2014 19:20:49 +0100, Christopher J. Ruwe wrote: > I am sorry, I know that my question has been addressed quite recently, > but I cannot find the post, I do not know why. > > I have a Logitech mouse with unifying Bluetooth receiver and a > keyboard attached by USB "wire". When I boot with both devices > attached, the non-existent keyboard unifying Bluetooth attached > keyboard becomes ukbd0 and the "wired" ukbd1. Accordingly, my real > keyboard does not work on either syscons as well as X11 and I cannot > type on the non-existent. > > What I would like to have the "wired2 and "real" keyboard to attach to > ukbd0 and if that must be the non-existent to ukbd1. What I do now is > to unplug the Bluetooth dongle when booting to ensure that ordering. I > usually forget that on first boot, though, ensuring my first rush of > wild swearing each morning. Depending on your kernel konfiguration, there may be two options: First, the kbdmux component should enable all detected keyboards to work "in parallel", so switching from one to another is not needed, especially if one of them doesn't even exist. A typical situation is when an AT keyboard (PS/2 keyboard connector) and a USB keyboard (USB connector) are present. Then, there's the kbdcontrol program that allows switching key- boards. This program can be called by devd to perform the required action when the USB keyboard is present (or not present). As I don't own any BT hardware, I can't be more specific on how this kind of keyboard will be represented to the OS, sorry. See "man kbdmux" and "man kbdcontrol" for details. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...