From 05769872c717d1e6dc41f5d83d4c59ac92bfd766 Mon Sep 17 00:00:00 2001 From: Hzj_jie Date: Tue, 20 Jun 2017 23:57:18 -0700 Subject: [PATCH] Allow Kobo to entirely turn off the front light. --- frontend/device/kobo/powerd.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/device/kobo/powerd.lua b/frontend/device/kobo/powerd.lua index 8100da136..f0a5176ab 100644 --- a/frontend/device/kobo/powerd.lua +++ b/frontend/device/kobo/powerd.lua @@ -43,6 +43,8 @@ function KoboPowerD:frontlightIntensityHW() return 20 end +function BasePowerD:turnOffFrontlightHW() self:_setIntensity(0) end + function KoboPowerD:setIntensityHW(intensity) if self.fl == nil then return end self.fl:setBrightness(intensity)