Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2013 03:14:41 -0800
From:      Yuri <yuri@rawbw.com>
To:        freebsd-usb@freebsd.org
Subject:   Re: Plugging out Microsoft Nano Tranceiver (USB mouse) causes PS2 keyboard to cease functioning
Message-ID:  <510900A1.5090208@rawbw.com>
In-Reply-To: <50F48D49.1060406@rawbw.com>
References:  <50F48D49.1060406@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I found the cause of this problem.

Due to the bug in Xorg it unloads the keyboard driver when it gets 
signal from hald that keyboard is disconnected, even though there is 
still another keyboard that is hooked up to kbdmux.
Looks like Xorg code assumes that there can only be one keyboard and 
isn't aware of kbdmux.

This was when hald is enabled (by default), and ServerFlags section in 
xorg.conf looked like this:
Section "ServerFlags"
Option "AllowEmptyInput" "yes"
EndSection

When I changed this section to this:
Section "ServerFlags"
Option "AutoAddDevices" "False"
EndSection
keyboard doesn't get affected, but mouse disappears for good when 
unplugged and plugged back, since (I guess) Xorg ignores ums0 device errors.

I filed the following PRs with Xorg:
https://bugs.freedesktop.org/show_bug.cgi?id=60069
https://bugs.freedesktop.org/show_bug.cgi?id=60070

Yuri



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?510900A1.5090208>