reMarkable 2 clean wakeup from sleep (#7345)

pull/7393/head
Glen Sawyer 3 years ago committed by GitHub
parent 053df60553
commit 15ef1a3a1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1 +1 @@
Subproject commit f0436c6fed2cc373f8931436578fc1f271e53ce1
Subproject commit 30c52feddbbb18fff7e1400751e442cbd643ab77

@ -184,16 +184,6 @@ end
function Remarkable:suspend()
os.execute("./disable-wifi.sh")
os.execute("systemctl suspend")
if isRm2 then
-- While device is suspended, when the user presses the power button and wakes up the device,
-- a "Power" event is NOT sent.
-- So we schedule a manual `UIManager:resume` call just far enough in the future that it won't
-- trigger before the `systemctl suspend` command finishes suspending the device
local UIManager = require("ui/uimanager")
UIManager:scheduleIn(0.5, function()
UIManager:resume()
end)
end
end
function Remarkable:powerOff()

Loading…
Cancel
Save