diff --git a/frontend/device/remarkable/device.lua b/frontend/device/remarkable/device.lua index a562916bc..3589258dd 100644 --- a/frontend/device/remarkable/device.lua +++ b/frontend/device/remarkable/device.lua @@ -95,7 +95,13 @@ function Remarkable:setDateTime(year, month, day, hour, min, sec) return os.execute(command) == 0 end +function Remarkable:_clearScreen() + self.screen:clear() + self.screen:refreshFull() +end + function Remarkable:suspend() + self:_clearScreen() os.execute("systemctl suspend") end @@ -103,10 +109,12 @@ function Remarkable:resume() end function Remarkable:powerOff() + self:_clearScreen() os.execute("systemctl poweroff") end function Remarkable:reboot() + self:_clearScreen() os.execute("systemctl reboot") end diff --git a/plugins/coverimage.koplugin/main.lua b/plugins/coverimage.koplugin/main.lua index a73feed1a..099f73f3d 100644 --- a/plugins/coverimage.koplugin/main.lua +++ b/plugins/coverimage.koplugin/main.lua @@ -2,7 +2,7 @@ local Device = require("device") -if not Device.isAndroid() and not Device.isEmulator() then +if not (Device.isAndroid() or Device.isEmulator() or Device.isRemarkable() or Device.isPocketBook()) then return { disabled = true } end