mirror of
https://github.com/pjgowtham/android_device_realme_ferrarri.git
synced 2026-07-24 07:30:48 +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:
@@ -343,27 +343,32 @@
|
||||
<item>255</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- 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. -->
|
||||
<integer name="config_screenBrightnessDim">6</integer>
|
||||
|
||||
<!-- Default screen brightness setting set.
|
||||
<!-- Minimum screen brightness setting allowed by power manager.
|
||||
-2 is invalid so setting will resort to int value specified above.
|
||||
Must be in the range specified by minimum and maximum. -->
|
||||
<item type="dimen" name="config_screenBrightnessSettingDefaultFloat">0.45882353</item>
|
||||
Set this to 0.0 to allow screen to go to minimal brightness.
|
||||
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.
|
||||
-2 is invalid so setting will resort to int value specified above.
|
||||
Set this to 1.0 for maximum brightness range.
|
||||
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.
|
||||
Set this to 0.0 to allow screen to go to minimal brightness.
|
||||
The user is forbidden from setting the brightness below this level. -->
|
||||
<item type="dimen" name="config_screenBrightnessSettingMinimumFloat">0.001954079</item>
|
||||
Must be in the range specified by minimum and maximum. -->
|
||||
<item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.2498</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
|
||||
for debouncing the light sensor. Different constants are used to debounce the light sensor
|
||||
|
||||
Reference in New Issue
Block a user