View Single Post
Old 08-20-2024, 07:31 PM   #16
enji
Junior Member
enji has a complete set of Star Wars action figures.enji has a complete set of Star Wars action figures.enji has a complete set of Star Wars action figures.enji has a complete set of Star Wars action figures.enji has a complete set of Star Wars action figures.
 
Posts: 5
Karma: 430
Join Date: Oct 2018
Device: Kobo Forma, Kobo Libra 2, Kindle Oasis, Onyx Boox Page
I got bluetooth working on a Libra 2 by using `rtk_hciattach` instead of `hciattach`.

Along with the rest of the instructions on github, the plugin works great after just tweaking the on/off scripts:
  1. In bluetooth.koplugin/on.sh, changed `/sbin/hciattach -p ttymxc1 any 1500000 flow -t 20` to `/sbin/rtk_hciattach -s 115200 ttymxc1 rtk_h5`. The different parameters are what dmesg showed when watching Nickel enable bluetooth.
  2. In bluetooth.koplugin/off.sh, changed `pkill hciattach` to `pkill rtk_hciattach`

No need to remove the bluetoothd kill command from the KOReader startup script or reconnect to the clicker in Nickel.

Thank you for creating this! I've been using it for a few days, and it works perfectly with bluetooth on/off and Restart KOReader commands mapped to gestures.
enji is offline   Reply With Quote