Quote:
Originally Posted by geekmaster
menu.json:
PHP Code:
{ "items": [ { "name": "Frontlight Control", "priority": 0, "items": [ {"name": "Frontlight OFF", "priority": 1, "action": "echo 0 > /sys/devices/platform/imx-i2c.0/i2c-0/0-003c/max77696-bl.0/backlight/max77696-bl/brightness", "params": ""}, {"name": "Frontlight Low", "priority": 1, "action": "echo 1 > /sys/devices/platform/imx-i2c.0/i2c-0/0-003c/max77696-bl.0/backlight/max77696-bl/brightness", "params": ""}, {"name": "Frontlight Medium", "priority": 1, "action": "echo 500 > /sys/devices/platform/imx-i2c.0/i2c-0/0-003c/max77696-bl.0/backlight/max77696-bl/brightness", "params": ""}, {"name": "Frontlight High", "priority": 1, "action": "echo 999 > /sys/devices/platform/imx-i2c.0/i2c-0/0-003c/max77696-bl.0/backlight/max77696-bl/brightness", "params": ""} ] } ] }
|
I found another way to control brightness, which also allows completely off:
PHP Code:
lipc-set-prop com.lab126.powerd flIntensity 0
turns the frontlight off.
PHP Code:
lipc-set-prop com.lab126.powerd flIntensity 25
sets it to max brightness.
Notice that the first method has a range of 0-999, whilst the second uses 0-25.
Also, we discussed this in the past for the original PW1, but the /sys location was different:
https://www.mobileread.com/forums/sho....php?p=2315100
Perhaps the lipc method may be more consistent across kindle models?