Kobo: Autodetect the Elan input device on both i2c buses (#9322)

Hadn't noticed that the new Libra 2 has it on a different bus than the
Sage/Elipsa.

(Harmless because we kept the Sage & Elipsa hardcoded).

c.f., https://www.mobileread.com/forums/showpost.php?p=4238067&postcount=869,
thanks to @baskerville for the poke ;).
reviewable/pr9325/r1
NiLuJe 2 years ago committed by GitHub
parent b6f951e523
commit e679b00d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -549,8 +549,11 @@ function Kobo:init()
-- Input
if util.fileExists("/dev/input/by-path/platform-1-0010-event") then
-- Elan (HWConfig TouchCtrl is ekth6)
-- Elan (HWConfig TouchCtrl is ekth6) on i2c bus 1
self.touch_dev = "/dev/input/by-path/platform-1-0010-event"
elseif util.fileExists("/dev/input/by-path/platform-0-0010-event") then
-- Elan (HWConfig TouchCtrl is ekth6) on i2c bus 0
self.touch_dev = "/dev/input/by-path/platform-0-0010-event"
else
self.touch_dev = "/dev/input/event1"
end

Loading…
Cancel
Save