mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix frontlight sysfs path on the PW4 (#4350)
Fix toggling the FL on/off (as that's the only instance we're not using lipc)
This commit is contained in:
@@ -633,12 +633,11 @@ function KindleBasic2:init()
|
||||
self.input.open("fake_events")
|
||||
end
|
||||
|
||||
-- NOTE: FrontLight might be wrong, TBC!
|
||||
function KindlePaperWhite4:init()
|
||||
self.screen = require("ffi/framebuffer_mxcfb"):new{device = self, debug = logger.dbg}
|
||||
self.powerd = require("device/kindle/powerd"):new{
|
||||
device = self,
|
||||
fl_intensity_file = "/sys/class/backlight/max77696-bl/brightness",
|
||||
fl_intensity_file = "/sys/class/backlight/bl/brightness",
|
||||
batt_capacity_file = "/sys/class/power_supply/bd71827_bat/capacity",
|
||||
is_charging_file = "/sys/class/power_supply/bd71827_bat/charging",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user