I have an xiaomi mi android tv box.
I have a usb dongle mini keyboard connected to it. When i first plug in the dongle into the mi box the keyboard works fine.
But after it goes to sleep, if i stop using it for a few minutes. i can't get the keyboard to work unless i take the usb dongle out and reconnect it to the box.
I'm thinking the power supply to the usb dongle is somehow going to sleep and not turning back on again, unless i pull it out and plug it back in
Is there a way to fix this? I can't seem ti find an option in settings to leave it on permanently.
Xiaomi Mi Box cuts down power supply to the USB port when it goes to sleep/Suspend mode. Therefore, it does not realize that it has a USB adapter connected to it when wakes up from sleep. You can side load the Wakelock app from the link below and Enable "Processor" and "Wi-Fi normal" in Wakelock to see if that helps. I was having the same issue with a USB Ethernet adapter/HUB.
https://github.com/d4rken/wakelock-revamp/releases