18c2ecf20Sopenharmony_ciWhat: /sys/class/backlight/<backlight>/scale 28c2ecf20Sopenharmony_ciDate: July 2019 38c2ecf20Sopenharmony_ciKernelVersion: 5.4 48c2ecf20Sopenharmony_ciContact: Daniel Thompson <daniel.thompson@linaro.org> 58c2ecf20Sopenharmony_ciDescription: 68c2ecf20Sopenharmony_ci Description of the scale of the brightness curve. 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci The human eye senses brightness approximately logarithmically, 98c2ecf20Sopenharmony_ci hence linear changes in brightness are perceived as being 108c2ecf20Sopenharmony_ci non-linear. To achieve a linear perception of brightness changes 118c2ecf20Sopenharmony_ci controls like sliders need to apply a logarithmic mapping for 128c2ecf20Sopenharmony_ci backlights with a linear brightness curve. 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci Possible values of the attribute are: 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci unknown 178c2ecf20Sopenharmony_ci The scale of the brightness curve is unknown. 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci linear 208c2ecf20Sopenharmony_ci The brightness changes linearly with each step. Brightness 218c2ecf20Sopenharmony_ci controls should apply a logarithmic mapping for a linear 228c2ecf20Sopenharmony_ci perception. 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci non-linear 258c2ecf20Sopenharmony_ci The brightness changes non-linearly with each step. Brightness 268c2ecf20Sopenharmony_ci controls should use a linear mapping for a linear perception. 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ciWhat: /sys/class/backlight/<backlight>/ambient_light_level 298c2ecf20Sopenharmony_ciDate: Apr, 2010 308c2ecf20Sopenharmony_ciKernelVersion: v2.6.35 318c2ecf20Sopenharmony_ciContact: Michael Hennerich <michael.hennerich@analog.com> 328c2ecf20Sopenharmony_ciDescription: 338c2ecf20Sopenharmony_ci (RO) Get conversion value of the light sensor. 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci The value is automatically updated every 80 ms when the 368c2ecf20Sopenharmony_ci light sensor is enabled. 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci The value range is device-driver specific: 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci For ADP8870: 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci It returns integer between 0 (dark) and 8000 (max ambient 438c2ecf20Sopenharmony_ci brightness). 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci For ADP8860: 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci It returns a 13-bits integer. 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ciWhat: /sys/class/backlight/<backlight>/ambient_light_zone 508c2ecf20Sopenharmony_ciDate: Apr, 2010 518c2ecf20Sopenharmony_ciKernelVersion: v2.6.35 528c2ecf20Sopenharmony_ciContact: Michael Hennerich <michael.hennerich@analog.com>, 538c2ecf20Sopenharmony_ci device-drivers-devel@blackfin.uclinux.org 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ciDescription: 568c2ecf20Sopenharmony_ci (RW) Read or write the specific brightness level at which the 578c2ecf20Sopenharmony_ci backlight operates. 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci The value meaning is device-driver specific: 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci For ADP8860: 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci == ========================== 648c2ecf20Sopenharmony_ci 0 Off: Backlight set to 0 mA 658c2ecf20Sopenharmony_ci 1 Level 1: daylight 668c2ecf20Sopenharmony_ci 2 Level 2: bright 678c2ecf20Sopenharmony_ci 3 Level 3: dark 688c2ecf20Sopenharmony_ci == ========================== 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ci For ADP8870: 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ci == ========================== 738c2ecf20Sopenharmony_ci 0 Off: Backlight set to 0 mA 748c2ecf20Sopenharmony_ci 1 Level 1: daylight 758c2ecf20Sopenharmony_ci 2 Level 2: bright 768c2ecf20Sopenharmony_ci 3 Level 3: office 778c2ecf20Sopenharmony_ci 4 Level 4: indoor 788c2ecf20Sopenharmony_ci 5 Level 5: dark 798c2ecf20Sopenharmony_ci == ========================== 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ci Writing 0 returns to normal/automatic ambient light level 828c2ecf20Sopenharmony_ci operation. 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci It can be enabled by writing the value stored in 858c2ecf20Sopenharmony_ci /sys/class/backlight/<backlight>/max_brightness to 868c2ecf20Sopenharmony_ci /sys/class/backlight/<backlight>/brightness. 87