mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Kobo Clara HD support (#4004)
Thanks to https://www.mobileread.com/forums/showpost.php?p=3702997&postcount=291 * Possibly saner H2O²r2 Touch protocol handling re #3925 * Proper fix for H2O²r2 touch protocol. Thanks to https://www.mobileread.com/forums/showpost.php?p=3704325&postcount=2904
This commit is contained in:
@@ -123,12 +123,10 @@ local KoboSnow = Kobo:new{
|
||||
}
|
||||
|
||||
-- Kobo Aura H2O2, Rev2:
|
||||
-- FIXME: This needs fixing, at the very least on the touch protocol front, c.f., #3925
|
||||
local KoboSnowRev2 = Kobo:new{
|
||||
model = "Kobo_snow",
|
||||
hasFrontlight = yes,
|
||||
touch_probe_ev_epoch_time = true,
|
||||
touch_phoenix_protocol = true,
|
||||
touch_snow_protocol = true,
|
||||
display_dpi = 265,
|
||||
-- the bezel covers the top 11 pixels:
|
||||
viewport = Geom:new{x=0, y=11, w=1080, h=1429},
|
||||
@@ -179,6 +177,18 @@ local KoboPika = Kobo:new{
|
||||
touch_alyssum_protocol = true,
|
||||
}
|
||||
|
||||
-- Kobo Clara HD:
|
||||
-- FIXME: NaturalLight doesn't exactly work right.
|
||||
-- FIXME: Suspend seems broken :( (KOReader crash).
|
||||
-- FIXME: Also, rebooting (?!!) is FUBAR, too (KOReader crash, too).
|
||||
local KoboNova = Kobo:new{
|
||||
model = "Kobo_nova",
|
||||
hasFrontlight = yes,
|
||||
touch_snow_protocol = true,
|
||||
display_dpi = 300,
|
||||
hasNaturalLight = yes,
|
||||
}
|
||||
|
||||
function Kobo:init()
|
||||
self.screen = require("ffi/framebuffer_mxcfb"):new{device = self, debug = logger.dbg}
|
||||
self.powerd = require("device/kobo/powerd"):new{device = self}
|
||||
@@ -640,6 +650,8 @@ elseif codename == "snow" and product_id == "378" then
|
||||
return KoboSnowRev2
|
||||
elseif codename == "snow" then
|
||||
return KoboSnow
|
||||
elseif codename == "nova" then
|
||||
return KoboNova
|
||||
else
|
||||
error("unrecognized Kobo model "..codename)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user