Skip to content

Instantly share code, notes, and snippets.

View oculusgrift's full-sized avatar

oculusgrift

View GitHub Profile
@oculusgrift
oculusgrift / 1-kindle-force-enable-screensaver.lua
Created July 12, 2025 18:43
KOReader user patch to always enable Gear -> Screen -> Sleep Screen screen saver configuration on any Kindle.
-- 1-kindle-force-enable-screensaver.lua
--
-- This overrides the device configuration for Kindles to always indicate it
-- supports a screensaver.
--
-- To use, create a patches folder in the KOReader directory, place the patch
-- there, and restart KOReader.
--
-- For example, on a Kindle PW4 it should be placed here:
-- /mnt/us/koreader/patches/1-kindle-force-enable-screensaver.lua