Losing internal keyboard after disconnection external one
Polytropon
freebsd at edvax.de
Sun Aug 24 10:05:04 UTC 2014
On Sun, 24 Aug 2014 17:46:50 +0800, Erich Dollansky wrote:
> Hi,
>
> On Sun, 24 Aug 2014 09:33:37 +0200
> Polytropon <freebsd at 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, ...
More information about the freebsd-questions
mailing list