[ROOT] Brightness mod for Treble 9.0 (version 2) - Huawei P10 Themes, Apps, and Mods

Hi everyone!
As you may know, the brightness on the phh-treble (the 9.0 version) is really bright even at the minimum value.
So I have created a small app that contains a quick settings tile, and with that you can set the brightness to a lower value.
Supported brightness values:
60, 100, 200 (system minimum is 345)
The program requires root access to run the commands on the sysfs, so when you put it on the quick settings place, a su window will appear, where you can grant (or deny ) access.
The program is provided AS IS, and please be aware that I am not responsible for any damage caused to you or to your device.
Changelog:
version 2
- 3 different brightness values, always starting from the maximum if the brightness is above 200
version 1
- Initial release

Thank you so much!
Brightness is an issue on treble roms, thanks for the fix bro

Version 2 released, see changelog in the first post!

Related

[Q] How to lower minimum screen brightness?

I know this is possible in CM9's display settings, but I'm currently running AOKP. Is there any other way to lower the minimum screen brightness?
I've given Tasker root permissions, approved it as a device administrator, and approved it as an accessibility service. Still, when I use a task to lower the brightness to very low levels, the brightness will only hold for a fraction of a second before it ramps up to the factory minimum.
So is there some system component I can modify to allow lower brightness, or is this only available as a ROM control like in CM9?
byrong said:
So is there some system component I can modify to allow lower brightness, or is this only available as a ROM control like in CM9?
Click to expand...
Click to collapse
FWIW the lowest possible brightness setting can't be altered via the CM9 settings, only the auto brightness levels, both sensor input levels ("bins") and the brightness level associated with that input/bin. The minimum value of 19 for the lowest slot can't be lowered further. There are other display parameters (related to brightness) that can also be altered in the CM9 settings, but it won't accept a value less than 19.
Edit: I see from a link in your sig that you're familiar with the custom levels
Yes we can do it in the frameworks to go lower than 19. I did it on other phones. I'm not sure why it hasnt been done yet for nexus, and ive been too lazy myself.
But we can even take it down to zero or 4-5 etc so its much dimmer at night. Its on my to do list.
Also i posted some kernel code in a similar thread where this question was already asked. But mod the framework is much quicker.
RogerPodacter said:
Yes we can do it in the frameworks to go lower than 19. I did it on other phones. I'm not sure why it hasnt been done yet for nexus, and ive been too lazy myself.
But we can even take it down to zero or 4-5 etc so its much dimmer at night. Its on my to do list.
Also i posted some kernel code in a similar thread where this question was already asked. But mod the framework is much quicker.
Click to expand...
Click to collapse
I should have clarified more clearly that my post above was regarding doing it via the CM settings.
I'll mod mine...at some point...but like you, too lazy for something that won't blow me away.
You want this app, works great https://play.google.com/store/apps/...yZy5wcm9qZWN0dm9vZG9vLmRpc3BsYXlmaWx0ZXIiXQ..
Sent from my Galaxy Nexus GSM using Tapatalk expect possible typos
I'm an idiot; I just found it in AOKP. It's in the custom backlight settings.
My experience does not mirror you guys. When I decrease the "screen dim level" in the custom brightness settings, it applies globally. I just did it in AOKP the same way I used to in CM9 and now with Tasker I've taken the screen all the way down to 1
Is there any way to decrease the minimum brightness on stock?
aidanbree said:
Is there any way to decrease the minimum brightness on stock?
Click to expand...
Click to collapse
Yes with above linked app. I confirm it works on stock
Sent from my Galaxy Nexus using Tapatalk
I've used a similar app called Screen Filter. My only problem with these types of apps is that I find the black/gray filter they use greatly decreases contrast at low brightness levels (more so than a "true" brightness level at an equivalent setting). Still, if you are running a setup in which they are your only option, they certainly beat having nothing.
The problem with using a screen filter is that it limits the maximum brightness when in sunlight.
I only want to affect the minimum as it is too bright.
Has anyone been able to do this on a stock rom? I too think that the minimum brightness is too high, but I don't want to use the above linked program because it also affects the maximum brightness too. I would like to be able to set custom light levels as per cm9/cm10 and pretty much any custom ROM right now, albeit with my stock ROM. Any flashable zips out there?
Cheers,
Dan

[app][2.2+]velis auto brightness

Velis Auto Brightness​
Disclaimer: I am not the creator of the App, i am just sharing this in our SXS forum since we don't have Auto Brightness working so well.. I am not responsible for any damage that happens to your device..
What this App does:
Velis auto brightness aims to provide the best possible brightness experience by using your devices sensors to determine the environment you're in. You have complete control over how much brightness will be applied for any given light condition, from selecting the sensors used to fully customizable brightness graph. This is a replacement for system provided auto-brightness functionality usually found in Settings / Display / Brightness
Features:
- Initial configuration wizard for an easy start
- User-selectable sensors: light, proximity (cameras planned soon)
- Supports custom sensors on phones such as Sony Xperia
- Brightness presets for every taste and screen
- Profiles (save the brightness graph under your own name)
- Fully customizable brightness graph to fit your needs or cover your sensor’s faults
- Extensive sensitivity adjustments (light change threshold, smoothing times up / down, boost threshold)
- Superdimming to make those shades really dark
- Excluded apps (will disable Velis Auto Brightness when they are on top)
- Launcher widget with on/off button, profile select button and a brightness graph
- Tasker / Locale support for many sensor readings and app settings
- Convenient in-app store for premium content (some tasker and widget functionality) and developer support
- Custom app language
- Additional brightness when charging
- Only uses sensors when screen is on conserving battery
Link:
https://play.google.com/store/apps/details?id=com.velis.auto.brightness
CREDITS:
velis74 [The creator of the App]
NOTE: Confirmed working like a charm on Stock or Stock based ROMs, CM10/CM10.1 users can try and confirm..
Its working for me!
But in stock jb I have auto brightness
rErEaT said:
Its working for me!
But in stock jb I have auto brightness
Click to expand...
Click to collapse
Stock JB's sensitivity isn't that good.. This app makes Auto Brightness same as in every Samsung phone's Auto brightness feature.. Changes according to the light sensed by proximity sensor..

Brightness: no change from 0 - 12%

Note 8.0 N5110 (WiFi), CyanogenMod 13. I've never used the stock firmware.
There is no gradual change of the screen brightnees on my device from 0 - 12%, the brightness remains the same when i move the slider until 12%.
Then after moving the slider to about 13% the brightness "jumps" to that value at once.
This is the same when using the system brightness slider (that does not show the percentage) and the apps: Display Brightness & ScreenDim (both with a percentage slider).
Does anybody else have a similar issue under CM13 (or CM12/11, or the stock firmware)?
How could i solve this?
nicky-xda said:
Note 8.0 WiFi, CyanogenMod 13. I've never used the stock firmware. There is no gradual change of the screen brightnees on my device from 0 - 12%, the brightness remains the same when i move the slider until 12%. Then after moving the slider to about 13% the brightness "jumps" to that value at once. This is the same when using the system brightness slider (that does not show the percentage) and the apps: Display Brightness & ScreenDim (both with a percentage slider). Does anybody else have a similar issue under CM13 (or CM12/11, or the stock fiemware)? How could i solve this?
Click to expand...
Click to collapse
when you say "note 8.0 wifi" do you mean n5110? It's probably not something that can be fixed by a user.
Yes, N5110.
Sure, i can imagine that it'd be not easy to fix by a user. But i'm still very much interested to at least know...
- if it's a hardware "feature" of my device/display only, independant of the installed ROM or
- a generall bug of CM13 on the note 8 or a bug of CM13 on my device only or
- a quite different thing that could cause that?
That's why my question again: does anybody of you guys here experience a similar issue under any ROM having no change of the display brightness when moving the slider between 0 - 12%?
nicky-xda said:
Yes, N5110.
Sure, i can imagine that it'd be not easy to fix by a user. But i'm still very much interested to at least know...
- if it's a hardware "feature" of my device/display only, independant of the installed ROM or
- a generall bug of CM13 on the note 8 or a bug of CM13 on my device only or
- a quite different thing that could cause that?
That's why my question again: does anybody of you guys here experience a similar issue under any ROM having no change of the display brightness when moving the slider between 0 - 12%?
Click to expand...
Click to collapse
Using latest RR 5.7.4 my n5110 acts as yours, nothing happens until around 12%. I don't really think it's a problem, just the zero value on the slider is incorrectly set.
I made a build of RR tonight with a tentative change to hopefully fix this, but it made no change.
This change from S4 gives a clue that it's panel doesn't go below a certain value http://review.cyanogenmod.org/#/c/158859/ so I tried adding this.
I've always found the brightness slider to be weird on note 8 (compared to my S4)., but my problem was more the non-linearity of the slider. I only have experience of stock (4.2/4.4) and CM13 myself, so would be interested in how LL based roms sliders function.
Thanks a lot, i'm "glad" to know this is not only my device with this weird acting
...just the zero value on the slider is incorrectly set...
Click to expand...
Click to collapse
Sure, probably something of that kind.
But what's strange is the following: the above mentioned (btw: excellent) App "Display Brightness 5.1" is able to "dim" the brightness below the value of "0" setting a color layer over the screen.
This app begins to put its "below-0-layer" exactly at the value of 0 on its percentage slider and not at 12%. So it seems that this app actually takes the system-brightness of 0% as the "real" 0 and not the value of 12%. And the app is not able to change the brightness between 0 - 12% either.

MIUI Auto Brightness Fix (Magisk Mod)

Do you have problems with auto brightness in MIUI roms? Your screen brightness gets extremely dark in low light conditions, or the brightness spikes just with a few increase of light?
For low brightness problem, actually you can adjust the minimum autobrightness in slider bar, but sometimes it will reset back to default minimum brightness. For example if you turn off auto brightness in game, when you turn it on again, it won't resume your settings. As a result the screen will get darker than your adjustment.
I created magisk module to fix that. This will increase the minimum brightness in low light, and also reduce the over brightness in medium and high ambient light. The result will be smoother auto brightness step, and be more convenient for your eyes!
There are two modules, one for Miui 10 running Android Pie, and the other ones for Miui 10 running Android Oreo. Dont install wrong module, because there are much more brightness values in Android P than O.
The Oreo version may be not as good as Pie version, because i tested it in Redmi Note 5. My Mi Mix 2s currently running Miui 10 P beta 8.8.16 for Pie version testing. But it should give the same result. Oreo version works in Miui 9 too, but may results different.
So what this module do? It adds framework-res to the /system/media/theme/default. With a magisk module you can do it systemlessly! To install it, just download the module then browse it in Magisk Manager.
If you dont like my setting values, just unzip my module, find framework-res file, unzip it, then edit the theme_values.xml to any values you want under "config_autoBrightnessLcdBacklightValues", then zip all back.
Download links in attachment.
Guide:
V1 for lowest brightness (best battery)
V2 for a bit brighter in low light
V3 for brighter brightness (best for full edge cover tempered glass user)
V4 for more responsive and smoother auto brightness. Values are about similar to v3.
To check if this module works;
Tap the Kernel Version in About Phone 5 times, then you will enter CIT. Go to Light Sensor. Cover your phone light sensor on upper bezel (lower for Mi Mix 2s) with your palm till the light sensor value reach 0. If the backlight is not going under 100/130 (pie) or 7 (oreo), then this module works! My module limits the minimal auto brightness, which the original can reach to 20 which is ridiculously very dark.
This module may work on any MIUI-based rom phones with IPS display, not just Mi Mix 2s.
I also created this module for Mi 9 (amoled display). Visit my thread HERE
Notes:
- Only V4 has responsitivity adjustment. More responsive means it needs less light increments to trigger auto brightness adjustment.
- Editing the values can cause a mess. Add .disable_magisk file in cache partition if your phone cant boot then uninstall the module in manager.
Thanks have flashed this and will see how it goes over a day/night. Initially it's good though.
I find the auto bright annoying sometimes especially given how easy it is to cover the bottom chin sensors on this phone.
M.
mattman83 said:
Thanks have flashed this and will see how it goes over a day/night. Initially it's good though.
I find the auto bright annoying sometimes especially given how easy it is to cover the bottom chin sensors on this phone.
M.
Click to expand...
Click to collapse
Thanks for trying. I hope you get better auto brightness experience after a day..
Yeah the worst part is the light sensor in mix 2s located in bottom left where you could get the screen unseenable while using two/left hands. If its in center, it would be better.
My other mi phone with forehead light sensor often gets annoyingly too dark. I never satisfied with miui default auto brightness and always use this mod since miui 7. Fortunately, this method still works with some adjustment in value.
Ok so it's been a couple of days and this has helped a lot imo at least for indoors (haven't really had any major outdoors time...).
Still gets dark enough when it's really dark, but certainly for normal indoor conditions the default settings you have are much better. Xiaomi settings often got too dark, and you can adjust the slider, but then the slider goes back after while anyway :-\
M.
Just reporting back after a while with this and more miui updates, seems the later beta builds have changed something in the brightness in that I don't know if this mod works any more, or if it needs tweaking to provide the same brightness levels it used to.
I had a really quick play with values as suggested in the op but it's well outside my field of expertise and couldnt get it to do much different
M.
@arddy1
... where to find the default values ?
I'm on Poco F1 and want to compare to the default values and adjust theme_values.xml
mattman83 said:
Just reporting back after a while with this and more miui updates, seems the later beta builds have changed something in the brightness in that I don't know if this mod works any more, or if it needs tweaking to provide the same brightness levels it used to.
I had a really quick play with values as suggested in the op but it's well outside my field of expertise and couldnt get it to do much different
M.
Click to expand...
Click to collapse
Sorry for late reply. This mod still works in miui 8.10.11 global. Here are the screenshots of screen light value in lowest brightness. The lower one is the original. Mine still brighter in lowest light.
der_Kief said:
@arddy1
... where to find the default values ?
I'm on Poco F1 and want to compare to the default values and adjust theme_values.xml
Click to expand...
Click to collapse
Here's the screenshot from framework_res in rom 8.10.11 global
So it only works on miui
Yes since it's a miui issue. Stock android roms don't reset brightness like miui.
Stock roms just set the brightness bar where you want, some will have the ability adjust the total curve even. Miui if you raise brightness it will change itself back after 5 mins or so, so it's needed to change the system default values
M.
mattman83 said:
Yes since it's a miui issue. Stock android roms don't reset brightness like miui.
Stock roms just set the brightness bar where you want, some will have the ability adjust the total curve even. Miui if you raise brightness it will change itself back after 5 mins or so, so it's needed to change the system default values
M.
Click to expand...
Click to collapse
To me it happens on the treble roms. Exactly as in miui.. might be a vendor thing idk
Can I use this on Vince running Resurrection Remix 6.2.1 Android Oreo? I am having auto brightness issue in custom ROMs too.
Shubhambora said:
Can I use this on Vince running Resurrection Remix 6.2.1 Android Oreo? I am having auto brightness issue in custom ROMs too.
Click to expand...
Click to collapse
No, its for miui only. Even using it on miui other than i specified in first post may not work
Can you check with the latest miui 8.11.15?
I'm currently using this but sometimes the brightness still jumps from dim to bright
Thanks for this fix!
Can you make flashable zip version via TWRP recovery? I don't use Magisk and I don't want to be rooted
Sent from my MIX 2S using Tapatalk
Max auto brightness level can be increased from current value?
From 4095 to 4500
It would better in sunlight
Sent from my MIX 2S using Tapatalk
hi any chance to have it without root?
graw2 said:
Max auto brightness level can be increased from current value?
From 4095 to 4500
It would better in sunlight
Sent from my MIX 2S using Tapatalk
Click to expand...
Click to collapse
No. 4095 is the max value.
H0unter said:
hi any chance to have it without root?
Click to expand...
Click to collapse
Yes you can. As long as you unlock bootloader and place the framework-res file in system path i mentioned in first post with twrp
I tried your auto brightness fix. And surprisingly it seems to work on the Mi Max 3 with xiaomi.eu 8.12.6v2 as well.
palmdude said:
I tried your auto brightness fix. And surprisingly it seems to work on the Mi Max 3 with xiaomi.eu 8.12.6v2 as well.
Click to expand...
Click to collapse
Agreed, on 8.12.13 xiaomi.eu (pie) Mi Max 3 it works very well. Thank you for your efforts OP.

Themes / Apps / Mods [ROOT] Tune saturation, white balance and enable HBM on your Pixel!

[BIG UPDATE]
User Adrian got inspired by this and created a Magisk module to make things even easier and without the need to keep apps running on background, check it out!
GitHub
Hey!
I'm in love with my Google Pixel 6 Pro, however, I don't like the screen at all, I wanted to be able to customize how it looks.
Been looking for a way to modify how it looks, CF.lumen fixed the white balance, Sa2ration changes the saturation of your display, you can decrease it all you want, or make it as saturated as you want.
All this apps should/may work on other devices too.
CF.lumen - Apps on Google Play
Adapts your screen's colors based on sun's position, sleep pattern, and sensors
play.google.com
[ROOT] Sa2ration - Apps en Google Play
Alterar su saturación en Android Oreo (descripción leída!)
play.google.com
[Paid app, HBM to use the max brightness of the device without auto brightness]
Enable HBM in app and then enable and disable auto brightness in phone settings, not app settings, that way you will have the absolute maximum brightness of the display, you can enable on the app settings restore hbm after screen off to have it at max brightness always. *There is a QS hbm toggle too*
High Brightness Mode - Apps on Google Play
See your screen in bright sunshine. High brightness mode for your phone
play.google.com
For CF.lumen, enable location, set permissions for the app and do the following:
1 - Location, tap to update or input manually any location, that's only to avoid crashes when manually changing white balance, disable location after that if you don't need it.
2 - Master filter mode, custom, there you can modify RGB values to your taste, I use 0.955 on Red, 0.975 on Green, 1.000 on Blue, but feel free to try until you enjoy how it looks.
Now, for Sa2ration, after installing, simply move the slider until you like that you have, if it does not change, use the setting "enable color management" it's kinda glitchy and may requiere it or not on your device, I use 1.10, really like how it looks!
[Bonus, under developer settings, you can fully hide the display cutout, I also recommend to set the dpi to 410-430 with or without cutout as it will make some landscape animations a single slide instead of two, try pulling down notification panel when landscape mode, try all animations 0.5x too, you may like how it looks, if you see an app crashing disable developer settings as it may create issues like that sometimes]
[Bonus 2, try Iconify magisk module, you can customize your Pixel with that, even enable pure dark oled theme, thanks to Facundo Holzmeister from @howtomen on tiktok!]
GitHub - Mahmud0808/Iconify: Customize Boring Android UI
Customize Boring Android UI. Contribute to Mahmud0808/Iconify development by creating an account on GitHub.
github.com
Hopefully this will be useful for someone, try and enjoy!
I've started trying it out and it really works, thank you very much
遇事不决先百度 said:
I've started trying it out and it really works, thank you very much
Click to expand...
Click to collapse
Thanks! I modified the post a bit and added few extra things, nice to know!^^
Updated some info explaining how to get max extra brightness of the display
I used saturated magisk module and it had a nice effect, can't seem to find it on GitHub now though.
fil3s said:
I used saturated magisk module and it had a nice effect, can't seem to find it on GitHub now though.
Click to expand...
Click to collapse
oh, didn't know about that one, I hope sa2ration is okay for you, I will look for that module tho
Updated again, now with a Magisk module created by Adrian that will make things even better!
Installed the Magis module. There's no user interface for it?
93starletgt said:
Installed the Magis module. There's no user interface for it?
Click to expand...
Click to collapse
Hey, the only way to customize it is to use the service.sh file and modify it before flashing. That's all I know so far.

Categories

Resources