There is an issue still in 133, where when you plug a USB keyboard or mouse,
while logged in as non-root, the device will not be usable by Xorg any more
(since Xorg changes effective UID to the logged in user, not root)

The Belkin USB KVM (at least my one) essentially "unplugs" the keyboard & mouse
when switching away from a machine, and then plugs it in again when switching to
a machine.

The problem is that the ownership of the device isn't always changed to the user
currently logged in, and as such when Xorg tries to use it, and load a streams
module on it, it still fails.

I've worked around this issue - by having a loop like:

while true
do
    chown myuser:mygroup /dev/usb/hid*
done

running when plugging in the keyboard.

Of course I only run this for short times, since it chews the CPU, but to do
otherwise won't guarantee the ownership change - since Xorg might reach quicker
than I can change it.

The bug is:

        http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6881952

Darren.


On 03/ 1/10 02:27 AM, Vincent R Wang wrote:
> Lars Tunkrans wrote:
> 
>> Hi
>>
>>   I am presently  running    a SUN  type 6  keyboard  USB attached  to the   
>> Nvidia  MCP 78S  chipset 
>> USB port. 
>>
>>  I have  The Belkin  FLIP   DVI + USB    KVM   and is switching bettween the 
>> Opensolairs  B133   system 
>> and another  PC thats  running windows. 
>>
>>  More often than not  when I return  to the Opensolaris PC  with a KVM 
>> switch.  the keyboard is stuck.  The mouse works  but keybord input does 
>> not. 
>>
>>  Is it possible to  enhance the keyboard driver in Opensolaris  so that it  
>> retries  a  Failed keyboard 
>>  connection every 30  seconds  or so,  
>>
>>  Obviolusly when  I KVM switch away from the OpenSolaris PC  the keyboard is 
>> no longer 
>>  available to the driver.  So I would like the driver to try to reconnect.  
>> with  "long"  intervals
>>  15 to 30 seconds or so. 
>>
>>  As  it is now the only  remediy seems to be a remote login  to the 
>> opensolaris  box and then 
>>  killing the  session ( console ) with the  failed  keyboard connection 
>>  
>>
> 
> By "killing the session (console)" do you mean restarting Xorg? There's 
> a keyboard driver in Xorg, but when running the text console it is the 
> kernel keyboard driver (hid). Which driver do you think has the problem? 
> To test the hid driver you may login to the text console and try 
> switching the kvm.
> 
> Vincent
> _______________________________________________
> driver-usb mailing list
> driver-usb at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/driver-usb

Reply via email to