Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reMarkable 2 clean wakeup from sleep #7345

Merged
merged 3 commits into from Mar 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 0 additions & 10 deletions frontend/device/remarkable/device.lua
Expand Up @@ -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()
Expand Down