|
|
@ -95,7 +95,13 @@ function Remarkable:setDateTime(year, month, day, hour, min, sec)
|
|
|
|
return os.execute(command) == 0
|
|
|
|
return os.execute(command) == 0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Remarkable:_clearScreen()
|
|
|
|
|
|
|
|
self.screen:clear()
|
|
|
|
|
|
|
|
self.screen:refreshFull()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function Remarkable:suspend()
|
|
|
|
function Remarkable:suspend()
|
|
|
|
|
|
|
|
self:_clearScreen()
|
|
|
|
os.execute("systemctl suspend")
|
|
|
|
os.execute("systemctl suspend")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
@ -103,10 +109,12 @@ function Remarkable:resume()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function Remarkable:powerOff()
|
|
|
|
function Remarkable:powerOff()
|
|
|
|
|
|
|
|
self:_clearScreen()
|
|
|
|
os.execute("systemctl poweroff")
|
|
|
|
os.execute("systemctl poweroff")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function Remarkable:reboot()
|
|
|
|
function Remarkable:reboot()
|
|
|
|
|
|
|
|
self:_clearScreen()
|
|
|
|
os.execute("systemctl reboot")
|
|
|
|
os.execute("systemctl reboot")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|