From owner-freebsd-questions@FreeBSD.ORG Mon Aug 25 03:00:03 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 34D775E8 for ; Mon, 25 Aug 2014 03:00:03 +0000 (UTC) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0B50C32C4 for ; Mon, 25 Aug 2014 03:00:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=yJW1fn/6q2zbXcDAjw9lVX/a6IIQRIG9JHrWzmmDZ9g=; b=bqDTn4XIy41uu+AKJXU+gKOmin8iPTFtMSzxY4E9G6jd3VrDn5lHeKzMy2C+Lk3wgXv7BsATYth5lNO5d9DcUrDQtIc18vC64mAvxjhrKUvpp85lw9e6sluT3Nv8JzRkoVDo7DYtYXWXGb2bHDb3XQO0d4JELaB+CxTJFEbnKNk=; Received: from [39.252.70.96] (port=19035 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1XLkVk-002JCo-2G; Sun, 24 Aug 2014 21:00:01 -0600 Date: Mon, 25 Aug 2014 10:59:53 +0800 From: Erich Dollansky To: Polytropon Subject: Re: Losing internal keyboard after disconnection external one Message-ID: <20140825105953.622e85d2@X220.alogt.com> In-Reply-To: <20140824120500.e0c1b36b.freebsd@edvax.de> References: <20140824112836.3e2b0c68@X220.alogt.com> <20140824093337.bd6df18d.freebsd@edvax.de> <20140824174650.1633674f@X220.alogt.com> <20140824120500.e0c1b36b.freebsd@edvax.de> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: 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: Mon, 25 Aug 2014 03:00:03 -0000 Hi, On Sun, 24 Aug 2014 12:05:00 +0200 Polytropon wrote: > On Sun, 24 Aug 2014 17:46:50 +0800, Erich Dollansky wrote: > > On Sun, 24 Aug 2014 09:33:37 +0200 > > Polytropon wrote: > > > > it is only there when X is running. > > Could it be a HAL problem? It's known to cause problems with > peripherials... ;-) > it looks like. > > > > > 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 of course, I did not think of this. Laptops will be the last devices with PS/2 keyboards. > 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 > kbd1 at kbdmux0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 > 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. > I do always tests with a new machine and then leave HAL either on of off depending on the outcome. This machine should have HAL enabled. Erich