Kobo Frontlight Tweaks

Now the frontlight remains unchanged from Nickel to koreader and vice
versa.
Also ffi/kobolight.lua has been changed to allow for usage of the toggle
button in the filemanager.
This commit is contained in:
Markismus
2014-05-02 16:06:18 +02:00
parent dc8b1f365b
commit a153286f44
3 changed files with 20 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
#!./koreader-base
require "defaults"
package.path = "./frontend/?.lua;./?.lua"
package.cpath = "?.so;/usr/lib/lua/?.so"
package.path = "?.lua;common/?.lua;frontend/?.lua"
package.cpath = "?.so;common/?.so;/usr/lib/lua/?.so"
local DocSettings = require("docsettings")
local _ = require("gettext")
@@ -184,7 +184,8 @@ do
if powerd and powerd.restore_settings then
local intensity = G_reader_settings:readSetting("frontlight_intensity")
intensity = intensity or powerd.flIntensity
powerd:setIntensity(intensity)
powerd:setIntensityWithoutHW(intensity)
-- powerd:setIntensity(intensity)
end
end