mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Legacy Kindle: Actually handle (system) power events (#7336)
Otherwise, ScreenSaver handling doesn't work, duh'. I have no idea how I managed to get that working the last time I tested it :?. Possibly I tested the final code on a K4 and not a K3? Fix #7333
This commit is contained in:
@@ -428,6 +428,7 @@ function Kindle2:init()
|
||||
}
|
||||
self.input.open("/dev/input/event0")
|
||||
self.input.open("/dev/input/event1")
|
||||
self.input.open("fake_events")
|
||||
Kindle.init(self)
|
||||
end
|
||||
|
||||
@@ -444,6 +445,7 @@ function KindleDXG:init()
|
||||
self.keyboard_layout = require("device/kindle/keyboard_layout")
|
||||
self.input.open("/dev/input/event0")
|
||||
self.input.open("/dev/input/event1")
|
||||
self.input.open("fake_events")
|
||||
Kindle.init(self)
|
||||
end
|
||||
|
||||
@@ -461,6 +463,7 @@ function Kindle3:init()
|
||||
self.keyboard_layout = require("device/kindle/keyboard_layout")
|
||||
self.input.open("/dev/input/event0")
|
||||
self.input.open("/dev/input/event1")
|
||||
self.input.open("fake_events")
|
||||
Kindle.init(self)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user