Kodi Community Forum
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)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12


RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - wrxtasy - 2017-09-13

@Atreyu,

Did you change in Step (6) the 99-eventlircd.rules from KERNEL=="event3" to KERNEL=="event5" ?

When you do a
Code:
cat /proc/bus/input/devices

Are you getting Vendor=2717 ?


RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - Atreyu - 2017-09-13

Thanks wrxtasy.

Yes, i did change to event5 in the 99-eventlircd.rules file.

If i do a cat /proc/bus/input/devices the remote turns up as: Bus=005 Vendor=2717 Product=32b1 Version=100b


RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - wrxtasy - 2017-09-13

Unfortunately in that LE 7.0.12 version there is no file - aftvsremote.evmap for 99-eventlircd.rules to find.

Click eventlircd/evmap

Some other .evmap would need to be chosen. Try using default.evmap


RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - Atreyu - 2017-09-13

Thanks for the pointer! Will try..


\edit:
Yay, Basics work when using default.evmap. Nice!


RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - wrxtasy - 2017-09-13

I going to get an official LE patch submitted to custom map the remote to its own .evmap so all the buttons will work.

The Power button needs remapping to something like Mute, because it will shutdown a LE box but you cannot start it back up again.

I use the Kodi Keymap editor Addon to remap the Back button to Stop playback only when playing Fullscreen Video. Works well. Smile


RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - Atreyu - 2017-09-13

Yes! This remote deserves its own .evmap :-)
I indeed noticed the power button function. Mute would fit better.

Funny, i also remapped back-FS to stop. I would otherwise miss that button...

Pretty handy remote this one, if you ask me (although instill prefer my rii25, its perfect!)


RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - wrxtasy - 2017-09-13

@kszaq has added my xiaomibtremote.evmap patch to his latest LE 8.1.7 release. Works well Smile

The Home button is now Context Menu and the Voice search button is Play/Pause. Power button is now Mute.

EDIT: Just discovered this morning that if I press the Home button twice it wakes up the LE device (U9) and switches on the TV.


RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - ashrafhumax - 2017-09-13

Thanks to wrxtasy and kszaq for your support, your efforts are wonderful help to the community Blush


RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - Atreyu - 2017-09-14

Glad you got it in @wrxtasy :-).


RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - Vlaves - 2017-09-14

(2017-09-12, 11:16)wrxtasy Wrote: ...
How to Set it all up:

[b]1) Kodi Settings > LibreELEC > Services > Bluetooth > Enable

2) Kodi Settings > LibreELEC > Bluetooth > Xiaomi Remote > Pair (might be Trust and Connect)

3) SSH into LibreELEC device and issues these commands (copy and paste):
Code:
wget http://wrxtasy.libreelec.tv/LE-Xiaomi/51-these-are-not-joysticks-rm.rules -O /storage/.config/udev.rules.d/51-these-are-not-joysticks-rm.rules
....

Thank you so much for the setup instructions for this remote Smile It makes the Wetek Hub a totally different device especially I must say since the community build 8.1.7 Smile
It's snappy and fast and plays everything I throw at it including 1080i h264 Live TV perfectly deinterlaced Smile

Thank you so much again for all your support here Smile[/b]


RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - wrxtasy - 2017-09-14

No problems.

Yes these remotes really kick ass. Xiaomi have really nailed it in the Clickiness, button repeat delay times, and remote ergonomics so far as I'm concerned.
They are a perfect companion for no nonsense LibreELEC usage once setup. Wink

Now got to sort out what is going on with the troublesome ODROID C2 BT remote compatibility, its the only device not working properly.


RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - zang - 2017-09-16

It it helps, Wrxtasy, there seems to be a similar issue with Dualshock 3 controllers on Lakka; they work on other S905 devices, but not the C2:

https://github.com/libretro/Lakka-LibreELEC/issues/54


RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - zang - 2017-09-16

There's a USB dongle fix in the HK kernel drivers that doesn't seem to be in the LE's amlogic kernel:

https://github.com/hardkernel/linux/commit/bb03f741fb67c7aebc59ecc7a54adbbf0309b7aa

Is it as simple as that? Or am I just reaching beyond my (limited) Linux knowledge?


RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - wrxtasy - 2017-09-17

Thx. Zang - yes I'm aware of the issues and extra commits required to fix BT HID controllers on the C2.

In fact this bug fixed test .tar update will do just that, should probably fix the BT PS3 Dual Shock Controllers as well ! Big Grin

This is an update for 64bit - C2 LibreELEC, the same 64bit LE officially use.

Before installing turn OFF Autoupdating:

Settings > LibreELEC > Autoupdates > manual

LibreELEC-Odroid_C2.aarch64-8.1.1.BT.HID.fix.tar

Makes for one snappy LE ODROID C2, when you add a bit of Overclocking and run from eMMC flash storage !


RE: Connect Xiaomi Mi Box BT remotes to LibreELEC devices - zang - 2017-09-17

Tried it; works brilliantly. Thanks, Wrxstasy!


This forum uses Lukasz Tkacz MyBB addons.