[How-to] Xbox 360 Controller OSMC

First of all, thank you for the great guide! It was several times a huge help for me.

I recently changed from a wired Xbox 360 controller to a wireless one on a Pi 3 with Kodi 16.1, OSMC 2016.09-1, Linux kernel 4.4.16-6-osmc.
Since the new controller did not work properly on the old install, I reinstalled OSMC with the wireless controller only. However, the controller still looses connection periodically giving the “[ERROR] USBController::on_write_data(): USB write failure: 12: LIBUSB_TRANSFER_ERROR”.
The controller works again after a reboot, or resetting via a script (pkill xbox & sh start.sh) but logging into the Pi via SSH is always annoying. The moment of failure seems to me to be very randomly and appears to me to be not related to the wake up of the controller after the power saving mode. I did not blacklist xpad, since then the start.sh script stops during boot and without the rmmod line, the controller would (surprisingly) not work at all.

Any suggestions are greatly appreciated.