Kobo: Handle the newer Nia HW revision (#10520)

Fix #9590, closes #9591
reviewable/pr10523/r1
NiLuJe 12 months ago committed by GitHub
parent 66b661b726
commit 2797a74a96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -380,7 +380,6 @@ local KoboStorm = Kobo:extend{
}
-- Kobo Nia:
--- @fixme: Mostly untested, assume it's Clara-ish for now.
local KoboLuna = Kobo:extend{
model = "Kobo_luna",
isMk7 = yes,
@ -389,6 +388,8 @@ local KoboLuna = Kobo:extend{
touch_phoenix_protocol = true,
display_dpi = 212,
hasReliableMxcWaitFor = no, -- Board is similar to the Libra 2, but it's such an unpopular device that reports are scarce.
-- Handle the HW revision w/ a BD71828 PMIC
automagic_sysfs = true,
}
-- Kobo Elipsa
@ -629,7 +630,7 @@ function Kobo:init()
-- Power button (this usually ends up in ntx_dev, except with some PMICs)
if util.fileExists("/dev/input/by-path/platform-bd71828-pwrkey-event") then
-- Libra 2 w/ a BD71828 PMIC
-- Libra 2 & Nia w/ a BD71828 PMIC
self.power_dev = "/dev/input/by-path/platform-bd71828-pwrkey-event"
elseif util.fileExists("/dev/input/by-path/platform-bd71828-pwrkey.4.auto-event") then
-- Sage w/ a BD71828 PMIC

Loading…
Cancel
Save