Microsoft All-in-One Media Keyboard stops working after around 2 mins

Hi!

I 'm trying to use a Microsoft All In One Media Keyboard (https://www.microsoft.com/hardware/pl-pl/p/all-in-one-media-keyboard) with a VirtualHere USB server running on a TP-LINK TL-WR1043ND. It works for around 2 mins, and then just stops responding. In the server log, I found the following entries:
Sat Jul 25 22:47:44 2015 kern.info kernel: [268974.090000] usb 1-1.4: new full-speed USB device number 17 using ehci-platform
Sat Jul 25 22:47:44 2015 user.info vhusbdmipssf: Found Full speed device [5e04:0008] "Microsoft, Microsoft® Nano Transceiver v2.0" at address 114
Sat Jul 25 22:47:44 2015 kern.info kernel: [268974.580000] usb 1-1.4: reset full-speed USB device number 17 using ehci-platform
Sat Jul 25 22:47:44 2015 user.info vhusbdmipssf: Device 114 BOUND to connection 3
-- snip --
Sat Jul 25 22:50:24 2015 user.warn vhusbdmipssf: Warning, discard urb(0xd5cd90) for device 5e04/0008 failed, error 22 (Invalid argument)
Sat Jul 25 22:50:24 2015 user.warn vhusbdmipssf: Warning, discard urb(0xd424a0) for device 5e04/0008 failed, error 22 (Invalid argument)
Sat Jul 25 22:50:24 2015 user.warn vhusbdmipssf: Warning, discard urb(0xd5e670) for device 5e04/0008 failed, error 22 (Invalid argument)
Sat Jul 25 22:50:24 2015 user.warn vhusbdmipssf: Warning, discard urb(0xd5e630) for device 5e04/0008 failed, error 22 (Invalid argument)
Sat Jul 25 22:50:24 2015 user.warn vhusbdmipssf: Warning, discard urb(0xd711c0) for device 5e04/0008 failed, error 22 (Invalid argument)
Sat Jul 25 22:50:24 2015 user.warn vhusbdmipssf: Warning, discard urb(0xd71350) for device 5e04/0008 failed, error 22 (Invalid argument)

The keyboard works flawlessly with direct connection (in fact I'm typing this post on it).

Server version: 2.3.9 running on TP-LINK TL-WR1043ND with Barrier Breaker (kernel 3.10.49)
Client version: 3.0.4 running on Windows 8.1 Pro 64 bit

Thanks in advance for quick reply,

Michal

Hi Michael,

it's a v1 (Atheros AR9132@400MHz) - big endian, soft float. I can try to run upgrade the ROM on the device to Chaos Calmer (kernel 3.18). Would that help in any way?

Thanks in advance for as always, excellent support,

Michal

#5

ok i found some endian swapping issues for big endian devices (little endian are fine) in my server. I will make a fix and post the new build. I tested on my big endian router but it was really slow, im not sure if its my router...anyway when i post the new version ill let you know...

Hi Michael!

unfortunately, this one also does not work. This time, the keyboard stops working right away, not after 2 mins as before:


Thu Jul 30 21:16:35 2015 user.info vhusbdmipssf: >>> Starting v2.4.0 (Built: Jul 29 2015, 20:01:46)<<<
Thu Jul 30 21:16:35 2015 user.info vhusbdmipssf: Using configuration /etc/vhub/config.ini
Thu Jul 30 21:16:35 2015 user.info vhusbdmipssf: Server licensed to=0023cd19bfe8 max_devices=unlimited
Thu Jul 30 21:16:35 2015 user.info vhusbdmipssf: Using large URB's
Thu Jul 30 21:16:35 2015 user.debug vhusbdmipssf: TCPServer starting...
Thu Jul 30 21:16:35 2015 user.info vhusbdmipssf: Listening on all network interfaces at port 7575
Thu Jul 30 21:16:36 2015 user.info vhusbdmipssf: Found Full speed device [5e04:0008] "Microsoft, Microsoft® Nano Transceiver v2.0" at address 111
Thu Jul 30 21:16:36 2015 user.info vhusbdmipssf: Found High speed device [3009:4465] " , USB Flash Memory" at address 112
Thu Jul 30 21:16:36 2015 user.debug vhusbdmipssf: TCPServer (7575) started
Thu Jul 30 21:16:36 2015 user.info vhusbdmipssf: Found Low speed device [fc04:d805] "MLK, TRACER EXCLUSIVE" at address 113
Thu Jul 30 21:16:36 2015 user.debug vhusbdmipssf: Warning, could not open device product file /sys/bus/usb/devices/1-1.4/product, error 2 (No such file or directory)
Thu Jul 30 21:16:36 2015 user.info vhusbdmipssf: Found Full speed device [120a:0100] "0x0a12, 0x0001" at address 114
Thu Jul 30 21:16:51 2015 user.debug vhusbdmipssf: 172.21.1.6 connected
Thu Jul 30 21:16:51 2015 user.info vhusbdmipssf: Device 111 BOUND to connection 1
Thu Jul 30 21:16:51 2015 user.info vhusbdmipssf: Device 113 BOUND to connection 1
Thu Jul 30 21:16:52 2015 user.info vhusbdmipssf: Device 114 BOUND to connection 1
Thu Jul 30 21:16:58 2015 user.warn vhusbdmipssf: Warning, discard urb(0xbde7f0) for device 5e04/0008 failed, error 22 (Invalid argument)
Thu Jul 30 21:16:58 2015 user.warn vhusbdmipssf: Warning, discard urb(0xc033e0) for device 5e04/0008 failed, error 22 (Invalid argument)
Thu Jul 30 21:16:58 2015 user.warn vhusbdmipssf: Warning, discard urb(0xbe1990) for device 5e04/0008 failed, error 22 (Invalid argument)
Thu Jul 30 21:16:58 2015 user.warn vhusbdmipssf: Warning, discard urb(0xbe1b60) for device 5e04/0008 failed, error 22 (Invalid argument)
Thu Jul 30 21:16:58 2015 user.warn vhusbdmipssf: Warning, discard urb(0xc03470) for device 5e04/0008 failed, error 22 (Invalid argument)
Thu Jul 30 21:16:58 2015 user.warn vhusbdmipssf: Warning, discard urb(0xc03600) for device 5e04/0008 failed, error 22 (Invalid argument)
Thu Jul 30 21:17:23 2015 user.warn vhusbdmipssf: Warning, discard urb(0xbdeca0) for device fc04/d805 failed, error 22 (Invalid argument)
Thu Jul 30 21:17:23 2015 user.warn vhusbdmipssf: Warning, discard urb(0xbdf4c0) for device fc04/d805 failed, error 22 (Invalid argument)
Thu Jul 30 21:17:23 2015 user.warn vhusbdmipssf: Warning, discard urb(0xbdf630) for device fc04/d805 failed, error 22 (Invalid argument)
Thu Jul 30 21:17:23 2015 user.warn vhusbdmipssf: Warning, discard urb(0xbde680) for device fc04/d805 failed, error 22 (Invalid argument)
Thu Jul 30 21:17:32 2015 user.debug vhusbdmipssf: Warning, failed to send MSG_SIZE to connection 1, error 32 (Broken pipe)
Thu Jul 30 21:17:36 2015 user.debug vhusbdmipssf: Removing connection 1 (timeout)...
Thu Jul 30 21:17:36 2015 user.info vhusbdmipssf: Device 111 UNBOUND from connection 1
Thu Jul 30 21:17:36 2015 user.info vhusbdmipssf: Device 113 UNBOUND from connection 1
Thu Jul 30 21:17:36 2015 user.info vhusbdmipssf: Device 114 UNBOUND from connection 1
Thu Jul 30 21:17:36 2015 user.info vhusbdmipssf: Connection 1 successfully removed
Thu Jul 30 21:17:42 2015 user.debug vhusbdmipssf: 172.21.1.6 connected
Thu Jul 30 21:17:43 2015 user.info vhusbdmipssf: Device 113 BOUND to connection 2
Thu Jul 30 21:17:43 2015 user.info vhusbdmipssf: Device 114 BOUND to connection 2
Thu Jul 30 21:18:04 2015 user.info vhusbdmipssf: Device 111 BOUND to connection 2
Thu Jul 30 21:18:06 2015 user.info vhusbdmipssf: Device 111 UNBOUND from connection 2
Thu Jul 30 21:18:08 2015 user.info vhusbdmipssf: Device 111 BOUND to connection 2
Thu Jul 30 21:18:14 2015 user.warn vhusbdmipssf: Warning, discard urb(0xbde810) for device 5e04/0008 failed, error 22 (Invalid argument)
Thu Jul 30 21:18:14 2015 user.warn vhusbdmipssf: Warning, discard urb(0xbc4100) for device 5e04/0008 failed, error 22 (Invalid argument)
Thu Jul 30 21:18:14 2015 user.warn vhusbdmipssf: Warning, discard urb(0xbc4230) for device 5e04/0008 failed, error 22 (Invalid argument)
Thu Jul 30 21:18:14 2015 user.warn vhusbdmipssf: Warning, discard urb(0xbc4400) for device 5e04/0008 failed, error 22 (Invalid argument)
Thu Jul 30 21:18:14 2015 user.warn vhusbdmipssf: Warning, discard urb(0xbf2be0) for device 5e04/0008 failed, error 22 (Invalid argument)
Thu Jul 30 21:18:14 2015 user.warn vhusbdmipssf: Warning, discard urb(0xc03510) for device 5e04/0008 failed, error 22 (Invalid argument)

An old Tracer keyboard + mouse combo works on both server versions.
I borrowed a v2 version of the router (with QCA9558@720MHz processor). I will check, if the same problems are present on it.

Regards,

Michal

In reply to by peaquino

#8

Hi again,

I tested the v2 versions (it's a big endian also BTW) -- same problems. I think these errors may be in some way related to power management -- as long as the keyboard is being used constantly from the plug-in of the receiver to the hub -- it works. A 1 min pause is enough to break things.

Hope that helps,

Michal

#9

Did you try with chaos calmer on the router? and virtualhere (download 2.4.0 from my website)

Yes, I did -- it didn't change antyhing. However, I was able to make the keyboard work by:

- installing drivers from MS site (that changed name of the keyboard device in "Device Manager" to "Microsoft Hardware Keyboard")
- disabling "Allow the computer to turn off this device to save power" in "Power Management" tab of the keyboard's device node

I remember doing something like this for my Bluetooth keyboard -- I thought that was a problem with my BT dongle, but it seems Windows is having problems with waking up devices connected indirectly to a VH server (for example a wired keyboard works like a charm).

I can try to debug these problems further, if you'll send me some instructions. BTW I'm running Windows as a KVM VM -- maybe this is causing problems?

Best regards,

Michal

#11

OK yeah virtualhere wont remotely powerdown a usb device if windows requests it so you the setting you changed in windows is correct.

By the way i made a cpu optimized version of virtualhere usb server for the 24Kc and 74Kc CPUs, i think it will provide a good performance improvement, my testing with a pi provided quite a speedup, ive yet to test with my 24Kc but i think there would definately be some performance improvement.

These optimized builds are now at https://www.virtualhere.com/usb_server_software

#12

In Media Center I usually use the remote control to navigate. This works perfectly, unless the keyboard is turned on (the keyboard is the new Microsoft All-in-One Media keyboard that was released last year, the remote control is an Anyware HA-IR01SV). Once I turn on the keyboard, both devices begin to act strangely. If I make a selection with the remote control, for example by clicking on the recorded TV button, the system enters that menu and then immediately returns to the previous menu (almost as if the system was receiving a second ClickEvent). If I turn off the keyboard, the remote control works perfectly. If I try to use the keyboard in Media Center, it will not allow me to select any menu, the Windows controls will not appear (close / minimize, the Media Center Start button, etc.), but the mouse pointer will appear and will continue as expected. If I leave Media Center, the keyboard works as expected, with one or two exceptions; If I try to use the trackpad (or the left click button) to click on the start button, the start menu appears and then disappears immediately (again, as if a second ClickEvent was sent). https://www.articledunia.net/success-microsoft-70-741-exam-updated-prac…