Related
*** Fix for Epic minimum screen brightness ***
*** Update 2: Adjustable version via sysfs interface
EDIT 10/13/2010 0600 UTC: The binary for version 2 that I posted was originally built wrong, lacking an initramfs image. I removed it and posted a new version now, called epic-brightnessfix-kernel02-di18-repaired.zip. The source in the howto.zip was OK. My apologies to the 15 of you that downloaded the broken binary.
As promised, here is a new version with an extensive sysfs interface that allows you to completely tweak brightness and color adjustments without further modifying the kernel. See the README in the attached linuxuberant-brightness-02-howto.zip for instructions. This zip file also contains the full source code.
NOTE: I have been in discussions with Project Voodoo, which may merge this work soon.
Intro
One of widespread complaints with the Epic 4G is that the screen is way to bright for use in a dark room, even with the brightness turned all the way down. So, I modified the brightness controls in the kernel to provide many more steps below the stock kernel's minimum brightness setting.
Since several people claim that minimum brightness on Epic is on par with Evo at 30%, I pushed the 25 discrete brightness levels in the stock kernel up to the range of 30%-100% and added about 10 dimmer levels between 0% and 30%. In addition, I added interpolation between levels so you effectively get much finer control over brightness at all levels.
How to install:
Use Clockworkmod recovery to apply the attached zip file to flash this change. I packaged this as 100% stock Samsung di18 kernel with stock initramfs. The only difference between this and the stock kernel is my brightness change. This means it is safe to try on a stock phone.
md5sum, version 1: 43669330823c2f80c59d152a963325cc
md5sum, version 2: a7da371fcd51c4413a2abb268866e3d7
Affect on permanent Root:
If you currently depend on a custom kernel's initramfs to provide permanent root, then flashing this kernel will lose root for you, because I used the stock initramfs. You can always flash right back to the other kernel after you've played with this. If you rely on the original joeykrim "one click" method of permanent root, this kernel will not interfere with that. If there is interest, I can repackage this using an initramfs that provides permanent root.
Source code:
Only one source file was changed, and it's a mostly simple change. I have attached the whole file as well as a patch that can be applied to a di18 kernel (applies equally well to the dg27 kernel and probably to some of the custom kernels that other developers have made).
What's Next?
I hope that some of the other Epic kernel developers will pick up this patch so that many can benefit from it. I do not intend to become ROM/kernel mod owner myself
My change modifies the low end of the brightness curve aggressively - making possible to get the screen _very_ dark. This suits my needs well, but not everyone will like that. So, I plan to make an enhanced version of this code that will allow you to modify the brightness gamma tables from userspace by writing to special files on sysfs.
Blue Tint Fix?
This brightness tables provides independent control over the red, green, and blue channels, so could be used to fix the blue tint that some people complain about. When I get the userspace access to modify Now that you can modify the table from userspace, feel free to experiment with adjusting the tint.
Enjoy,
Linuxuberant
Awesome work.... This should help battery life for sure. and make people much happier. Mid range needs to be done though. And of course the bright light modes
rjmjr69 said:
Awesome work.... This should help battery life for sure. and make people much happier. Mid range needs to be done though. And of course the bright light modes
Click to expand...
Click to collapse
Thanks! I'm not sure I understand what mean about mid range and bright modes. Can you clarify that a bit? This code covers the whole range of brightnesses, as far as I can tell.
Thanks for working on this. I was just thinking how we need better brightness control.
Nice work dude!
do we flash one of them. i can see one is the kernal and one is the fix but can we flash the fix on the current kernal we have???
dondadah88 said:
do we flash one of them. i can see one is the kernal and one is the fix but can we flash the fix on the current kernal we have???
Click to expand...
Click to collapse
You just flash the kernel (epic-brightnessfix-kernel01-di18.zip). The other zip file contains only source code so you can build it into your own kernel.
-- Linuxuberant
Linuxuberant said:
You just flash the kernel (epic-brightnessfix-kernel01-di18.zip). The other zip file contains only source code so you can build it into your own kernel.
-- Linuxuberant
Click to expand...
Click to collapse
For us tapatalk peeps I can only see the source.
Sent from my SPH-D700 using XDA App
i'm on both. he removed it.
he just signed off did anyone get the kernal???
This will be in the next version of MixUp. I talked to the guy. He's on #TeamBoss with @KyleCole90 and I now. So things will be even better from here on out
dondadah88 said:
i'm on both. he removed it.
Click to expand...
Click to collapse
Oh, sorry. I clicked the wrong button when I edited the filename. I just put the attachment back up.
Geniusdog254 said:
This will be in the next version of MixUp. I talked to the guy. He's on #TeamBoss with @KyleCole90 and I now. So things will be even better from here on out
Click to expand...
Click to collapse
That sounds sweet - I'd love for you to pull this into MixUp. Thanks, Geniusdog254.
Linuxuberant
Linuxuberant said:
That sounds sweet - I'd love for you to pull this into MixUp. Thanks, Geniusdog254.
Linuxuberant
Click to expand...
Click to collapse
Thanks for this, but can you please make a variation of this, i feel it's wayyy to dim on my epic. Can you please make multiple downloads of certain percentages of how dim it is. I put the brightness tab where the A in "Automatic" is , i think that's a readable level with auto brightness set it to the lowest brightness or maybe i'm blind .
Then make it brighter I love when its stupid dark
Sent from my SPH-D700 using Tapatalk
dondadah88 said:
Then make it brighter I love when its stupid dark
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
Lol no i understand what your saying, but i hate having to manually keep going up and down just was asking if you can make two versions. Not trying to be picky .
Oh oh. This dimness is perfect the white though is very light yellow but other then that I love it.
Sent from my SPH-D700 using Tapatalk
Finally!!!!! I thought this would never happen! Thanks!
Hmm, deleting post due to odd time delay
panthar said:
Hmm, deleting due to odd time delay
Click to expand...
Click to collapse
??
Sent from my SPH-D700 using XDA App
Like the title states- since the Auto-brightness requires a constant running of scripts/ working of sensors, how does it effect battery life in general? Running on Insertcoin 4.4.8 at the moment, and noticed the sensor detects changes way more than the previous versions.
Just a query- an informative answer would be appreciated.
Cheers,
Tony
spit_fire said:
Like the title states- since the Auto-brightness requires a constant running of scripts/ working of sensors, how does it effect battery life in general? Running on Insertcoin 4.4.8 at the moment, and noticed the sensor detects changes way more than the previous versions.
Just a query- an informative answer would be appreciated.
Cheers,
Tony
Click to expand...
Click to collapse
I've read numerous posts that auto-brightness kills more batt, more or less for the reasons you stated. I therefore stopped use auto, rather set it at a certain level and batt improved..
Sent by my feau gee
I also stopped using auto but only as a ROM I'd been using started to "flicker" the screen. I eventually sussed this was due to the phone getting the light levels wrong, since then I've always gone for a manual setting.
EDIT: Oops Off Topic a little, I guess auto could help with battery life as the main drain on the phone is the screen. However, since trying ICS the battery is less of an issue than it was.
Ive always used auto brightness and never had issues. Only time i dim it is at night when driving.
Sent From My steak using A1 steak sauce app (Sensation)
piimp said:
I've read numerous posts that auto-brightness kills more batt, more or less for the reasons you stated. I therefore stopped use auto, rather set it at a certain level and batt improved..
Sent by my feau gee
Click to expand...
Click to collapse
That's what I thought.
gol_n_dal said:
EDIT: Oops Off Topic a little, I guess auto could help with battery life as the main drain on the phone is the screen. However, since trying ICS the battery is less of an issue than it was.
Click to expand...
Click to collapse
True that the main drain is the screen. But with the 'Auto' constantly using the light sensors, I doubt it'd be better for the battery than a constant value. Definitely not the highest brightness setting though. But come to think about it, even the highest setting may use up lesser power than on Auto.
Im sorry to hi-jack this thread but does anyone know where to find the auto-brightness values so i can modify the values to make the screen a bit dimmer, especially in the dark i find the screen far too bright.
Thanks
EDIT: Looking for the values in ICS Rom. Thanks
There used to be a fix for this in GB-roms, but I'm not sure if it has come to ICS yet..
OleEdvard said:
There used to be a fix for this in GB-roms, but I'm not sure if it has come to ICS yet..
Click to expand...
Click to collapse
I have searched this site but all i can find is how to mod the values in GB-roms. The file (arrays.xml) is located in framework-res/res/values. I have looked around in the framework-res of my ICS rom but that folder does not exist!
Hopefully someone can point me in the right direction.
beady_uk said:
I have searched this site but all i can find is how to mod the values in GB-roms. The file (arrays.xml) is located in framework-res/res/values. I have looked around in the framework-res of my ICS rom but that folder does not exist!
Hopefully someone can point me in the right direction.
Click to expand...
Click to collapse
Get Widgetsoid from the market - set custom brightness levels and swap between them with one click via a custom widget, I set steps for 1%, 20%, 30% and auto.
beady_uk said:
I have searched this site but all i can find is how to mod the values in GB-roms. The file (arrays.xml) is located in framework-res/res/values. I have looked around in the framework-res of my ICS rom but that folder does not exist!
Hopefully someone can point me in the right direction.
Click to expand...
Click to collapse
Try using this app called Valis Auto Brightness.my new fav app
beady_uk said:
I have searched this site but all i can find is how to mod the values in GB-roms. The file (arrays.xml) is located in framework-res/res/values. I have looked around in the framework-res of my ICS rom but that folder does not exist!
Hopefully someone can point me in the right direction.
Click to expand...
Click to collapse
ICS its in com.htc.resources.apk
Getting better battery life is a struggle most mobile device users will have for the foreseeable future. Even if advanced batteries are released that give users two days of heavy use, there will naturally be a script, an application, and a kernel tweak to improve this figure further. As batteries get better, so do battery applications. Now, a new tool has been released that’s looking to be the best.
The application is called One Power Guard. Made by XDA Forum Member fonter, it is designed for rooted and custom ROM users. It brings an all-in-one approach to battery life and phone tweaking. You can adjust pretty much anything, including the I/O scheduler, CPU governor, CPU over- or under-clocking, settings tweaks, and more. There are also six modes you can choose from that tweak your phone for you. They include:
AI Mode: It intelligently adjusts cpu frequency and optimizes kernel to greatly extend battery time according to system loading.
Powersave Mode: It runs devices under low frequency to extend standby time.
Game/Video Mode: It provides flow game and video experience while offering satisfactory power-saving strategy.
Call Mode: It powers up the core function of phone conservation. For business persons trapping by phone.
Standby Mode: It lowers system frequency and prolongs stand-by time to the extreme. For sleepers and dreamers.
Custom Mode: It indulges pros to customize cpu frequence, scheduling and io adjustment, and to choose parameters of their own.
It’s a really nice application for those who don’t want to re-tweak their phone after every ROM flash and those who don’t know how to tweak their phones manually. For additional information on how each mode works and download links, check out the original thread.
You can try One Power Guard, Download from onexuan.com
I lol'ed at the fact that they state it's for android, yet it has a picture of an iPhone. I'll have to try this. Thanks!
trying this out, we'll see how well it does compared to the others
OK app works much better than anyone I've tried for this matter, doesn't help too too much but it does make a little bit of difference, also this should be obvious but it does slow the system down a bit, and i also had some conflicts with it changing kernel values but I'd rate it a 3.5 out of 5 for what it does though when compared to other apps four the same thing out would be a 4.5-5 not a full 5 because there has to be done room for improvement
Sent from my SGH-I997 using xda premium
deathblade said:
OK app works much better than anyone I've tried for this matter, doesn't help too too much but it does make a little bit of difference, also this should be obvious but it does slow the system down a bit, and i also had some conflicts with it changing kernel values but I'd rate it a 3.5 out of 5 for what it does though when compared to other apps four the same thing out would be a 4.5-5 not a full 5 because there has to be done room for improvement
Sent from my SGH-I997 using xda premium
Click to expand...
Click to collapse
Thanks for the info, i'll give this a try your settings.
Settings i used on the app? I just chose ai mode
Sent from my SGH-I997 using xda premium
I'd have to give this probably a 3.5 as well, could be better with a widget for one thing. I used ai most of the time, but when I went to custom mode and changed the frequency for max to 1200, it didn't change it and left it at 200. It did provide a good bit of information though!
Sent from my SGH-I997 using xda app-developers app
Slowed my phone
I unistalled this. My phone became almost useless. It was so slow and nearly unresponsive.
gabdes said:
I unistalled this. My phone became almost useless. It was so slow and nearly unresponsive.
Click to expand...
Click to collapse
Same here
Sent from my SGH-I997 using xda premium
Seems to be working pretty good on mine. Definitely added about 12hrs to my extended battery.
Sent from my SGH-I997 using xda premium
I am debating on whether to buy the pro version and flash Franco's Kernel for my Nexus 5 and 7 (2013). I just want to know what I bits of extra I can really do with it.. And if its worth it. I'm more worried about stability than anything I guess. I don't want to run into little issues whether it be audio, video, whatever it may be. Also I have never flashed a kernel or another ROM, I've always stuck with stock. I am running 4.4.2 right now utilizing Gravity Box and Wanam Kit, and a few other modules. Any input would be greatly appreciated. If this thread has been done before, my apologies. I am a brand new forum user, never really get on the computer.
Sent from my Nexus 5 using Tapatalk
wardawgmalvicious said:
I am debating on whether to buy the pro version and flash Franco's Kernel for my Nexus 5 and 7 (2013). I just want to know what I bits of extra I can really do with it.. And if its worth it. I'm more worried about stability than anything I guess. I don't want to run into little issues whether it be audio, video, whatever it may be. Also I have never flashed a kernel or another ROM, I've always stuck with stock. I am running 4.4.2 right now utilizing Gravity Box and Wanam Kit, and a few other modules. Any input would be greatly appreciated. If this thread has been done before, my apologies. I am a brand new forum user, never really get on the computer.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Well to be honest the stock kernel allready is very good, the only downsides of it are batterylife/screenontime and colors are not very vibrant. These 2 aspects are substantialy better with Franco kernel. Screenontime and batterylife is improved by at least 50% or more for some (check out the Franco thread). Also you can raise the speaker/mic/in-call volume as you wish and load a color profile for better and more vibrant colors.
if you want stability stick with stock
gee2012 said:
Well to be honest the stock kernel allready is very good, the only downsides of it are batterylife/screenontime and colors are not very vibrant. These 2 issues are substantialy better with Franco kernel. Screenontime and batterylife is improved by at least 50% or more for some (check out the Franco thread). Also you can raise the speaker/mic/in-call volume as you wish and load a color profile for better and more vibrant colors.
Click to expand...
Click to collapse
I have been getting fantastic battery life with my setup now, I just leave brightness at auto, and from my bit of research, that seems to be the big culprit of battery life. I'm always looking to improve my phone in terms of performance and cosmetic, keeps me busy at negative 60 out here in North Dakota lol.
But 50% overall more battery life?! That's pretty friggin good. Would definitely pay for it for that kind of power.
I'm also assuming based on your post that the color control is not for LED control but the screen itself. Any idea if the Xposed LED module works well? I know its off topic just a quick question.
Not sure about the volumes, I usually don't mess with call volumes, but I'll look into it more.
Thanks for your post! Also please post the link to the Franco Thread.
Sent from my Nexus 5 using Tapatalk
wardawgmalvicious said:
I have been getting fantastic battery life with my setup now, I just leave brightness at auto, and from my bit of research, that seems to be the big culprit of battery life. I'm always looking to improve my phone in terms of performance and cosmetic, keeps me busy at negative 60 out here in North Dakota lol.
But 50% overall more battery life?! That's pretty friggin good. Would definitely pay for it for that kind of power.
I'm also assuming based on your post that the color control is not for LED control but the screen itself. Any idea if the Xposed LED module works well? I know its off topic just a quick question.
Not sure about the volumes, I usually don't mess with call volumes, but I'll look into it more.
Thanks for your post! Also please post the link to the Franco Thread.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
If you are having trouble making a decision... just flash the kernel with fastboot and give it a test run. Can the free version of FKU auto flash? I'm not sure, you would have to investigate.
If you decide you like it (and the updates that go along with it), then maybe consider buying the app.
But yes, screen on time is better with FK due to the way the clock speeds scale. A lot better. Even with the stock settings, though I find even those to be a bit aggressive.
wardawgmalvicious said:
I have been getting fantastic battery life with my setup now, I just leave brightness at auto, and from my bit of research, that seems to be the big culprit of battery life. I'm always looking to improve my phone in terms of performance and cosmetic, keeps me busy at negative 60 out here in North Dakota lol.
But 50% overall more battery life?! That's pretty friggin good. Would definitely pay for it for that kind of power.
I'm also assuming based on your post that the color control is not for LED control but the screen itself. Any idea if the Xposed LED module works well? I know its off topic just a quick question.
Not sure about the volumes, I usually don't mess with call volumes, but I'll look into it more.
Thanks for your post! Also please post the link to the Franco Thread.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Most users report a screenontime of about 5-7 hours while stock is about 3,5 hours. Don`t know about the Xposed module but color controll in the Franco kernel updater app is realy good and there are various preloaded settings available. Link thread http://forum.xda-developers.com/showthread.php?t=2508284. Backup your current kernel in the FKU before you flash a Franco kernel, so you can restore it if need be.
Aerowinder said:
If you are having trouble making a decision... just flash the kernel with fastboot and give it a test run. Can the free version of FKU auto flash? I'm not sure, you would have to investigate.
If you decide you like it (and the updates that go along with it), then maybe consider buying the app.
But yes, screen on time is better with FK due to the way the clock speeds scale. A lot better. Even with the stock settings, though I find even those to be a bit aggressive.
Click to expand...
Click to collapse
I believe you can, I'll look into when I get home.
So do you underclock or undervolt? I don't know the differences between the two, my apologies. If I do get Franco I think I will just leave it at the stock settings it comes with before I make any changes, still got learning to do. Thank you for sharing your knowledge!
Sent from my Nexus 5 using Tapatalk
gee2012 said:
Most users report a screenontime of about 5-7 hours while stock is about 3,5 hours. Don`t know about the Xposed module but color controll in the Franco kernel updater app is realy good and there are various preloaded settings available. Link thread http://forum.xda-developers.com/showthread.php?t=2508284. Backup your current kernel in the FKU before you flash a Franco kernel, so you can restore it if need be.
Click to expand...
Click to collapse
That's pretty awesome, definitely gonna try it out. I have a backup somewhere on my device, I think in Flashify, but I'll make another, can never hurt lol.
And thanks for the thread and all the other info!
Sent from my Nexus 5 using Tapatalk
Stick with stock for at least long enough to give yourself a baseline to judge other ROMs/kernels against.
Wakamatsu said:
Stick with stock for at least long enough to give yourself a baseline to judge other ROMs/kernels against.
Click to expand...
Click to collapse
I've had my Nexus 5 for roughly 2 months now I think, are you saying I should wait it out or do more research first? It is very scary for me lol. I'm always afraid to be making major internal changes without some form of consultation and research.
Sent from my Nexus 5 using Tapatalk
Also quick question, I don't need to back anything else up correct? Flashing a kernel does not mess with anything else does it?
Sent from my Nexus 5 using Tapatalk
wardawgmalvicious said:
I've had my Nexus 5 for roughly 2 months now I think, are you saying I should wait it out or do more research first? It is very scary for me lol. I'm always afraid to be making major internal changes without some form of consultation and research.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I wouldn`t mess with the kernel settings like UV/OC besides color and sound optimisations. The stock settings are allready good enough for most users, only xperienced users should do that imo.
---------- Post added at 06:21 AM ---------- Previous post was at 06:18 AM ----------
wardawgmalvicious said:
Also quick question, I don't need to back anything else up correct? Flashing a kernel does not mess with anything else does it?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
No, flashing kernels or recovery`s don`t wipe data.
gee2012 said:
I wouldn`t mess with the kernel settings like UV/OC besides color and sound optimisations. The stock settings are allready good enough for most users, only xperienced users should do that imo.
Click to expand...
Click to collapse
That's what I'll do then, what kind of sound optimizations are there? Just the mic volume and whatnot? Or are there some for playing music, I have poweramp and use that equalizer, so just wondering.
Sent from my Nexus 5 using Tapatalk
wardawgmalvicious said:
That's what I'll do then, what kind of sound optimizations are there? Just the mic volume and whatnot? Or are there some for playing music, I have poweramp and use that equalizer, so just wondering.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
You can only raise the volume levels (no EQ settings), this should not interfere with PowerAmp.
gee2012 said:
You can only raise the volume levels (no EQ settings), this should not interfere with PowerAmp.
Click to expand...
Click to collapse
Alright guess I'll just have to carefully play around with a bit. Thanks for your help!
Sent from my Nexus 5 using Tapatalk
gee2012 said:
You can only raise the volume levels (no EQ settings), this should not interfere with PowerAmp.
Click to expand...
Click to collapse
Oh last question, do you know of any stability issues with Franco Kernel? That is my number one concern, so just checking with you real quick before I go with it finally.
Sent from my Nexus 5 using Tapatalk
wardawgmalvicious said:
Oh last question, do you know of any stability issues with Franco Kernel? That is my number one concern, so just checking with you real quick before I go with it finally.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I haven`t had FC`s when i used the kernel, most issues of users we`re caused by undervolting too much.
gee2012 said:
I haven`t had FC`s when i used the kernel, most issues of users we`re caused by undervolting too much.
Click to expand...
Click to collapse
Alright sounds good! I'll let you know how it goes!
Sent from my Nexus 5 using Tapatalk
wardawgmalvicious said:
Alright sounds good! I'll let you know how it goes!
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Oke, good luck and enjoy
gee2012 said:
Oke, good luck and enjoy
Click to expand...
Click to collapse
OK maybe a stupid question, should I use auto flash or flash via recovery?
Sent from my Nexus 5 using Tapatalk
Hi,
I have the Verizon Galaxy SGS3.
Here is the screen shot to give more info.
I'm trying to increase the brightness of the screen. I read in the below thread about editing the kernel and thereby increasing the brightness, but it did not mention about the latest update since, it is a old one.
http://forum.xda-developers.com/galaxy-s3/development/fix-real-brightness-fix-gs3-3-version-t1791163
I tried to enter some of the codes on the thread below, but it did not work either.
http://forum.xda-developers.com/galaxy-s3/general/samsung-galaxy-s3-codes-secrets-t2098642
So can Any one guide me or help me, on how to increase the brightness on my screen.
I KNOW TO GO INTO SETTINGS-->DEVICE -->DISPLAY-->BRIGHTNESS---> UNCHECK AUTOMATIC BRIGHTNESS AND INCREASE THE BRIGHTNESS LEVEL TO MAXIMUM.
I ALREADY DID THAT.
To be precise, editing the kernel and increasing the brightness - just like rooting. ( You can't root Your phone with a App or some setting.) obviously, You have to connect Your phone to Your computer and do some stuff. So, on those lines, can anyone guide me on how to increase the brightness??)
I'm searching and if someone gives me some useful info. it will be great.
Thank You.
Oh. By the way, The SCH-I535 is rooted
qzmpal said:
Oh. By the way, The SCH-I535 is rooted
Click to expand...
Click to collapse
Looks like your on the 4.3 OTA based on the screenshot. Are you trying to create an easier way to adjust the brightness?
I'm sure someone will correct me if I'm wrong. If you are on the 4.3 OTA then you won't be able to change anything about the kernel.
Sent from my SCH-I535 using xda app-developers app
ShapesBlue said:
Looks like your on the 4.3 OTA based on the screenshot. Are you trying to create an easier way to adjust the brightness?
Click to expand...
Click to collapse
Nothing of that sort. I just want to increase the screen brightness.
Just like for a Processor, which is actually locked, and by doing some changes/process/modifications, the speed of the processor can be increased by 10-15%,
similarly, I'm trying to increase the brightness of the display.