![]() |
#16 |
Junior Member
![]() ![]() ![]() ![]() ![]() Posts: 4
Karma: 430
Join Date: Oct 2018
Device: NUNYA
|
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:
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. |
![]() |
![]() |
![]() |
#17 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 66
Karma: 548
Join Date: Nov 2018
Device: Likebook Mars
|
Thank you for that info, that did allow me to turn on the bluetooth. My device was listed in bluetoothctl. While doing the trust, and connect via SSH, I did receive this error message:
bluetooth]# trust E0:F8:48:04:36:23 [bluetooth]# [bluetooth]# Changing E0:F8:48:04:36:23 trust succeeded [bluetooth]# connect E0:F8:48:04:36:23 Attempting to connect to E0:F8:48:04:36:23 [bluetooth]# [bluetooth]# Failed to connect: org.bluez.Error.NotReady br-connection-adapter-not-powered [bluetooth]# Would either of you know what I am doing wrong by chance? Edit: After a reboot, connect worked and the device paired! But it does not turn pages, yet. I did restart Koreader, as well. This is my device.patch.lua, does this look correct? --- koreader/frontend/device/kobo/device.lua 2024-07-15 12:02:02.000000000 -0400 +++ koreader/frontend/device/kobo/device.lua 2024-08-11 17:54:44.000000000 -0400 @@ -489,6 +489,7 @@ hasEclipseWfm = yes, canToggleChargingLED = yes, led_uses_channel_3 = true, + hasKeys = yes, hasFrontlight = yes, display_dpi = 300, hasNaturalLight = yes, @@ -828,6 +829,7 @@ [4] = "RPgFwd", [102] = "Home", [116] = "Power", [193] = "RPgBack", [115] = "RPgFwd", [194] = "RPgFwd", [331] = "Eraser", [332] = "Highlighter", [304] = "RPgFwd", [305] = "RPgFwd", [307] = "RPgFwd", [308] = "RPgFwd", @@ -901,6 +903,13 @@ -- NOTE: usb hotplug event is also available in /tmp/nickel-hardware-status (... but only when Nickel is running ;p) self.input.open("fake_events") + local success, err = pcall(function() + self.input.open("/dev/input/event4") + end) Last edited by trence; 08-21-2024 at 01:01 AM. |
![]() |
![]() |
![]() |
#18 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79
Karma: 81981
Join Date: Oct 2023
Location: Ontario, Canada
Device: Kobo Aura Edition 2, Kobo Clara 2E
|
Quote:
Wow thank you for the contribution and testing this. I'll be sure to add this to the repository as a workaround for Libra! Oh, I think that's my unclear instructions that got you again. The *.patch file was just me documenting the changes that need to be applied to the actual internal KOReader files. The file you want to modify is at : koreader/frontend/device/kobo/device.lua This is outside of the plugin's folder structure. Last edited by lumping-sugar66; 08-21-2024 at 10:13 AM. |
|
![]() |
![]() |
![]() |
#19 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 66
Karma: 548
Join Date: Nov 2018
Device: Likebook Mars
|
Success! I was able to connect and turn pages. One last question, and I swear I will never bug you again
![]() I am finding that I have to manually connect to the bluetooth device via SSH with bluetoothctl each time I want to connect. Is this expected? I added this section of the patch lua as well to my main config: local success, err = pcall(function() + self.input.open("/dev/input/event4") + end) I wasn't sure if that had something to do with the auto connection, but still no luck. Edit: Not sure what I did wrong initially, but all is well. It is connecting now automatically. Fantastic, thank you! Thank you again to both of you, really really cool of you to do this. If either of you have a "Buy Me a Coffee" type thing, please let me know. Last edited by trence; 08-21-2024 at 07:01 PM. |
![]() |
![]() |
![]() |
#20 | ||
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79
Karma: 81981
Join Date: Oct 2023
Location: Ontario, Canada
Device: Kobo Aura Edition 2, Kobo Clara 2E
|
Quote:
Quote:
Until I make another patch, you can circumvent this by adding your custom bluetoothctl commands to the end of the on.sh script. Keep in mind that although $ bluetoothctl gives you a prompt to enter your bluetooth commands, it also works as a command line utility where you can pass your commands as arguments. In other words: Code:
$ bluetoothctl pair <DEVICE_MAC_ADDRESS> You would still need to restart KOReader after this, but your connection will have been established at that point. P.S.I'm also looking into automating the connections without requiring restarts, my favorite clicker is a 2$ photo shutter from china and it frequently loses bluetooth, disturbing my flow. I will make the plugin not only connect automatically but renew as connections gets lost. More to come on this. |
||
![]() |
![]() |
![]() |
#21 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Aug 2024
Device: Kobo Libra 2
|
In over my head!
I want to use the Logi R500s to turn pages on my Kobo Libra 2.
So far I've installed OCP-KOreader-v2024.07 and kfm_mac_install. After doing this I realized I needed nickel menu, so I installed KoboRoot.tgz copying it to the .Kobo folder. I then configured nickel menu pasting the downloaded config file to the nm folder. I got all of this from YouTube videos with titles that sounded like what I wanted to do. Next, I followed the 'How to Install' instructions found on bluetooth.koplugin/readme.md. Instruction number one was easy enough, I copied the folder into koreader/plugins. Number two was less straight forward; I tried pairing the Logi R500s by going into KOReader on my Libra 2. It found my network, but said nothing about pairing to the R500s. I also tried to pair the R500s and Libra 2 toggling it on Kobo's own reader software. That way I managed to pair the R500s, but it was toggled off the next time I checked. Instruction number three was a complete. I don't know what to make of the instruction to 'make sure that your device is mapped to /dev/input/event3'. Instruction number four is also over my head. And it's the same for number five. I did manage to make Enji's Libra 2 adaptions. I don't even know enough to know what I need help with. It feels like I'm asking a lot, but I won't know if I don't ask. Thank you in advance for whatever time and effort you can offer me. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bluetooth page turning for Kobo eReaders | tsowell | Kobo Reader | 179 | Today 08:11 PM |
A Wi-Fi remote control page turner for Kobo e-readers | sublipri | Kobo Reader | 40 | 07-18-2024 12:57 AM |
Accessories Bluetooth page turner on Oasis? | iamagloworm | Amazon Kindle | 4 | 06-03-2024 03:28 PM |
Libra 2 Is there a Bluetooth page turner for Libra2? | windirt | Kobo Reader | 22 | 12-12-2021 10:25 PM |
Bluetooth page turner for Android tablets? | DaveGa | Android Devices | 1 | 11-28-2018 04:38 PM |