Solved Connect Xiaomi Mi Box BT remotes to LibreELEC devices - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222) +--- Forum: Hardware (https://forum.kodi.tv/forumdisplay.php?fid=112) +--- Thread: Solved Connect Xiaomi Mi Box BT remotes to LibreELEC devices (/showthread.php?tid=317011) |
RE: [Solved] Xiaomi Mi Box BT remote and Raspberry Pi - Petzi - 2017-06-26 The one I bought from AliExpress was the genuine one, exactly the same as ashrafhumax (well ... may be a copy, one never can tell with chinese products). But it's Bluetooth, and hardened plastic (and the vendor ID in the BT communication is the Xiaomi one so...). About the same price as the one referenced by wrxtasy. I just had to press home&back for a few seconds to put the remote in discovery mode. I'll get another one for my second home theater once I get my Raspberry Pi Zero. RE: [Solved] Xiaomi Mi Box BT remote and Raspberry Pi - clarkss12 - 2017-07-11 (2017-06-24, 19:47)Petzi Wrote: Aaaaaaand I got it working. I finally received my Bluetooth remote that you suggested (nice remote for the price). LibreELEC finds it and as you says, it thinks it is a game pad and is listed in Chinese. I can not figure out your instructions, could you give a more detailed explanation, or better yet, make a YouTube video on how to do it. FYI, this remote works great on my generic Android boxes, running a modded version of the Android TV OS. Strangely, however, it will not connect to my Xiaomi Mi box. Thanks. FYI, I also received the $2 remote and as you said, it is IR, tested in on a couple of my Android boxes but did not work on them. Some of my Android boxes share the same remotes, even my HDMI switch shares one of my Android remotes, which is a real pain in the butt. I have to keep the HDMI switch covered with a towel when I use that particular Android box that is running my LibeELEC. This was the reason I purchased this Bluetooth remote. RE: [Solved] Xiaomi Mi Box BT remote and Raspberry Pi - zang - 2017-07-28 (2017-06-25, 18:46)wrxtasy Wrote: These BT remote's make great additions to the unofficial Android TV ROM's for the WeTek Hub & Play2. I know you work on Odroid C2 builds of LibreELEC; have you been able to get this to work on the C2? I've had zero luck getting either of the two XiaoMi BT remotes I have working with stock LE. If it's working on one of your builds, I'd switch to that. Or if you know what's keeping this from working on C2 LE (when it works on Ubuntu and Android on the same box), it'd be greatly appreciated. RE: [Solved] Xiaomi Mi Box BT remote and Raspberry Pi - Vlaves - 2017-09-10 I'm trying to get this Xiaomi remote running under Libreelec too, but I am struggleing to get the vid and pid from my bluetooth remote, so I can put it in the "51-these-are-not-joysticks-rm.rules" file. It connects as a Joystick/Gamepad in the libreelec bluetooth addon, but now reaction on key presses. So what do I need to put into over ssh, in the command line to get the vid and pid of my xiaomi bluetooth remote. Then maybe I will be able to continue with the described method from here in the thread. RE: [Solved] Xiaomi Mi Box BT remote and Raspberry Pi - ashrafhumax - 2017-09-10 Hi Vlaves Vendor=2717 ProdID=32B1 It works out of the box with LibreELEC-Generic.x86_64-8.0.2.img.gz Hope that will help you RE: [Solved] Xiaomi Mi Box BT remote and Raspberry Pi - Vlaves - 2017-09-11 (2017-09-10, 17:22)ashrafhumax Wrote: Hi Vlaves Thanks so much for the reply and your help. Hope that the vid and pid will match to my remote too. But in generell, how would I get the vid and pid from my remote in libreelec? Thanks again so much for your support here RE: [Solved] Xiaomi Mi Box BT remote and Raspberry Pi - ashrafhumax - 2017-09-11 I usually use kodi input log Please see the attached pictures RE: [Solved] Xiaomi Mi Box BT remote and Raspberry Pi - Vlaves - 2017-09-11 (2017-09-11, 18:34)ashrafhumax Wrote: I usually use kodi input log Thanx so much RE: [Solved] Xiaomi Mi Box BT remote and Raspberry Pi - Atreyu - 2017-09-12 Inordered two of these bt remotes shown in the pictures on the previous page. They indeed got recognized as a joystick. I will be using this guide to get LE to properly recognize it. Thanks! RE: [Solved] Xiaomi Mi Box BT remote and Raspberry Pi - wrxtasy - 2017-09-12 Just got this working with... An ABS plastic - aftermarket Xiaomi Mi Box remote or the USA spec Xiaomi Mi Box remote and LibreELEC Kodi Krypton 17.4 running on an S805 ODROID C1 with a v4.0 CSR Bluetooth Dongle: Those with inbuilt Bluetooth will not even need a USB dongle. Accessing LibreELEC Help (click) So far user tested and working on these LE devices: - RPi's with a BT dongle - WeTek Hub / Play2 - Generic S9xx devices with inbuilt Bluetooth - MECOOL M8S Pro+ with a v4.0 CSR BT dongle - MINIX U9 - ODROID C2 with a v4.0 CSR BT dongle using this test .tar update How to Set it all up: 1) Kodi Settings > LibreELEC > Services > Bluetooth > Enable 2) Kodi Settings > LibreELEC > Bluetooth > Xiaomi Remote > Trust and Connect 3) Then simply copy and paste this: Code: curl -sL http://wrxtasy.libreelec.tv/LE-Xiaomi/xbt.sh | bash - 4) You can check connected devices (USA Spec remote here) with: Code: cat /proc/bus/input/devices I: Bus=0005 Vendor=2717 Product=32b2 Version=1026 N: Name="Xiaomi Remote" P: Phys=00:15:83:CC:84:04 S: Sysfs=/devices/virtual/misc/uhid/input3 U: Uniq=08:EB:29:36:60:3C H: Handlers=kbd event3 B: PROP=0 B: EV=120013 B: KEY=10000 7 ff9f207a c14057ff febeffdf ffefffff fff80f80 3c00f002 B: MSC=10 B: LED=1f 5) Xiaomi remote remapping is found here, use a Kodi debug log (enable in Kodi settings > System) to see KEY press events: Code: cat .kodi/temp/kodi.log and custom edit them if needed: Code: nano .config/xiaomibtremote.evmap CTRL-O to save CTRL-X to exit 6) Want to further custom remap remote buttons for particular individual areas of Kodi use ? Kodi Settings > Addons > Install from Repository > Programs > Keymap Editor Two suggested remote buttons that definitely need remapping to increase Kodi functionality: KeyMap Editor: Fullscreen Video > Playback > Stop > press Xiaomi remote Back button Fullscreen Live TV > Playback > Stop > press Xiaomi remote Back button Global > Navigation > Context Menu > press Xiaomi remote Context (hamburger) button These Xiaomi BT remotes make an excellent addition to dual boot LibreELEC / Android TV ROM boxes like the WeTek Hub & Play2 that can now use the Bluetooth Xiaomi remotes with both Operating Systems The following Xiaomi BT remotes work as well because they all use the same 2717 VendorID. Beware the dirt cheap ones with rubber keys and a Coin type battery, as they will not be as good or easy to use Original Genuine Xiaomi Bluetooth Remote - $11.19 or Xiaomi Bluetooth Remote Control 2 $11.50 W. RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - ashrafhumax - 2017-09-12 wrxtasy, Thank you very much for your guide and great work RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - zang - 2017-09-12 Hi Wrxtasy, I saw your posts today and thought, "Finally! A solution to my problem!" But alas, no dice. I'm not sure what it is. I have two each of two official Xiaomi BT remotes—one style uses a coin battery, the other AAAs. I have four Odroid C2s. I have tried both CSR 4.0 and IOGear GBU521 dongles. I have tried fresh installs of official LE 8. I cannot get these remotes to work properly with the C2s—at least not within LE. I pair the remotes just fine, and get the response beeps (on the coin cell versions) and they show as paired, but keypresses do nothing and in cat /proc/bus/input/devices, nada. The LE rules don't seemingly make a difference. They'll even pair fine with my iOS devices, and there are zero problems pairing any other BT devices (PS2 controllers, BT Keyboard) to LE. *Just* these remotes. Code: KodiLivingRoom:~ # cat /proc/bus/input/devices But the kernel event line is correct: Code: KERNEL=="event3", ENV{eventlircd_enable}="true", ENV{eventlircd_evmap}="aftvsremote.evmap" It makes me want to pull out my hair, given that they pair in Android AND Ubuntu on the C2, and with LE on my Pis. It's like the C2 build of LE has a hate on for them. RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - wrxtasy - 2017-09-12 There appears to be USB Hub errors in the Kernel Log on the C2 preventing BT Dongle device info from reading... I've tried other S905X devices and they are fine. The issue on the C2 will have to be investigated. Code: [ 6.187039@0] Bluetooth: HCI device and connection manager initialized RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - zang - 2017-09-12 Any help is appreciated. I've had my first two MiTV remotes for almost a year hoping that each new version of LE would fix this issue, and have posted both here and the LE forums about it a few times. So to have someone who does LE development finally able to see the problem first-hand gives me hope that a resolution will come and these excellent remotes will be able to be used with my excellent C2s. RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - Atreyu - 2017-09-13 My remotes came in. They are the exact same as in post#11. I followed wrxtasy's instructions and placed the .rules files in /storage/.config/udev.rules.d, cross-referenced the eventid (mine is event5). No go unfortunately. The BT device is recognized and paired. When pushing buttons i see the codes in dmesg. No effective responses to keypresses, though I might add i am using kszaq's LE 7.0.12j community build, might have something to do with it. Any hints ..? |