mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Kobo: Handle power button input device on new Sage HW revision (#9896)
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com> Co-authored-by: NiLuJe <ninuje@gmail.com>
This commit is contained in:
@@ -488,6 +488,7 @@ local KoboCadmus = Kobo:extend{
|
||||
ntx_dev = "/dev/input/by-path/platform-ntx_event0-event",
|
||||
touch_dev = "/dev/input/by-path/platform-0-0010-event",
|
||||
isSMP = yes,
|
||||
automagic_sysfs = true,
|
||||
}
|
||||
|
||||
-- Kobo Libra 2:
|
||||
@@ -674,6 +675,9 @@ function Kobo:init()
|
||||
if util.fileExists("/dev/input/by-path/platform-bd71828-pwrkey-event") then
|
||||
-- Libra 2 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
|
||||
-- Fix for Kobo Sage, presumably w/ a BD71828 PMIC?
|
||||
self.power_dev = "/dev/input/by-path/platform-bd71828-pwrkey.4.auto-event"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user