Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 03-04-2022, 10:49 PM   #1
tsowell
Junior Member
tsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five words
 
Posts: 4
Karma: 37912
Join Date: Mar 2022
Device: Kobo Libra 2
Bluetooth page turning for Kobo eReaders

Hi everyone,

I've written a little plugin (using the wonderful NickelHook) for Kobo eReaders that allows the use of arbitrary Bluetooth devices for turning pages. I've been using it with a Kobo Libra 2 and an 8BitDo Zero 2 controller, but I think it should work with other Bluetooth-capable Kobo eReaders, and you can configure which Bluetooth input events trigger page turning.

Device configuration is unfortunately quite manual. You need to find the Linux input events you want to use as triggers and put them in a configuration file, but that at least only needs to be done once per device.

The code is here: https://github.com/tsowell/kobo-btpt

Installation and usage instructions are in the README, and you can grab a pre-built KoboRoot.tgz from the releases page: https://github.com/tsowell/kobo-btpt/releases

If anyone gets a chance to try it out, let me know how it goes. PRs are also welcome.

--
Tom
tsowell is offline   Reply With Quote
Old 03-12-2022, 01:24 AM   #2
Dra_w
Night Owl
Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!
 
Dra_w's Avatar
 
Posts: 36
Karma: 100000
Join Date: Aug 2013
Device: Kindle 3; Kindle Voyage
I test successfully on my Sage but it doesn't work on Libra 2 (same installation step).
Dra_w is offline   Reply With Quote
Advert
Old 03-13-2022, 06:13 AM   #3
Cootey
Absentminded Reader
Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.
 
Cootey's Avatar
 
Posts: 1,287
Karma: 6916983
Join Date: Apr 2017
Device: Kobo Mini, Libra Colour & Elipsa; Kindle Paperwhite 3 & 4; iOS apps
Quote:
Originally Posted by tsowell View Post
Hi everyone,

I've written a little plugin (using the wonderful NickelHook) for Kobo eReaders that allows the use of arbitrary Bluetooth devices for turning pages. I've been using it with a Kobo Libra 2 and an 8BitDo Zero 2 controller, but I think it should work with other Bluetooth-capable Kobo eReaders, and you can configure which Bluetooth input events trigger page turning.

Device configuration is unfortunately quite manual. You need to find the Linux input events you want to use as triggers and put them in a configuration file, but that at least only needs to be done once per device.

The code is here: https://github.com/tsowell/kobo-btpt

Installation and usage instructions are in the README, and you can grab a pre-built KoboRoot.tgz from the releases page: https://github.com/tsowell/kobo-btpt/releases

If anyone gets a chance to try it out, let me know how it goes. PRs are also welcome.

--
Tom
I'm very intrigued in this project. I purchased a $20 Bluetooth presentation device off Amazon that worked initially to turn pages except the Kobo kept dropping the BT connection if I took too long to read a page. Then I'd have to dig back into the settings to reactivate the pairing. Too much work! Also, the pairing period became shorter and shorter, so I eventually returned the device.

I suspect the cheap device was at fault. How long do devices stay paired using your utility?
Cootey is offline   Reply With Quote
Old 03-13-2022, 11:16 PM   #4
tylpk
Enthusiast
tylpk has learned how to buy an e-book online
 
Posts: 25
Karma: 80
Join Date: Apr 2019
Device: Kindle Paperwhite3, Hisense A5, HyRead Gaze Pocket, Kobo Elipsa
Quote:
Originally Posted by Cootey View Post
I'm very intrigued in this project. I purchased a $20 Bluetooth presentation device off Amazon that worked initially to turn pages except the Kobo kept dropping the BT connection if I took too long to read a page. Then I'd have to dig back into the settings to reactivate the pairing. Too much work! Also, the pairing period became shorter and shorter, so I eventually returned the device.

I suspect the cheap device was at fault. How long do devices stay paired using your utility?
I have Elipsa. I have the same problem of BT. I found the BT and Wi-Fi are combined on the same soc so I used the "Force Wi-Fi On' settings to keep BT signal. After triggering this setting, the BT of Elipsa can keep working. By the way, I used NickelMenu to toggle this setting quickly.
tylpk is offline   Reply With Quote
Old 03-14-2022, 05:55 AM   #5
tsowell
Junior Member
tsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five words
 
Posts: 4
Karma: 37912
Join Date: Mar 2022
Device: Kobo Libra 2
Quote:
Originally Posted by Dra_w View Post
I test successfully on my Sage but it doesn't work on Libra 2 (same installation step).
If you can, check the logs on the Libra 2, and look for lines containing "BluetoothPageTurner". It's pretty verbose, so there might be some clues about what the problem is.
tsowell is offline   Reply With Quote
Advert
Old 03-14-2022, 06:20 AM   #6
tsowell
Junior Member
tsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five wordstsowell can name that ebook in five words
 
Posts: 4
Karma: 37912
Join Date: Mar 2022
Device: Kobo Libra 2
Quote:
Originally Posted by Cootey View Post
I'm very intrigued in this project. I purchased a $20 Bluetooth presentation device off Amazon that worked initially to turn pages except the Kobo kept dropping the BT connection if I took too long to read a page. Then I'd have to dig back into the settings to reactivate the pairing. Too much work! Also, the pairing period became shorter and shorter, so I eventually returned the device.

I suspect the cheap device was at fault. How long do devices stay paired using your utility?
Kobo is pretty aggressive about disabling Bluetooth when it isn't being used - the timeout is 150 seconds if I remember correctly. I was able to find a heartbeat mechanism that the built-in audio book player uses to keep Bluetooth enabled, and my utility uses that to keep Bluetooth on for 10 minutes after the last input event.

tylpk's solution (toggling the "Force Wi-Fi On" setting) should also work if your Bluetooth device already works with Kobo.

I'm actually not sure how my code will work with devices that can already turn pages... I think you would get duplicate page turn events. If you only want to make use of the Bluetooth keep-alive feature, you could try specifying a bogus method in the device configuration file - instead of "nextPage" and "prevPage", use "noOp", for example.
tsowell is offline   Reply With Quote
Old 03-23-2022, 11:58 PM   #7
windirt
Member
windirt is a marvel to beholdwindirt is a marvel to beholdwindirt is a marvel to beholdwindirt is a marvel to beholdwindirt is a marvel to beholdwindirt is a marvel to beholdwindirt is a marvel to beholdwindirt is a marvel to beholdwindirt is a marvel to beholdwindirt is a marvel to beholdwindirt is a marvel to behold
 
Posts: 24
Karma: 11674
Join Date: Jul 2011
Device: Kindle Voyage, Kobo Clara HD, Kobo Forma, Kobo Libra H2O, Kobo Libra2
I used Libra2 and 8bitdo zero 2 gamepad successfully.

The profile just copy the sample from GitHub readme

A few problems that may be encountered

1. After creating a profile, you need to restart the device once more.

2. Zero2 gamepad has multiple operating modes, please make sure it is in xinput mode.
windirt is offline   Reply With Quote
Old 04-01-2022, 01:32 PM   #8
Dra_w
Night Owl
Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!
 
Dra_w's Avatar
 
Posts: 36
Karma: 100000
Join Date: Aug 2013
Device: Kindle 3; Kindle Voyage
Quote:
Originally Posted by tsowell View Post
If you can, check the logs on the Libra 2, and look for lines containing "BluetoothPageTurner". It's pretty verbose, so there might be some clues about what the problem is.
On Libra2, I don't see those line when in Sage:
Code:
Apr  1 23:18:52 nickel: (BluetoothPageTurner) checking /proc/bus/input/devices for new devices
Apr  1 23:18:52 nickel: (BluetoothPageTurner) skipping Bus=0019 Vendor=0001 Product=0001 Version=0100
Apr  1 23:18:52 nickel: (BluetoothPageTurner) skipping Bus=0018 Vendor=001b Product=0000 Version=0000
Apr  1 23:18:52 nickel: (BluetoothPageTurner) skipping Bus=0018 Vendor=0000 Product=0000 Version=0000
Apr  1 23:18:52 nickel: (BluetoothPageTurner) found Bus=0005 Vendor=05ac Product=022c Version=011b
Apr  1 23:18:52 nickel: (BluetoothPageTurner) acquired device event3: bc2f3ddfcff2
Apr  1 23:18:52 nickel: (BluetoothPageTurner) devices scanned
Dra_w is offline   Reply With Quote
Old 04-02-2022, 12:51 PM   #9
Dra_w
Night Owl
Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!
 
Dra_w's Avatar
 
Posts: 36
Karma: 100000
Join Date: Aug 2013
Device: Kindle 3; Kindle Voyage
I see an error in the log:
Code:
Apr  2 22:45:35 bluetoothd[1441]: src/service.c:service_accept() input-hog profile accept failed for BC:2F:3D:DF:CF:F2
and look into /dev/input when connect to bluetooth remote, there're no change (no new device added, still include 'event0' 'event1' 'event2' 'event3' 'mouse0' 'mice'). In Sage: 'event0' 'event1' 'event2' then a 'event3' file is added when connect to the remote.
I guess the issue is related to bluez kernel?
Dra_w is offline   Reply With Quote
Old 04-03-2022, 08:23 PM   #10
tylpk
Enthusiast
tylpk has learned how to buy an e-book online
 
Posts: 25
Karma: 80
Join Date: Apr 2019
Device: Kindle Paperwhite3, Hisense A5, HyRead Gaze Pocket, Kobo Elipsa
Quote:
Originally Posted by Dra_w View Post
I see an error in the log:
Code:
Apr  2 22:45:35 bluetoothd[1441]: src/service.c:service_accept() input-hog profile accept failed for BC:2F:3D:DF:CF:F2
and look into /dev/input when connect to bluetooth remote, there're no change (no new device added, still include 'event0' 'event1' 'event2' 'event3' 'mouse0' 'mice'). In Sage: 'event0' 'event1' 'event2' then a 'event3' file is added when connect to the remote.
I guess the issue is related to bluez kernel?
I have the same issue with my Logitech R500. I guess the issue is related to linux kernel (CONFIG_UHID)?

I buy another bluetooth device (mouse) and use this good kobo-btpt to set up my bluetooth mouse. Although my cheap mouse sends event twice when I press the key. I can use my mouse to turn page finally.

https://youtu.be/trhdWDTAbKA
tylpk is offline   Reply With Quote
Old 04-07-2022, 10:12 AM   #11
tylpk
Enthusiast
tylpk has learned how to buy an e-book online
 
Posts: 25
Karma: 80
Join Date: Apr 2019
Device: Kindle Paperwhite3, Hisense A5, HyRead Gaze Pocket, Kobo Elipsa
I checked the kernel config. It seems that Kobo Libra 2 disables many items that Elipsa has.
Attached Thumbnails
Click image for larger version

Name:	kobo_kernel.png
Views:	537
Size:	56.0 KB
ID:	193144  
tylpk is offline   Reply With Quote
Old 04-07-2022, 06:16 PM   #12
CyberPaul
Groupie
CyberPaul can extract oil from cheeseCyberPaul can extract oil from cheeseCyberPaul can extract oil from cheeseCyberPaul can extract oil from cheeseCyberPaul can extract oil from cheeseCyberPaul can extract oil from cheeseCyberPaul can extract oil from cheeseCyberPaul can extract oil from cheese
 
CyberPaul's Avatar
 
Posts: 159
Karma: 1000
Join Date: Aug 2016
Device: Kindle Voyage - Tolino Vision 4 HD - Kobo Sage
Quote:
Originally Posted by Dra_w View Post
I test successfully on my Sage but it doesn't work on Libra 2 (same installation step).
So you are not getting duplicate page turn events and it is not disconnecting thanks to the keep-alive feature. Can you confirm please?
Also can you please share the configuration you did? What device did you use?

Last edited by CyberPaul; 04-07-2022 at 06:28 PM.
CyberPaul is offline   Reply With Quote
Old 04-08-2022, 04:16 AM   #13
Dra_w
Night Owl
Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!
 
Dra_w's Avatar
 
Posts: 36
Karma: 100000
Join Date: Aug 2013
Device: Kindle 3; Kindle Voyage
Quote:
Originally Posted by tylpk View Post
I checked the kernel config. It seems that Kobo Libra 2 disables many items that Elipsa has.
So we should rebuild the kernel?
Dra_w is offline   Reply With Quote
Old 04-08-2022, 04:18 AM   #14
Dra_w
Night Owl
Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!Dra_w rocks like Gibraltar!
 
Dra_w's Avatar
 
Posts: 36
Karma: 100000
Join Date: Aug 2013
Device: Kindle 3; Kindle Voyage
Quote:
Originally Posted by CyberPaul View Post
So you are not getting duplicate page turn events and it is not disconnecting thanks to the keep-alive feature. Can you confirm please?
Also can you please share the configuration you did? What device did you use?
If you get duplicate page turn, you should try leave the config file empty.
I test on Logitech R500 and a Tiktok bluetooth button.
Dra_w is offline   Reply With Quote
Old 04-08-2022, 08:42 AM   #15
CyberPaul
Groupie
CyberPaul can extract oil from cheeseCyberPaul can extract oil from cheeseCyberPaul can extract oil from cheeseCyberPaul can extract oil from cheeseCyberPaul can extract oil from cheeseCyberPaul can extract oil from cheeseCyberPaul can extract oil from cheeseCyberPaul can extract oil from cheese
 
CyberPaul's Avatar
 
Posts: 159
Karma: 1000
Join Date: Aug 2016
Device: Kindle Voyage - Tolino Vision 4 HD - Kobo Sage
Quote:
Originally Posted by Dra_w View Post
If you get duplicate page turn, you should try leave the config file empty.
I test on Logitech R500 and a Tiktok bluetooth button.
I haven’t yet tried. I’m still waiting for my Kobo Sage ordered yesterday
Just asking because tsowell was expecting that behavior.
CyberPaul is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessories New hand stick Bluetooth for turning page! guitu Amazon Kindle 16 07-23-2021 01:20 AM
Kobo Clara HD - Quick page turning Rarronno Kobo Reader 7 09-06-2019 02:26 AM
Bluetooth Page Turning hismaimai8888 General Discussions 2 11-25-2018 12:37 PM
Bluetooth Page Turning copaw General Discussions 14 11-17-2015 03:09 PM
Kobo app page turning animation?? morgan freeman Android Devices 0 03-24-2013 12:15 AM


All times are GMT -4. The time now is 01:42 PM.


MobileRead.com is a privately owned, operated and funded community.