From ab4b4b31bdee609e5eeeda69bc8ca0645cd455d4 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Wed, 21 Sep 2022 23:25:36 +0200 Subject: [PATCH] Kobo: Initial Clara 2E support (#9545) Will need an actual tester to confirm FBInk gets the rotation right, as well as the touch input & frontlight situation. * Bump base https://github.com/koreader/koreader-base/pull/1519 https://github.com/koreader/koreader-base/pull/1521 --- base | 2 +- frontend/device/kobo/device.lua | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/base b/base index bcf5ab2ff..452695ff9 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit bcf5ab2fff5c3b2968e0903986aba15d7cbceece +Subproject commit 452695ff92a63476e90d9762f172c1486276901a diff --git a/frontend/device/kobo/device.lua b/frontend/device/kobo/device.lua index a74bace07..99a54d0da 100644 --- a/frontend/device/kobo/device.lua +++ b/frontend/device/kobo/device.lua @@ -441,6 +441,25 @@ local KoboIo = Kobo:new{ automagic_sysfs = true, } +-- Kobo Clara 2E: +local KoboGoldfinch = Kobo:new{ + model = "Kobo_goldfinch", + isMk7 = yes, + hasEclipseWfm = yes, + canToggleChargingLED = yes, + hasFrontlight = yes, + display_dpi = 300, + --- @fixme: to be confirmed! + hasNaturalLight = yes, + frontlight_settings = { + frontlight_white = "/sys/class/backlight/mxc_msp430.0/brightness", + frontlight_mixer = "/sys/class/backlight/lm3630a_led/color", + nl_min = 0, + nl_max = 10, + nl_inverted = true, + }, +} + function Kobo:setupChargingLED() if G_reader_settings:nilOrTrue("enable_charging_led") then if self:hasAuxBattery() and self.powerd:isAuxBatteryConnected() then @@ -1384,6 +1403,8 @@ elseif codename == "cadmus" then return KoboCadmus elseif codename == "io" then return KoboIo +elseif codename == "goldfinch" then + return KoboGoldfinch else error("unrecognized Kobo model ".. codename .. " with device id " .. product_id) end