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:
NiLuJe
2021-02-22 18:55:24 +01:00
committed by GitHub
parent 1bd4636a03
commit 64611e6acb

View File

@@ -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