mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
@@ -15,10 +15,12 @@ function KindlePowerD:init()
|
||||
if lipc then
|
||||
self.lipc_handle = lipc.init("com.github.koreader.kindlepowerd")
|
||||
end
|
||||
if self.lipc_handle then
|
||||
self.flIntensity = self.lipc_handle:get_int_property("com.lab126.powerd", "flIntensity")
|
||||
else
|
||||
self.flIntensity = self:read_int_file(self.fl_intensity_file)
|
||||
if self.device.hasFrontlight() then
|
||||
if self.lipc_handle ~= nil then
|
||||
self.flIntensity = self.lipc_handle:get_int_property("com.lab126.powerd", "flIntensity")
|
||||
else
|
||||
self.flIntensity = self:read_int_file(self.fl_intensity_file)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -29,6 +29,13 @@ case "${kmodel}" in
|
||||
EIPS_X_RES=16
|
||||
EIPS_Y_RES=24 # Manually mesured, should be accurate.
|
||||
;;
|
||||
"C6" | "DD" )
|
||||
# KT2...
|
||||
SCREEN_X_RES=608 # NOTE: Might actually be 600...
|
||||
SCREEN_Y_RES=800
|
||||
EIPS_X_RES=16
|
||||
EIPS_Y_RES=24
|
||||
;;
|
||||
* )
|
||||
# Handle legacy devices...
|
||||
if [ -f "/etc/rc.d/functions" ] && grep "EIPS" "/etc/rc.d/functions" > /dev/null 2>&1 ; then
|
||||
|
||||
Reference in New Issue
Block a user