phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.41k stars 659 forks source link

max brightness is too low on samsung s10e snapdragon #2543

Open woyaojizhu8 opened 1 year ago

woyaojizhu8 commented 1 year ago

Current Behavior:

max brightness is too low . ### Describe the bug max brightness is too low . I have tried these methods: 1. Force alternative backlight scale option in phh treble settings : didn't work. 2. setprop persist.sys.qcom-brightness 8192 : didn't work . 3. ``` cat /sys/class/backlight/panel0-backlight/max_brightness 50000 echo "50000" > cat /sys/class/backlight/panel0-backlight/brightness 50000 ``` This can make the brightness higher for a few seconds but still lower than the max brightness in oneui. 4. ``` > adb shell $ su # lightsctl BACKLIGHT 80 # Segmentation fault ``` 5. `setprop persist.sys.phh.samsung_backlight 1` : didn't work. 6. setprop persist.sys.qcom-brightness 50000 : didn't work. ### To Reproduce 1. Go to '...' 2. Click on '....' 7. Scroll down to '....' 8. See error ### Expected behavior The max brightness is the same as the max brightness in oneui. ### Photos ### Smartphone (please complete the following information): - Device: samsung galaxy s10e snapdragon g9700 - Build Flavor: system-squeak-arm64-ab-vanilla.img.xz - Version v416 ### Additional context
SowTag commented 1 year ago

Try running adb shell setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness) in ADB or setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness) in a root shell.

According to this, you can also enable the alternate backlight scale and linear brightness slider in phh settings to fix it.

Oelun commented 1 year ago

It is possible that various "auto brightness/picture improve" daemons. Try to kill one by one suspicious /vendor processes. For example, for mediatek, daemon vendor.mediatek.hardware.pq@2.2-service control brightness, simply delete it for fix dim brighness in gsi.

T0UB3S commented 6 months ago

It is possible that various "auto brightness/picture improve" daemons. Try to kill one by one suspicious /vendor processes. For example, for mediatek, daemon vendor.mediatek.hardware.pq@2.2-service control brightness, simply delete it for fix dim brighness in gsi.

Hello! You know that I have had the same problem as many with the GSI ROMS, regarding the low brightness (approximately half of what it would be in my stock firmware) I tried your command for mediatek devices and after restarting although I think I notice a slight improvement, It is still very low and the difference after deleting the daemon is that the brightness is lowered to darkness in the slider.

Do you know if there is anything else to increase the maximum brightness on MTK devices that run GSI? (helio g88)

SowTag commented 6 months ago

Does your phone have a device-specific overlay?

T0UB3S commented 6 months ago

Does your phone have a device-specific overlay?

I managed to solve the low brightness problem with a magisk module that solved the problem on the Redmi Note 10 (camellia), I thought it wouldn't work, but it is compatible.