View Single Post
Old 08-13-2024, 10:52 AM   #3
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
I'm a Kobo developer newbie, so please forgive me for my ignorance on the topic. For step 3 of the guide on your Github it says to be sure the device is mapped to event3, how would I go about doing that on a Kobo? I believe I understand how to go about the rest. Thank you!
Check the devices currently available in your system first:
Code:
ls /dev/input/
And connect your bluetooth device and do it again, and see the difference.
Code:
ls /dev/input/
If you get a /dev/input/event3 that wasn't there before, that's your device. After the device is there, you can do
Quote:
evtest /dev/input/event3
and press on the bluetooth page turner buttons, see if your event stream detects these events.

If your event list doesn't change after you pair/connect your device, uhid.ko may be required and not have applied. You can cd into the bluetooth.koplugin folder and do
Quote:
insmod ./uhid/uhid.ko
and retry the connection with the bluetooth clicker again. If you still don't see the event, it's likely that your device is trying to identify itself as a weird device and may not be compatible.

If your event is mapped to a different location, modify main.lua to match yours.

Be sure to check device.lua.patch for what's being done. the
Quote:
hasKeys = yes
addition needs to go into your devices' configuration. For me that's Clara 2E but yours could be different. device.lua is full of all devices and specific configurations for each.

I also realized a slight mistake in my code. The line at https://github.com/onatbas/bluetooth...5/main.lua#L61
has a hardcoded path and assumes that KOReader is installed under "/mnt/onboard/.adds/koreader/". This may not be the right location for your installation, so change that your path as well.

Last edited by lumping-sugar66; 08-13-2024 at 10:56 AM.
lumping-sugar66 is offline   Reply With Quote