How to set brightness through ADB on nexus 7

There is a new binary shipping with Android Jellybean 4.2, which can be used to directly read/write to the system settings provider, accessible via command line.

For example: in order to increase brightness of the screen, use below command:

adb shell settings put system screen_brightness 200

Read more about SCREEN_BRIGHTNESS Note that the range of values is [0 - 255]


The range of values is not necessarily from 0 - 255. On my OnePlus for example it ranges from 0-2047. If you want to know yours just set the brightness slider to max and then type: adb shell settings get system screen_brightness.


You should use the pwm-backlight!