Kindle: Handle the PW5 SE properly (#11049)

Need to poke elsewhere for its Input device

Fix #11048
reviewable/pr11051/r1
NiLuJe 6 months ago committed by GitHub
parent 2c5d618f6b
commit 12bea3b14b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 <linux/fb.h> & <linux/input.h> 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

@ -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,

Loading…
Cancel
Save