View Single Post
Old 06-17-2016, 11:08 AM   #40
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by geekmaster View Post
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?

Last edited by geekmaster; 06-17-2016 at 11:23 AM.
geekmaster is offline   Reply With Quote