mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
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 ;).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user