Skip to content

Commit

Permalink
Disable the RTC alarm on shutdown (#6211)
Browse files Browse the repository at this point in the history
* Disable the RTC alarm on shutdown

* Nice typo.

* Bump base

koreader/koreader-base#1103
koreader/koreader-base#1105
koreader/koreader-base#1106
  • Loading branch information
NiLuJe committed May 31, 2020
1 parent fc6c786 commit 95567d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion base
4 changes: 4 additions & 0 deletions frontend/device/kobo/device.lua
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,10 @@ function Kobo:saveSettings()
end

function Kobo:powerOff()
-- Much like Nickel itself, disable the RTC alarm before powering down.
WakeupMgr:unsetWakeupAlarm()

-- Then shut down without init's help
os.execute("poweroff -f")
end

Expand Down

0 comments on commit 95567d8

Please sign in to comment.