Previous thread was removed by moderator without any notice after being falsely reported as a wrongly posted thread by a ROM cook.
For kernel developers who care, this is a small quirk that can be patched quite easily. It would be nice if I didn't have to recompile my own kernel because of a small issue like this.
The kernel currently accepts backlight brightness values that are too low in the kernel. There are cases where the screen appears to be off, but is not actually off to Android, as the device will continue to respond to touchscreen events.
Code patch
in board-glacier-panel.c
The workaround is to comment out the entire chunk @ function glacier_shrink_pwm, since the next part should already take care of dimming the panel to its minimum allowed brightness.
Code:
if (brightness < PWM_USER_DIM) {
return 0;
}
Bug description
This issue is documented at least once here
In HTC's code, if glacier_shrink_pwm receives as brightness value < PWM_USER_DIM of 20, it will set the PWM to 0. Effectively, that means any app requesting a brightness < 20 will black out the backlight but not actually turn it off 'properly'
shrink_br ever having a value of 0 appears to be a bug to me, unless someone else can figure out why HTC did this. This piece of code is pretty trivial.
I own the HTC Panache, which is a myTouch4G with a different case.
I have installed the latest TMobileUS Android 2.3.4 ROM, I found that third-party applications can set the backlight brightness down to such a low brightness that it becomes impossible to see anything on the screen.
The device I have contains the SHARP LCD-SH-C2. I am not sure if this same issue affects myTouch4G variants or if it is simply panel type dependent.
This issue may affect other ROMs, if the manufacturer set Android framework minimum brightness is too low. The HTC dev tarball has this bug built into it as well. I think this probably at least affects the HTC Panache in the Canadian market.
This information is intended for kernel developers, because I have yet to find a kernel source who has this patched.
To see if you have this issue, use it is possible to use the following third-party applications to test this:
https://play.google.com/store/apps/details?id=com.deskangel.adjbrightness
https://play.google.com/store/apps/details?id=com.bwx.bequick&hl=en
I am not going to bother releasing a kernel that I wont bother to publish to upload GPL compliant sources for with my slow internet, or else I would have uploaded the binary.
For reference, look at any other shrink pwm logic code on a typical Android device.
I only experience this problem using miui an having the stay awak check in development while on charger screen goes black but its not asleep thank for the patch
Sent from my HTC Glacier using xda premium
Today is the very first time ever for me to root an android device and thank God it run perfectly.
Now i am using AIC kernel for V500 4.4.2 stock ROM. (http://forum.xda-developers.com/showthread.php?t=2741405)
Gamma correction in it really improved screen and picture quality. (plus 8000 antutu point increase bonus)
Before, i can barely see anything in Bloodborne trailer video. (http://www.youtube.com/watch?v=G203e1HhixY)
Since i cant post in development thread, i hope i can find answers to the followings:
Is it possible to further improve gamma in the future?
Even though currently gamma is improved, but the brightness level issue still persist. Is it hardware or software issue?
Is there any possibility for brightness level improvement in the near future (kernel) update?
All in all, i really like my G Pad and really hope for the possibility to receive screen improvement update in the near future.
uchihamonkey said:
Today is the very first time ever for me to root an android device and thank God it run perfectly.
Now i am using AIC kernel for V500 4.4.2 stock ROM. (http://forum.xda-developers.com/showthread.php?t=2741405)
Gamma correction in it really improved screen and picture quality. (plus 8000 antutu point increase bonus)
Before, i can barely see anything in Bloodborne trailer video. (http://www.youtube.com/watch?v=G203e1HhixY)
Since i cant post in development thread, i hope i can find answers to the followings:
Is it possible to further improve gamma in the future?
Even though currently gamma is improved, but the brightness level issue still persist. Is it hardware or software issue?
Is there any possibility for brightness level improvement in the near future (kernel) update?
All in all, i really like my G Pad and really hope for the possibility to receive screen improvement update in the near future.
Click to expand...
Click to collapse
I heard a week or so ago through the grapevine of a version 20d coming out pretty soon. I have held off making any other changes to the AIC kernel until I see what LG did(no sense reinventing the wheel).
What brightness issue would you like changed? I know in general people think the Gpad screen is dark, but some of the AIC kernel users think the lowest brightness is too bright as well.
I think the screen is pretty bright at 100%, so for me it's a software issue. That's in 2 places, the kernel backlight driver, and the ROM brightness(think brightness slider).
aicjofs said:
I heard a week or so ago through the grapevine of a version 20d coming out pretty soon. I have held off making any other changes to the AIC kernel until I see what LG did(no sense reinventing the wheel).
What brightness issue would you like changed? I know in general people think the Gpad screen is dark, but some of the AIC kernel users think the lowest brightness is too bright as well.
I think the screen is pretty bright at 100%, so for me it's a software issue. That's in 2 places, the kernel backlight driver, and the ROM brightness(think brightness slider).
Click to expand...
Click to collapse
Tks for the reply and also thank you very much for the kernel, it really is helping a lot!
Rather than issue, i should have worded it as G Pad having a relatively low brightness level/dim display.
Compare to my nexus 7 1st gen, G Pad at 70% brightness level still not as bright as nexus at 30%.
Actually i dont really mind it, 70-80% G Pad brightness level is my sweet spot.
However, it would be great if the number is 30% rather than 70% (i am just feeling paranoid of having big number for a display setting).
I also realized that colours (might be) a bit off, especially red that looks orange-ish.
In general display seems lean toward yellow (yellowish-white).
Wonder if this is a common thing for all unit?
Hopefully it is just a matter of colours calibration that can be solved through software update not a hardware characteristic.
I tried Screen Adjuster and added more blue and red, but i just cant seems to find the proper setting to create a whiter white or redder red...
All in all, it is nice to hear version 20d may be coming soon.
Hopefully LG will address all these screen related things.
Also, really look forward to your another great work, especially when LG get it all wrong again this time
aicjofs said:
I heard a week or so ago through the grapevine of a version 20d coming out pretty soon. I have held off making any other changes to the AIC kernel until I see what LG did(no sense reinventing the wheel).
What brightness issue would you like changed? I know in general people think the Gpad screen is dark, but some of the AIC kernel users think the lowest brightness is too bright as well.
I think the screen is pretty bright at 100%, so for me it's a software issue. That's in 2 places, the kernel backlight driver, and the ROM brightness(think brightness slider).
Click to expand...
Click to collapse
It would be great if you could add row scheduler when you next update your kernel.
Thanks in advance rich ?
Sent from my LG-V500 using XDA Premium HD app
uchihamonkey said:
Tks for the reply and also thank you very much for the kernel, it really is helping a lot!
Rather than issue, i should have worded it as G Pad having a relatively low brightness level/dim display.
Compare to my nexus 7 1st gen, G Pad at 70% brightness level still not as bright as nexus at 30%.
Actually i dont really mind it, 70-80% G Pad brightness level is my sweet spot.
However, it would be great if the number is 30% rather than 70% (i am just feeling paranoid of having big number for a display setting).
I also realized that colours (might be) a bit off, especially red that looks orange-ish.
In general display seems lean toward yellow (yellowish-white).
Wonder if this is a common thing for all unit?
Hopefully it is just a matter of colours calibration that can be solved through software update not a hardware characteristic.
I tried Screen Adjuster and added more blue and red, but i just cant seems to find the proper setting to create a whiter white or redder red...
All in all, it is nice to hear version 20d may be coming soon.
Hopefully LG will address all these screen related things.
Also, really look forward to your another great work, especially when LG get it all wrong again this time
Click to expand...
Click to collapse
You can use Faux Clock or System Tuner to adjust the color temp and gamma.
meanoc said:
You can use Faux Clock or System Tuner to adjust the color temp and gamma.
Click to expand...
Click to collapse
Really...?
In that Kernel thread it states....
Add Faux Display interface (gamma control seems broken)
so does the Faux app control the gamma, even though aicjofs had noted that it seemed to be broken...?
vimesUK said:
Really...?
In that Kernel thread it states....
Add Faux Display interface (gamma control seems broken)
so does the Faux app control the gamma, even though aicjofs had noted that it seemed to be broken...?
Click to expand...
Click to collapse
It works for me?
meanoc said:
You can use Faux Clock or System Tuner to adjust the color temp and gamma.
Click to expand...
Click to collapse
Pardon me but where can i find this Faux Clock and System Tuner?
Do you have any preferred setting for optimum screen (colour) performance?
uchihamonkey said:
Pardon me but where can i find this Faux Clock and System Tuner?
Do you have any preferred setting for optimum screen (colour) performance?
Click to expand...
Click to collapse
You can find them here https://play.google.com/store/apps/details?id=com.teamkang.fauxclock and https://play.google.com/store/apps/details?id=ccc71.pmw.pro . Your best bet is to either use a calibration tool or just adjust it to your eyes.
Hi there!
I'm new on this forum and I just register because I've 3 questions!
I'll create 3 thread for each question, unless if a moderator want that I group those 3 questions.
My One plus 3 is rooted and it has xposed.
So in this thread I would like to decrease the minimum brightness of my 1+3.
There were 2 years I had a Nexus 5 and I remember that with a custom kernel I could modify the minimum brightness, the maximum sound or vibration, I also could underclock or overclock and all those features were amazing!
Of course, I would like to have the same thing in my One plus 3! I don't care about the maximum vibration, sound or underclock and overclock, I just want to decrease the minimum brightness without application. I would like to keep the stock rom.
Can anybody help me please?
Thanks a lot and have a good day!
Also looking for an answer to this myself. I wish OnePlus could implement adaptive brightness (not auto brightness, there's a difference!) which I can bring the brightness all the way down during at night.
Hi. Im using Xiaomi Redmi Note 5 with xiaomi.eu 9.9.3 and KangarooX r5.1 kernel installed and I am bothered by automatic brightness which doesn't work well. Brightness set by the phone is too low for me and I need to manually correct it but the worst thing is that after each screen blanking the phone sets the brightness again wrongly.
I asked a friend who have the same phone on the latest official software and the default kernel if it also occurs and he answered yes. Does someone know how to fix it?
its miui's stupidest bug ever and they dont even care to fix it. only solution if you are rooted, just install custoMIUIzer and choose higher minimum brightness value.
kos25k said:
its miui's stupidest bug ever and they dont even care to fix it. only solution if you are rooted, just install custoMIUIzer and choose higher minimum brightness value.
Click to expand...
Click to collapse
Thanks for the suggestion, it fixed the issue for me. What's interesting the algorithm is not to blame apparently - the light sensor is ****ed and dropping to single digit reading even in a relatively bright room if there's no direct lighting shining on it. Just a change of phone angle drops the reading from 400+ lux to single digits...
My note 5 brightness is terrible on automatic I have the note 7 too but the brightness is perfect on that phone.
kos25k said:
its miui's stupidest bug ever and they dont even care to fix it. only solution if you are rooted, just install custoMIUIzer and choose higher minimum brightness value.
Click to expand...
Click to collapse
Thanks i will try it. In miui11 they still didn't fixed that
Hi i have been looking for a module for ed xposed which hopefully can control lowest brightness level. I am on Asop rom on the poco f3 and development is in early stages which means in darker areas the low brightness goes to low. It would be useful if there were a module which can set the lowest brightness to a certain value which the system cannot got lower than e.g 12% I hope this is understood and perhaps ther is already a module available for this but i cant find it.
sam00561 said:
Hi i have been looking for a module for ed xposed which hopefully can control lowest brightness level. I am on Asop rom on the poco f3 and development is in early stages which means in darker areas the low brightness goes to low. It would be useful if there were a module which can set the lowest brightness to a certain value which the system cannot got lower than e.g 12% I hope this is understood and perhaps ther is already a module available for this but i cant find it.
Click to expand...
Click to collapse
RootDim [root] - Apps on Google Play
Dim many rooted device's screens below factory settings.
play.google.com
loopypalm said:
RootDim [root] - Apps on Google Play
Dim many rooted device's screens below factory settings.
play.google.com
Click to expand...
Click to collapse
Thankyou so much its working perfectly just what i needed.
I spoke to soon left the phone overnight and in the morning brightness very minimal again. I guess it stopped working.