From 2797a74a96ac15b0b812264e7541a7213ee4d26b Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Thu, 1 Jun 2023 19:04:52 +0200 Subject: [PATCH] Kobo: Handle the newer Nia HW revision (#10520) Fix #9590, closes #9591 --- frontend/device/kobo/device.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/device/kobo/device.lua b/frontend/device/kobo/device.lua index f93b2b3db..4cefbd4cc 100644 --- a/frontend/device/kobo/device.lua +++ b/frontend/device/kobo/device.lua @@ -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