![]() |
#76 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Feb 2023
Device: Kobo Libra 2
|
I think BT devices emulating a mouse, keyboard will have eventX.
But if it emulates multimedia keys, then it won't have eventX |
![]() |
![]() |
![]() |
#77 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2023
Device: Kobo Clara 2E
|
I am using a random bluetooth adapter i found on amazon. I got evtest running on my raspberry pi to check values, but I am unable to get this work.
I just am confused a little bit because when pressing one button, I get a ton of info from evtest. For example, this is everything I got from pressing the right button: Quote:
|
|
![]() |
![]() |
![]() |
#78 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
EV_KEY:BTN_LEFT seems like the best bet, but that thing's a mess.
(Unless there's supposed to be a gyro or a stick or something in there?). |
![]() |
![]() |
![]() |
#79 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2023
Device: Kobo Clara 2E
|
Quote:
![]() this is what is was. Hopefully better luck with the next one. Should evtest be usually 1 input to 1 line? |
|
![]() |
![]() |
![]() |
#80 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: May 2023
Device: Kobo Libra 2
|
Some bluetooth devices require installation of a kernel module:
https://www.mobileread.com/forums/sh...d.php?t=352280 |
![]() |
![]() |
![]() |
#81 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
For a key/button? nearly. Basically a press and a release.
e.g., a keyboard: Code:
Event: time 1685556515.095613, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70029 Event: time 1685556515.095613, type 1 (EV_KEY), code 1 (KEY_ESC), value 1 Event: time 1685556515.095613, -------------- SYN_REPORT ------------ Event: time 1685556515.214620, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70029 Event: time 1685556515.214620, type 1 (EV_KEY), code 1 (KEY_ESC), value 0 Event: time 1685556515.214620, -------------- SYN_REPORT ------------ |
![]() |
![]() |
![]() |
#82 | |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jun 2023
Device: Kobo clara 2e
|
help please
Quote:
configuration files for your Bluetooth devices there" i dont know which files these are and where to find them. |
|
![]() |
![]() |
![]() |
#83 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 185
Karma: 3633418
Join Date: Mar 2009
Location: UK
Device: Kobo Libra
|
Quote:
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. This is the relevant section, you need to create the file yourself using the information in the original post and dotted through this thread. |
|
![]() |
![]() |
![]() |
#84 |
Onyx-maniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,743
Karma: 16196313
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
|
I own, but don't use Kobo, and stumbled upon this thread.
I'm a big fan of BT clickers and always use one with my Onyx Poke3. But I don't get. Can't you get this all to work with just a keylayout file? I use both USB HID over BT Usage Pages 0x07 (keyboard) and 0x0c (consumer). |
![]() |
![]() |
![]() |
#85 | |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jun 2023
Device: Kobo Libra 2
|
Quote:
When connected to a phone, the buttons seem to emulate mouse/touches that either swipe from the top down, tap in the middle, or swipe from the bottom up. I've got access to evtest thanks to NiLuJe. Whilst the "D01" BT device is connected I don't seem to be able to get anything from it using evtest (but I get outputs if I use evtest on my Arch Linux device). If I try 'logread -f' with the D01 ring connected it just shows a lot of "void BluetoothManager: ![]() Any other ideas? I have the same EV_KEYS entries as Shiplap, so tried their config also. Just to confirm, I also have the config for btpt in the .btpt folder, and it's simply named "D01" (definitely a 0, not O) with no extensions on the filename. Would be amazing to get this working! Getting cold in town and I don't want to turn pages with an exposed hand. |
|
![]() |
![]() |
![]() |
#86 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 211
Karma: 1074916
Join Date: Jan 2021
Device: Likebook Ares
|
Quote:
https://github.com/Tangent128/lua-evdev You can cross-compile the module so it can run in Kobo. Sent from my 22081212UG using Tapatalk Last edited by jospalau; 09-16-2023 at 02:45 PM. |
|
![]() |
![]() |
![]() |
#87 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Or you can simply use standard API calls via FFI with LuaJIT
![]() (I would link to KOReader, but input is one of the very earliest thing that was written, so most of it is not actually handled via FFI, but as a Lua C module). |
![]() |
![]() |
![]() |
#88 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 211
Karma: 1074916
Join Date: Jan 2021
Device: Likebook Ares
|
Quote:
Sent from my 22081212UG using Tapatalk |
|
![]() |
![]() |
![]() |
#89 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Sep 2023
Device: Kobo Clara 2E
|
Hello everyone,
Has anyone figured out the solution for finding the best event codes? I bought this bluetooth button: https://nl.aliexpress.com/item/10050...yAdapt=glo2nld it's called the JX-03. And these are the results of the evtest tool: On connection Select the device event number [0-21]: 21 Input driver version is 1.0.1 Input device ID: bus 0x5 vendor 0x5ac product 0x22c version 0x11b Input device name: "JX-03" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 114 (KEY_VOLUMEDOWN) Event code 115 (KEY_VOLUMEUP) Event code 320 (BTN_TOOL_PEN) Event code 330 (BTN_TOUCH) Event code 374 (KEY_KEYBOARD) Event type 3 (EV_ABS) Event code 0 (ABS_X) Value 0 Min 0 Max 4095 Event code 1 (ABS_Y) Value 0 Min 0 Max 4095 Event code 40 (ABS_MISC) Value 0 Min 0 Max 1 Event type 4 (EV_MSC) Event code 4 (MSC_SCAN) Properties: Property type 1 (INPUT_PROP_DIRECT) Testing ... (interrupt to exit) ##Upper button:## Event: time 1694963254.779283, type 4 (EV_MSC), code 4 (MSC_SCAN), value d0042 Event: time 1694963254.779283, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1 Event: time 1694963254.779283, type 1 (EV_KEY), code 320 (BTN_TOOL_PEN), value 1 Event: time 1694963254.779283, type 3 (EV_ABS), code 40 (ABS_MISC), value 1 Event: time 1694963254.779283, type 3 (EV_ABS), code 0 (ABS_X), value 1904 Event: time 1694963254.779283, type 3 (EV_ABS), code 1 (ABS_Y), value 1300 Event: time 1694963254.779283, -------------- SYN_REPORT ------------ Event: time 1694963254.816806, type 3 (EV_ABS), code 1 (ABS_Y), value 1400 Event: time 1694963254.816806, -------------- SYN_REPORT ------------ Event: time 1694963254.839495, type 3 (EV_ABS), code 1 (ABS_Y), value 1700 Event: time 1694963254.839495, -------------- SYN_REPORT ------------ Event: time 1694963254.876831, type 3 (EV_ABS), code 1 (ABS_Y), value 2000 Event: time 1694963254.876831, -------------- SYN_REPORT ------------ Event: time 1694963254.899267, type 3 (EV_ABS), code 1 (ABS_Y), value 2300 Event: time 1694963254.899267, -------------- SYN_REPORT ------------ Event: time 1694963254.929305, type 3 (EV_ABS), code 0 (ABS_X), value 1898 Event: time 1694963254.929305, type 3 (EV_ABS), code 1 (ABS_Y), value 2500 Event: time 1694963254.929305, -------------- SYN_REPORT ------------ Event: time 1694963254.959393, type 3 (EV_ABS), code 0 (ABS_X), value 1895 Event: time 1694963254.959393, type 3 (EV_ABS), code 1 (ABS_Y), value 2600 Event: time 1694963254.959393, -------------- SYN_REPORT ------------ Event: time 1694963254.989289, type 3 (EV_ABS), code 0 (ABS_X), value 1890 Event: time 1694963254.989289, type 3 (EV_ABS), code 1 (ABS_Y), value 2900 Event: time 1694963254.989289, -------------- SYN_REPORT ------------ Event: time 1694963255.019247, type 3 (EV_ABS), code 0 (ABS_X), value 1888 Event: time 1694963255.019247, type 3 (EV_ABS), code 1 (ABS_Y), value 3200 Event: time 1694963255.019247, -------------- SYN_REPORT ------------ Event: time 1694963255.049282, type 3 (EV_ABS), code 0 (ABS_X), value 1882 Event: time 1694963255.049282, type 3 (EV_ABS), code 1 (ABS_Y), value 3500 Event: time 1694963255.049282, -------------- SYN_REPORT ------------ Event: time 1694963255.079261, type 4 (EV_MSC), code 4 (MSC_SCAN), value d0042 Event: time 1694963255.079261, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0 Event: time 1694963255.079261, type 1 (EV_KEY), code 320 (BTN_TOOL_PEN), value 0 Event: time 1694963255.079261, type 3 (EV_ABS), code 0 (ABS_X), value 1877 Event: time 1694963255.079261, type 3 (EV_ABS), code 1 (ABS_Y), value 3800 Event: time 1694963255.079261, -------------- SYN_REPORT ------------ ##Middle button:## Event: time 1694963328.490195, type 4 (EV_MSC), code 4 (MSC_SCAN), value d0042 Event: time 1694963328.490195, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1 Event: time 1694963328.490195, type 1 (EV_KEY), code 320 (BTN_TOOL_PEN), value 1 Event: time 1694963328.490195, type 3 (EV_ABS), code 0 (ABS_X), value 1904 Event: time 1694963328.490195, type 3 (EV_ABS), code 1 (ABS_Y), value 1904 Event: time 1694963328.490195, -------------- SYN_REPORT ------------ Event: time 1694963328.512640, type 4 (EV_MSC), code 4 (MSC_SCAN), value d0042 Event: time 1694963328.512640, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0 Event: time 1694963328.512640, type 1 (EV_KEY), code 320 (BTN_TOOL_PEN), value 0 Event: time 1694963328.512640, -------------- SYN_REPORT ------------ ##Lowest button## Event: time 1694963354.492886, type 4 (EV_MSC), code 4 (MSC_SCAN), value d0042 Event: time 1694963354.492886, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1 Event: time 1694963354.492886, type 1 (EV_KEY), code 320 (BTN_TOOL_PEN), value 1 Event: time 1694963354.492886, type 3 (EV_ABS), code 1 (ABS_Y), value 2500 Event: time 1694963354.492886, -------------- SYN_REPORT ------------ Event: time 1694963354.522860, type 3 (EV_ABS), code 1 (ABS_Y), value 2400 Event: time 1694963354.522860, -------------- SYN_REPORT ------------ Event: time 1694963354.552828, type 3 (EV_ABS), code 1 (ABS_Y), value 2300 Event: time 1694963354.552828, -------------- SYN_REPORT ------------ Event: time 1694963354.582821, type 3 (EV_ABS), code 1 (ABS_Y), value 2000 Event: time 1694963354.582821, -------------- SYN_REPORT ------------ Event: time 1694963354.612829, type 3 (EV_ABS), code 1 (ABS_Y), value 1800 Event: time 1694963354.612829, -------------- SYN_REPORT ------------ Event: time 1694963354.642890, type 3 (EV_ABS), code 1 (ABS_Y), value 1700 Event: time 1694963354.642890, -------------- SYN_REPORT ------------ Event: time 1694963354.672903, type 3 (EV_ABS), code 1 (ABS_Y), value 1500 Event: time 1694963354.672903, -------------- SYN_REPORT ------------ Event: time 1694963354.702943, type 3 (EV_ABS), code 1 (ABS_Y), value 1400 Event: time 1694963354.702943, -------------- SYN_REPORT ------------ Event: time 1694963354.732888, type 3 (EV_ABS), code 1 (ABS_Y), value 1100 Event: time 1694963354.732888, -------------- SYN_REPORT ------------ Event: time 1694963354.762883, type 3 (EV_ABS), code 1 (ABS_Y), value 800 Event: time 1694963354.762883, -------------- SYN_REPORT ------------ Event: time 1694963354.792933, type 3 (EV_ABS), code 1 (ABS_Y), value 500 Event: time 1694963354.792933, -------------- SYN_REPORT ------------ Event: time 1694963354.822941, type 4 (EV_MSC), code 4 (MSC_SCAN), value d0042 Event: time 1694963354.822941, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0 Event: time 1694963354.822941, type 1 (EV_KEY), code 320 (BTN_TOOL_PEN), value 0 Event: time 1694963354.822941, type 3 (EV_ABS), code 1 (ABS_Y), value 200 Event: time 1694963354.822941, -------------- SYN_REPORT ------------ ##Double click middle button:## Event: time 1694963426.988613, type 4 (EV_MSC), code 4 (MSC_SCAN), value d0042 Event: time 1694963426.988613, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1 Event: time 1694963426.988613, type 1 (EV_KEY), code 320 (BTN_TOOL_PEN), value 1 Event: time 1694963426.988613, type 3 (EV_ABS), code 1 (ABS_Y), value 1904 Event: time 1694963426.988613, -------------- SYN_REPORT ------------ Event: time 1694963427.018593, type 4 (EV_MSC), code 4 (MSC_SCAN), value d0042 Event: time 1694963427.018593, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0 Event: time 1694963427.018593, type 1 (EV_KEY), code 320 (BTN_TOOL_PEN), value 0 Event: time 1694963427.018593, -------------- SYN_REPORT ------------ Event: time 1694963427.101061, type 4 (EV_MSC), code 4 (MSC_SCAN), value d0042 Event: time 1694963427.101061, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1 Event: time 1694963427.101061, type 1 (EV_KEY), code 320 (BTN_TOOL_PEN), value 1 Event: time 1694963427.101061, -------------- SYN_REPORT ------------ Event: time 1694963427.131005, type 4 (EV_MSC), code 4 (MSC_SCAN), value d0042 Event: time 1694963427.131005, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0 Event: time 1694963427.131005, type 1 (EV_KEY), code 320 (BTN_TOOL_PEN), value 0 Event: time 1694963427.131005, -------------- SYN_REPORT ------------ Thankyou!!!! |
![]() |
![]() |
![]() |
#90 | |
Enthusiast
![]() Posts: 25
Karma: 80
Join Date: Apr 2019
Device: Kindle Paperwhite3, Hisense A5, HyRead Gaze Pocket, Kobo Elipsa
|
Quote:
From your log, you could use below configuration to turn page. However, the event codes of three buttons are the same, I don't have idea how to do previousPage action. nextPage 1 330 1 |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Accessories New hand stick Bluetooth for turning page! | guitu | Amazon Kindle | 16 | 07-23-2021 12:20 AM |
Kobo Clara HD - Quick page turning | Rarronno | Kobo Reader | 7 | 09-06-2019 01:26 AM |
Bluetooth Page Turning | hismaimai8888 | General Discussions | 2 | 11-25-2018 11:37 AM |
Bluetooth Page Turning | copaw | General Discussions | 14 | 11-17-2015 02:09 PM |
Kobo app page turning animation?? | morgan freeman | Android Devices | 0 | 03-23-2013 11:15 PM |