Last Updated on 2015-03-11.
“PC Remote” ( Xenta SE340D) is a quite popular, cheap remote control available at the moment. In some cases, e.g. when using OpenELEC on Raspberry Pi, it does not recognize key presses when it is plugged in before the boot process. After reconnecting USB, it works.
The following could help. It reconnects USB ports.
lspci | grep USB
echo -n “0000:xx:xx.x” | tee /sys/bus/pci/drivers/ehci-pci/unbind
echo -n “0000:xx:xx.x” | tee /sys/bus/pci/drivers/ehci-pci/bind
Add to autostart.sh
Example of autostart.sh:
#!/bin/sh sh -c 'echo 1-1.5 > /sys/bus/usb/drivers/usb/unbind' sleep 2 sh -c 'echo 1-1.5 > /sys/bus/usb/drivers/usb/bind'