Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Aug 2014 12:05:00 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Erich Dollansky <erichsfreebsdlist@alogt.com>
Cc:        freebsd-questions@freebsd.org
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 24 Aug 2014 17:46:50 +0800, Erich Dollansky wrote:
> Hi,
> 
> On Sun, 24 Aug 2014 09:33:37 +0200
> Polytropon <freebsd@edvax.de> wrote:
> 
> > On Sun, 24 Aug 2014 11:28:36 +0800, Erich Dollansky wrote:
> > > XConsole says when connecting the external keyboard:
> > > 
> > > <GASIA product 0x0022, class 0/0, rev 1.10/2.10, addr 1> on usbus1
> > > kbd2 at ukbd0
> > > <GASIA> on usbus1
> > > 
> > > and when disconnecting it:
> > > 
> > > ugen1.2: <GASIA> at usbus1 (disconnected)
> > > at uhub1, port 3, addr 1 (disconnected)
> > > at uhub1, port 3, addr 1 (disconnected)
> > > ugen0.5: <GASIA> 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: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
	atkbd0: <AT Keyboard> 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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140824120500.e0c1b36b.freebsd>