diff --git a/frontend/device/kindle/device.lua b/frontend/device/kindle/device.lua index 170dd966f..7a00bc963 100644 --- a/frontend/device/kindle/device.lua +++ b/frontend/device/kindle/device.lua @@ -3,6 +3,7 @@ local UIManager local time = require("ui/time") local lfs = require("libs/libkoreader-lfs") local logger = require("logger") +local util = require("util") -- We're going to need a few & constants... local ffi = require("ffi") @@ -161,7 +162,7 @@ local Kindle = Generic:extend{ canHWDither = no, -- The time the device went into suspend suspend_time = 0, - framework_lipc_handle = frameworkStopped() + framework_lipc_handle = frameworkStopped(), } function Kindle:initNetworkManager(NetworkMgr) @@ -601,10 +602,10 @@ local KindlePaperWhite5 = Kindle:extend{ -- and the widget is designed for the Kobo Aura One anyway, so, hahaha, nope. hasNaturalLightMixer = yes, display_dpi = 300, - touch_dev = "/dev/input/by-path/platform-1001e000.i2c-event", -- NOTE: While hardware dithering (via MDP) should be a thing, it doesn't appear to do anything right now :/. canHWDither = no, canDoSwipeAnimation = yes, + -- NOTE: The Signature Edition has its input device at another path, see KindlePaperWhite5:init } local KindleBasic4 = Kindle:extend{ @@ -1233,6 +1234,12 @@ function KindlePaperWhite5:init() Kindle.init(self) + -- The SE has its input device at /dev/input/by-path/platform-10019000.i2c-platform-gpio-keys.7.auto-event + if util.pathExists("/dev/input/by-path/platform-10019000.i2c-platform-gpio-keys.7.auto-event") then + self.touch_dev = "/dev/input/by-path/platform-10019000.i2c-platform-gpio-keys.7.auto-event" + else + self.touch_dev = "/dev/input/by-path/platform-1001e000.i2c-event" + end self.input.open(self.touch_dev) self.input.open("fake_events") end diff --git a/frontend/device/kobo/device.lua b/frontend/device/kobo/device.lua index 3a3a69165..e2df4a95a 100644 --- a/frontend/device/kobo/device.lua +++ b/frontend/device/kobo/device.lua @@ -150,7 +150,7 @@ local Kobo = Generic:extend{ isSMP = no, -- Device supports "eclipse" waveform modes (i.e., optimized for nightmode). hasEclipseWfm = no, - -- Device ships with various hardware revisions under the same device code, requirign automatic hardware detection... + -- Device ships with various hardware revisions under the same device code, requiring automatic hardware detection... automagic_sysfs = false, unexpected_wakeup_count = 0,