From 15ef1a3a1b510c0bcc0c17c27f5f7369b707e8ec Mon Sep 17 00:00:00 2001 From: Glen Sawyer Date: Sat, 6 Mar 2021 13:03:20 -0700 Subject: [PATCH] reMarkable 2 clean wakeup from sleep (#7345) --- base | 2 +- frontend/device/remarkable/device.lua | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/base b/base index f0436c6fe..30c52fedd 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit f0436c6fed2cc373f8931436578fc1f271e53ce1 +Subproject commit 30c52feddbbb18fff7e1400751e442cbd643ab77 diff --git a/frontend/device/remarkable/device.lua b/frontend/device/remarkable/device.lua index b2ae96d3b..1e8068e69 100644 --- a/frontend/device/remarkable/device.lua +++ b/frontend/device/remarkable/device.lua @@ -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()