View Single Post
Old 08-21-2024, 10:33 PM   #20
lumping-sugar66
Zealot
lumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trolls
 
lumping-sugar66's Avatar
 
Posts: 100
Karma: 81981
Join Date: Oct 2023
Location: Ontario, Canada
Device: Kobo Aura Edition 2, Kobo Clara 2E
Quote:
Originally Posted by trence View Post
Success! I was able to connect and turn pages. One last question, and I swear I will never bug you again
Great! I'm glad you have it working. It's not bugging me at all; I don't have access to a wide variety of devices so all feedback is useful for me to make a package that is closer to hands-off. It's a pleasure.


Quote:
Originally Posted by trence View Post
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?
It's not unheard of. I have 3 bluetooth devices and two of them automatically connect while the other do NOT engage the connection automatically for one reason or the other. In those circumstances Kobo device itself need to engage the pairing request by itself.

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>
Is a perfectly good command that would initiate your pairing without getting into the bluetoothctl prompt, making them useful for shell scripting.
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.
lumping-sugar66 is offline   Reply With Quote