|
Any luck with Kobo Remote?
Hi all. Thanks in advance, and to the op, thanks for the detailed write-up. I'm on the latest kobo firmware (4.44.23552) on my libra color. For Koreader i'm on 2025.10. Has anyone been able to get the kobo remote working in koreader? I see it as event 4. It looks like ScanCode is the only button identifier when I'm scrolling up to event 4. I don't have any bluetooth plugins installed in Koreader if that matters.
Event type 4 (Misc)
Event code 4 (ScanCode)
When I press the buttons I see:
Event: time 1765391398.834383, type 4 (Misc), code 4 (ScanCode), value 70051
Event: time 1765391398.834383 ------- Report Sync ------ x: 36808 y: 36728 p: 0 ------------
Event: time 1765391398.984333, type 4 (Misc), code 4 (ScanCode), value 70051
Event: time 1765391398.984333 ------- Report Sync ------ x: 36808 y: 36728 p: 0 ------------
Event: time 1765391401.234164, type 4 (Misc), code 4 (ScanCode), value 70052
Event: time 1765391401.234164 ------- Report Sync ------ x: 36808 y: 36728 p: 0 ------------
Event: time 1765391401.384092, type 4 (Misc), code 4 (ScanCode), value 70052
Event: time 1765391401.384092 ------- Report Sync ------ x: 36808 y: 36728 p: 0 ------------
For Step 4: [• Scroll down to the section which has the header – set up fake event map (This section has lines that look like Self.event_map[10000] = “IntoSS”)] I didn't find a section with this header or any Self.event_map in my device.lua file. The word map is found 2 times in my file:
self.input = require("device/input"):new{
device = self,
event_map = {
[35] = "SleepCover", -- KEY_H, Elipsa
[59] = "SleepCover",
[90] = "LightButton",
[102] = "Home",
[116] = "Power",
[193] = "RPgBack",
[194] = "RPgFwd",
[331] = "Eraser",
[332] = "Highlighter",
and
event_map_adapter = {
SleepCover = function(ev)
if self.input:isEvKeyPress(ev) then
return "SleepCoverClosed"
elseif self.input:isEvKeyRelease(ev) then
return "SleepCoverOpened"
end
end,
|