08-20-2024, 07:31 PM | #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. |
08-20-2024, 11:17 PM | #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. |
08-21-2024, 09:46 AM | #18 | |
Connoisseur
Posts: 84
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. |
|
08-21-2024, 02:46 PM | #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. |
08-21-2024, 10:33 PM | #20 | ||
Connoisseur
Posts: 84
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. |
||
08-28-2024, 04:23 PM | #21 |
Junior Member
Posts: 2
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. |
Yesterday, 10:21 AM | #22 |
Connoisseur
Posts: 84
Karma: 81981
Join Date: Oct 2023
Location: Ontario, Canada
Device: Kobo Aura Edition 2, Kobo Clara 2E
|
@hilotime, Yeah this plugin is not the most non-programmer-friendliest to adopt and use in its current state. It works, but you need to do a lot of handholding and changing code to make it get to where you want it.
One thing that this plugin leaves completely out of scope is making sure your bluetooth device can be paired and ensuring the requisites for a page turner is met. Because of that, I'd recommend trying out tsowell's bluetooth page turner first, before moving on to KOReader-based page turner. Before you see the bluetooth working with kobo's nickel and nickelmenu, I'm afraid you're not at a point where you can ensure the bluetooth device is paired properly. So first step for you would be to make your device work with that page turner. Using the standard kobo software will require minimal programming/ssh access to get the bluetooth device paired, actions figured out, and give you ability to test the page turning action. Once that's ensured, we can help you better with the rest of the installation process. I hope this helps |
Yesterday, 07:58 PM | #23 |
Junior Member
Posts: 2
Karma: 10
Join Date: Aug 2024
Device: Kobo Libra 2
|
@lumping-sugar66,
Thanks for the prompt reply. I had a feeling I was in over my head. I'll do as you said and start with tsowell's bluetooth page turner. If all goes well, you'll be hearing from me again. Thank you, again! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bluetooth page turning for Kobo eReaders | tsowell | Kobo Reader | 191 | Today 01:13 AM |
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 |