From owner-freebsd-questions@FreeBSD.ORG Sun Aug 24 10:05:04 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 CE941AF8 for ; Sun, 24 Aug 2014 10:05:04 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.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 902E23C9A for ; Sun, 24 Aug 2014 10:05:04 +0000 (UTC) Received: from r56.edvax.de (port-92-195-111-1.dynamic.qsc.de [92.195.111.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 7EEE22765E; Sun, 24 Aug 2014 12:05:00 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s7OA50D1004507; Sun, 24 Aug 2014 12:05:00 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 24 Aug 2014 12:05:00 +0200 From: Polytropon To: Erich Dollansky Subject: Re: Losing internal keyboard after disconnection external one Message-Id: <20140824120500.e0c1b36b.freebsd@edvax.de> In-Reply-To: <20140824174650.1633674f@X220.alogt.com> References: <20140824112836.3e2b0c68@X220.alogt.com> <20140824093337.bd6df18d.freebsd@edvax.de> <20140824174650.1633674f@X220.alogt.com> 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 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Aug 2014 10:05:04 -0000 On Sun, 24 Aug 2014 17:46:50 +0800, Erich Dollansky wrote: > Hi, > > On Sun, 24 Aug 2014 09:33:37 +0200 > Polytropon wrote: > > > On Sun, 24 Aug 2014 11:28:36 +0800, Erich Dollansky wrote: > > > XConsole says when connecting the external keyboard: > > > > > > on usbus1 > > > kbd2 at ukbd0 > > > on usbus1 > > > > > > and when disconnecting it: > > > > > > ugen1.2: at usbus1 (disconnected) > > > at uhub1, port 3, addr 1 (disconnected) > > > at uhub1, port 3, addr 1 (disconnected) > > > ugen0.5: at usbus0 > > > > > > This results in losing both the internal keyboard of the notebook > > > plus the disconnected one. When I reconnect the external one, all > > > works again. > > > > Is this problem only present in X, or does it also appear > > when you are in text mode? > > > it is only there when X is running. Could it be a HAL problem? It's known to cause problems with peripherials... ;-) > > What's strange about the system messages: "at uhub1, port 3, addr 1 > > (disconnected)" is appearing twice... > > > I think that this is the source of the problem. At some point both > keyboards are seen as the same and removed together. The error message refers to the same device. How is the laptop's keyboard represented? I thought it would have been a PS/2 keyboard, attached to atkbd, not a USB keyboard (as built-in pointing devices are often recognized as PS/2 mice, being represented as psm0, not ums0). Additionally, AT keyboards usually cannot be removed, as they are not hot-pluggable per definition, and in most cases, they aren't even detected - only the keyboard controller is. Can you "dmesg | grep kbd"? Example from my home system: atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 There is no keyboard connected, just a lonely HIL plug on the table. :-) The Sun Type 7 USB keyboard I'm actually using can be detached and re-attached in X without problems. If the IBM model M keyboard (can be connected to the HIL plug if needed) is present, it keeps working, no matter if another keyboard is attached or not. NB: I am using X without HAL. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...