• Losing keyboard on kvm switch

    From Ted Nolan @21:1/5 to All on Thu Jul 23 15:18:16 2020
    I have my 12.1 box connected to a KVM switch which duplexes the keyboard,
    mouse and display between the FreeBSD system and a Win10 system.

    I find that when I switch to the windows box, it always sees the keyboard,
    but when I switch back to the FreeBSD box, it often looses the keyboard and
    I have to switch back to the windows box and back again several times before
    it will pick it up. I also find that doing keyboard activity during the
    switch back to FreeBSD makes it more likely that BSD will pick it up, but definitely not 100%.

    Is there some kind of harmless background probe I could run on the BSD box
    say every 10 seconds to check if there is a keyboard there? My (unverified) assumption is that switching the KVM back to BSD doesn't generate whatever
    USB signal is sent when you actually plug a new keyboard in so if it decided there was no keyboard during the time it was connected to windows, it won't correct that.

    Anyway, not a big deal, but a minor annoyance. It probably doesn't help
    that I am using a big-barrel keyboard through a ps/2 adapter into a USB adaptor..
    --
    columbiaclosings.com
    What's not in Columbia anymore..

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ted Nolan @21:1/5 to John D Groenveld on Thu Jul 23 19:02:58 2020
    In article <oRkSG.107917$hQ4.22108@fx39.iad>,
    John D Groenveld <groenveld@acm.org> wrote:
    In article <hnto1oFru7nU1@mid.individual.net>,
    Ted Nolan <tednolan> <tednolan> wrote:
    Is there some kind of harmless background probe I could run on the BSD box >>say every 10 seconds to check if there is a keyboard there? My (unverified) >>assumption is that switching the KVM back to BSD doesn't generate whatever >>USB signal is sent when you actually plug a new keyboard in so if it decided >>there was no keyboard during the time it was connected to windows, it won't >>correct that.

    How does the KVM and keyboard appear to FreeBSD when working correctly?

    # usbconfig list
    # usbconfig show_ifdrv

    John
    groenveld@acm.org

    # usbconfig list
    ugen6.1: <ATI EHCI root HUB> at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
    ugen3.1: <ATI EHCI root HUB> at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
    ugen5.1: <ATI OHCI root HUB> at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
    ugen1.1: <ATI EHCI root HUB> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
    ugen0.1: <ATI OHCI root HUB> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
    ugen4.1: <ATI OHCI root HUB> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
    ugen2.1: <ATI OHCI root HUB> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
    ugen1.5: <Generic USB2.0-CRW> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
    ugen1.2: <vendor 0x1a40 USB 2.0 Hub> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
    ugen1.3: <Logitech USB-PS/2 Optical Mouse> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (98mA)
    ugen1.4: <vendor 0x0d3d USBPS2> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)

    # usbconfig show_ifdrv
    ugen6.1: <ATI EHCI root HUB> at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
    ugen6.1.0: uhub0: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> ugen3.1: <ATI EHCI root HUB> at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
    ugen3.1.0: uhub1: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> ugen5.1: <ATI OHCI root HUB> at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
    ugen5.1.0: uhub2: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> ugen1.1: <ATI EHCI root HUB> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
    ugen1.1.0: uhub3: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> ugen0.1: <ATI OHCI root HUB> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
    ugen0.1.0: uhub4: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> ugen4.1: <ATI OHCI root HUB> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
    ugen4.1.0: uhub5: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> ugen2.1: <ATI OHCI root HUB> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
    ugen2.1.0: uhub6: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> ugen1.5: <Generic USB2.0-CRW> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
    ugen1.5.0: umass0: <Bulk-In, Bulk-Out, Interface>
    ugen1.2: <vendor 0x1a40 USB 2.0 Hub> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
    ugen1.2.0: uhub7: <vendor 0x1a40 USB 2.0 Hub, class 9/0, rev 2.00/1.11, addr 2> ugen1.3: <Logitech USB-PS/2 Optical Mouse> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (98mA)
    ugen1.3.0: ums0: <Logitech USB-PS/2 Optical Mouse, class 0/0, rev 2.00/20.00, addr 3>
    ugen1.4: <vendor 0x0d3d USBPS2> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA)
    ugen1.4.0: ukbd0: <EP1>
    ugen1.4.1: ums1: <EP2>

    Hmm, "man ukbd" suggests maybe the kbdcontrol command which I haven't looked into might be useful..
    --
    columbiaclosings.com
    What's not in Columbia anymore..

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John D Groenveld@21:1/5 to All on Thu Jul 23 18:41:24 2020
    In article <hnto1oFru7nU1@mid.individual.net>,
    Ted Nolan <tednolan> <tednolan> wrote:
    Is there some kind of harmless background probe I could run on the BSD box >say every 10 seconds to check if there is a keyboard there? My (unverified) >assumption is that switching the KVM back to BSD doesn't generate whatever >USB signal is sent when you actually plug a new keyboard in so if it decided >there was no keyboard during the time it was connected to windows, it won't >correct that.

    How does the KVM and keyboard appear to FreeBSD when working correctly?

    # usbconfig list
    # usbconfig show_ifdrv

    John
    groenveld@acm.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John D Groenveld@21:1/5 to All on Thu Jul 23 19:47:29 2020
    In article <hnu572F43jU1@mid.individual.net>,
    Ted Nolan <tednolan> <tednolan> wrote:
    # usbconfig show_ifdrv
    [snip]
    ugen1.2: <vendor 0x1a40 USB 2.0 Hub> at usbus1, cfg=0 md=HOST spd=HIGH >(480Mbps) pwr=SAVE (100mA)
    ugen1.2.0: uhub7: <vendor 0x1a40 USB 2.0 Hub, class 9/0, rev 2.00/1.11, addr 2>
    ugen1.3: <Logitech USB-PS/2 Optical Mouse> at usbus1, cfg=0 md=HOST
    spd=LOW (1.5Mbps) pwr=ON (98mA)
    ugen1.3.0: ums0: <Logitech USB-PS/2 Optical Mouse, class 0/0, rev
    2.00/20.00, addr 3>
    ugen1.4: <vendor 0x0d3d USBPS2> at usbus1, cfg=0 md=HOST spd=LOW
    (1.5Mbps) pwr=ON (100mA)
    ugen1.4.0: ukbd0: <EP1>
    ugen1.4.1: ums1: <EP2>

    Hmm, "man ukbd" suggests maybe the kbdcontrol command which I haven't looked >into might be useful..

    Possibly test for ukbd0 and if not present, usbconfig -d ugen1.2 reset

    John
    groenveld@acm.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ted Nolan @21:1/5 to John D Groenveld on Thu Jul 23 20:46:48 2020
    In article <lPlSG.198549$eN2.187827@fx47.iad>,
    John D Groenveld <groenveld@acm.org> wrote:
    In article <hnu572F43jU1@mid.individual.net>,
    Ted Nolan <tednolan> <tednolan> wrote:
    # usbconfig show_ifdrv
    [snip]
    ugen1.2: <vendor 0x1a40 USB 2.0 Hub> at usbus1, cfg=0 md=HOST spd=HIGH >>(480Mbps) pwr=SAVE (100mA)
    ugen1.2.0: uhub7: <vendor 0x1a40 USB 2.0 Hub, class 9/0, rev 2.00/1.11, addr 2>
    ugen1.3: <Logitech USB-PS/2 Optical Mouse> at usbus1, cfg=0 md=HOST
    spd=LOW (1.5Mbps) pwr=ON (98mA)
    ugen1.3.0: ums0: <Logitech USB-PS/2 Optical Mouse, class 0/0, rev >>2.00/20.00, addr 3>
    ugen1.4: <vendor 0x0d3d USBPS2> at usbus1, cfg=0 md=HOST spd=LOW
    (1.5Mbps) pwr=ON (100mA)
    ugen1.4.0: ukbd0: <EP1>
    ugen1.4.1: ums1: <EP2>

    Hmm, "man ukbd" suggests maybe the kbdcontrol command which I haven't looked >>into might be useful..

    Possibly test for ukbd0 and if not present, usbconfig -d ugen1.2 reset

    John
    groenveld@acm.org

    Thanks, i'll give that a try when I have a chance to fiddle with it.
    --
    columbiaclosings.com
    What's not in Columbia anymore..

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)