mirror of
https://github.com/pjgowtham/android_device_realme_ferrarri.git
synced 2026-10-27 06:30:09 +00:00
ferrari: Set stock brightness levels
Minimum brightness is obtained from stock by disabling auto-brightness and operating the brightness slider to minimum with running cat /sys/class/backlight/panel0-backlight/brightness This fetches a value of 4, the value that we currently have is 4/2047. However, the display dtsi exposes the range of 1 - 4095, so 4/4095 is being applied. The same value is applied for both dim and doze. Default brightness setting is applied as 1023/4095 Change-Id: I0b2513be866728f3ddf93f7fbe296d78d862c813
This commit is contained in:
1 parent
94ab874c6d
commit
f78d12b278
1 file changed
+18
-13
@@ -343,27 +343,32 @@
|
|||||||
<item>255</item>
|
<item>255</item>
|
||||||
</integer-array>
|
</integer-array>
|
||||||
|
|
||||||
<!-- Screen brightness used to dim the screen when the user activity
|
<!-- Minimum screen brightness setting allowed by power manager.
|
||||||
timeout expires. May be less than the minimum allowed brightness setting
|
|
||||||
that can be set by the user. -->
|
|
||||||
<integer name="config_screenBrightnessDim">6</integer>
|
|
||||||
|
|
||||||
<!-- Default screen brightness setting set.
|
|
||||||
-2 is invalid so setting will resort to int value specified above.
|
-2 is invalid so setting will resort to int value specified above.
|
||||||
Must be in the range specified by minimum and maximum. -->
|
Set this to 0.0 to allow screen to go to minimal brightness.
|
||||||
<item type="dimen" name="config_screenBrightnessSettingDefaultFloat">0.45882353</item>
|
The user is forbidden from setting the brightness below this level. -->
|
||||||
|
<item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">0.0009768</item>
|
||||||
|
|
||||||
<!-- Maximum screen brightness allowed by the power manager.
|
<!-- Maximum screen brightness allowed by the power manager.
|
||||||
-2 is invalid so setting will resort to int value specified above.
|
-2 is invalid so setting will resort to int value specified above.
|
||||||
Set this to 1.0 for maximum brightness range.
|
Set this to 1.0 for maximum brightness range.
|
||||||
The user is forbidden from setting the brightness above this level. -->
|
The user is forbidden from setting the brightness above this level. -->
|
||||||
<item type="dimen" name="config_screenBrightnessSettingMaximumFloat">1.0</item>
|
<item name="config_screenBrightnessSettingMaximumFloat" format="float" type="dimen">1.0</item>
|
||||||
|
|
||||||
<!-- Minimum screen brightness setting allowed by power manager.
|
<!-- Default screen brightness setting set.
|
||||||
-2 is invalid so setting will resort to int value specified above.
|
-2 is invalid so setting will resort to int value specified above.
|
||||||
Set this to 0.0 to allow screen to go to minimal brightness.
|
Must be in the range specified by minimum and maximum. -->
|
||||||
The user is forbidden from setting the brightness below this level. -->
|
<item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.2498</item>
|
||||||
<item type="dimen" name="config_screenBrightnessSettingMinimumFloat">0.001954079</item>
|
|
||||||
|
<!-- Screen brightness used to dim the screen while dozing in a very low power state.
|
||||||
|
May be less than the minimum allowed brightness setting
|
||||||
|
that can be set by the user. -->
|
||||||
|
<item name="config_screenBrightnessDozeFloat" format="float" type="dimen">0.0009768</item>
|
||||||
|
|
||||||
|
<!-- Screen brightness used to dim the screen when the user activity
|
||||||
|
timeout expires. May be less than the minimum allowed brightness setting
|
||||||
|
that can be set by the user. -->
|
||||||
|
<item name="config_screenBrightnessDimFloat" format="float" type="dimen">0.0009768</item>
|
||||||
|
|
||||||
<!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
|
<!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
|
||||||
for debouncing the light sensor. Different constants are used to debounce the light sensor
|
for debouncing the light sensor. Different constants are used to debounce the light sensor
|
||||||
|
|||||||
Reference in new issue
Block a user