Guest 90180360 Posted February 9, 2011 Report Posted February 9, 2011 (edited) This mod changes the display brightness levels, if automatic brightness is enabled. The lowest possible values are lower and the highest possible are higher than normal. The values in between have been adjusted. Install the zip with clockwork. You MUST wipe! This changes framework-res.apk, which means it's not compatible with themes. Only works with Japanese Jellyfish RLS9 right now (individual update zips for other ROMs might follow). It doesn't change anything for OLED Blades. It doesn't change the brightness levels you can manually choose. USE AT YOUR OWN RISK Autobright_r0.1_JJ9.zip To restore, replace the edited framework-res.apk in the zip with the one from the ROM you're using, then install again with clockwork. I've prepared the zip for those using JJ9: restore_JJ9.zip Brightness levels: Original Autobright 0.1 30 15 50 40 70 65 90 90 110 115 140 150 170 190 210 240 Two phones in complete darkness, the left one is modded. I've mostly done this for myself, but I'm of course happy to share :P Feedback appreciated!! Edited February 10, 2011 by 90180360
Guest Victor von Zeppelin Posted February 9, 2011 Report Posted February 9, 2011 Ah ha, I've been wanting something like this for a while...but alas, the other way round, Have full darkness lighter. And also, shame it'll only work on JJ, any chance you could give some pointers on how I could do this for myself, on my framework apk?
Guest ololizoz Posted February 9, 2011 Report Posted February 9, 2011 (edited) I'm using this now. But it seems that the screen never times out? It's on all the time, even if I set screen timeout to 15 sec and waits for 30. EDIT: Is there a undo? Edited February 9, 2011 by ololizoz
Guest skymera Posted February 9, 2011 Report Posted February 9, 2011 Thanks, might use this! Do you mind shedding some light on how you did this?
Guest Victor von Zeppelin Posted February 9, 2011 Report Posted February 9, 2011 I'm using this now. But it seems that the screen never times out? It's on all the time, even if I set screen timeout to 15 sec and waits for 30. EDIT: Is there a undo? I'm assuming you'd just open up the package from this thread, replace the framework apk with the one from your rom, and reflash this new package.
Guest 90180360 Posted February 9, 2011 Report Posted February 9, 2011 I'm assuming you'd just open up the package from this thread, replace the framework apk with the one from your rom, and reflash this new package. Exactly. I can upload a package that brings you back to JJ9.
Guest 90180360 Posted February 9, 2011 Report Posted February 9, 2011 But it seems that the screen never times out? It's on all the time, even if I set screen timeout to 15 sec and waits for 30. Screen timeout should not be affected.
Guest Victor von Zeppelin Posted February 9, 2011 Report Posted February 9, 2011 Screen timeout should not be affected. C'mon man though, a little insight into what you did, you'd be my new favourite battery saver :P
Guest Mike_P Posted February 9, 2011 Report Posted February 9, 2011 C'mon man though, a little insight into what you did, you'd be my new favourite battery saver :PDecompile framework-res, edit arrays.xml, recompile, et voilà .
Guest 90180360 Posted February 9, 2011 Report Posted February 9, 2011 (edited) Decompile framework-res.apk, edit arrays.xml, recompile, et voilà . Exactly. Don't forget to sign though. See how to do it in this thread earlier today. (Special thanks again to jt_mcg!) I've changed the "config_autoBrightnessLcdBacklightValues, I guess "config_autoBrightnessLevels" is for OLEDs. About the values: 10 seems too low (screen stays completely dark), while 300 seems to high (brightness jumps back to regular levels after about a second). Edited February 9, 2011 by 90180360
Guest 90180360 Posted February 9, 2011 Report Posted February 9, 2011 And also, shame it'll only work on JJ The method works for all ROMs, unfortunately there's no other way (known to me) than to replace the whole framework-res.apk.
Guest jt_mcg Posted February 9, 2011 Report Posted February 9, 2011 Exactly. Don't forget to sign though. I've changed the "config_autoBrightnessLcdBacklightValues, I guess "config_autoBrightnessLevels" is for OLEDs. I've just learned how to do it in this thread earlier today. (Special thanks again to jt_mcg!) I've tried many different vlaues. 10 seems too low (screen stays completely dark), while 300 seems to high (brightness jumps back to regular levels after about a second). Nice work! I may have to look into your mod for my framework. Thank you!
Guest Simon O Posted February 10, 2011 Report Posted February 10, 2011 In case it helps anyone here are the original values from the Orange 2.1 ROM: <integer-array name="config_autoBrightnessLevels"> <item>20</item> <item>50</item> <item>100</item> <item>300</item> <item>600</item> <item>800</item> <item>1000</item> <item>3000</item> <item>8000</item> <item>10000</item> <item>12000</item> <item>999999999</item> </integer-array> <integer-array name="config_autoBrightnessLcdBacklightValues"> <item>30</item> <item>50</item> <item>70</item> <item>90</item> <item>110</item> <item>130</item> <item>150</item> <item>170</item> <item>190</item> <item>210</item> <item>230</item> <item>255</item> </integer-array>[/code]
Guest 90180360 Posted February 10, 2011 Report Posted February 10, 2011 (edited) In case it helps anyone here are the original values from the Orange 2.1 ROM: <integer-array name="config_autoBrightnessLevels"> <item>20</item> <item>50</item> <item>100</item> <item>300</item> <item>600</item> <item>800</item> <item>1000</item> <item>3000</item> <item>8000</item> <item>10000</item> <item>12000</item> <item>999999999</item> </integer-array> <integer-array name="config_autoBrightnessLcdBacklightValues"> <item>30</item> <item>50</item> <item>70</item> <item>90</item> <item>110</item> <item>130</item> <item>150</item> <item>170</item> <item>190</item> <item>210</item> <item>230</item> <item>255</item> </integer-array> Ok, that's interesting! In the Swiss stock ROM (OCH_P729BV1.0.0B01) they are identical to JJ9: <integer-array name="config_autoBrightnessLevels"> <item>5</item> <item>300</item> <item>500</item> <item>1000</item> <item>3000</item> <item>8000</item> </integer-array> <integer-array name="config_autoBrightnessLcdBacklightValues"> <item>30</item> <item>70</item> <item>90</item> <item>110</item> <item>140</item> <item>170</item> <item>210</item> </integer-array> So ZTE was expecting especially bright conditions in the UK? :P I wonder if it would be possible to change the number of steps manually, didn't try that yet. Also I wonder how it would be possible to change the display brightness which can be set manually. The min and max seem to correspond to the original min and max of the automatic brightness, but they don't change if arrays.xml is edited. Edited February 10, 2011 by 90180360
Guest Len Ash Posted February 10, 2011 Report Posted February 10, 2011 (edited) Same values in Paul's R12: <integer-array name="config_autoBrightnessLevels"> <item>5</item> <item>300</item> <item>500</item> <item>1000</item> <item>3000</item> <item>8000</item> </integer-array> - <integer-array name="config_autoBrightnessLcdBacklightValues"> <item>30</item> <item>70</item> <item>90</item> <item>110</item> <item>140</item> <item>170</item> <item>210</item> </integer-array> Edited February 10, 2011 by Len Ash
Guest Phoenix Silver Posted February 10, 2011 Report Posted February 10, 2011 the value 9999999999 is for ??? exploding the screen ??? :P
Guest Len Ash Posted February 11, 2011 Report Posted February 11, 2011 (edited) In case it helps anyone here are the original values from the Orange 2.1 ROM: <integer-array name="config_autoBrightnessLevels"> <item>20</item> <item>50</item> <item>100</item> <item>300</item> <item>600</item> <item>800</item> <item>1000</item> <item>3000</item> <item>8000</item> <item>10000</item> <item>12000</item> <item>999999999</item> </integer-array> <integer-array name="config_autoBrightnessLcdBacklightValues"> <item>30</item> <item>50</item> <item>70</item> <item>90</item> <item>110</item> <item>130</item> <item>150</item> <item>170</item> <item>190</item> <item>210</item> <item>230</item> <item>255</item> </integer-array> Interesting... I'm not sure that's true. It doesn't match the values I've just pulled from a virgin OUK ROM... The first array is for the light sensor values, not the "screen brightness" level per se. So this calibrates for screen and button brightness depending on the light level and the type of sensor, as in INPUT. Changing the first value in the first array changes the "light level" at which the first "brightness level" in the second array is used. The second array sets the screen brightness (for OLED and LCD) level as an OUTPUT. The second array MUST have one line more than the first array. Which is why I believe the above tables to be bogus. Use both arrays, but do so "properly".... :P Edited February 11, 2011 by Len Ash
Guest Simon O Posted February 11, 2011 Report Posted February 11, 2011 (edited) Interesting... I'm not sure that's true. It doesn't match the values I've just pulled from a virgin OUK ROM... The first array is for the light sensor values, not the "screen brightness" level per se. So this calibrates for screen and button brightness depending on the light level and the type of sensor, as in INPUT. Changing the first value in the first array changes the "light level" at which the first "brightness level" in the second array is used. The second array sets the screen brightness (for OLED and LCD) level as an OUTPUT. The second array MUST have one line more than the first array. Which is why I believe the above tables to be bogus. Use both arrays, but do so "properly".... :P Values taken from P729BV1.0.0B08 framework-res which is the TFT Orange ROM 1st version. I assumed it would be similar to the first OLED version with lcd additions. Edited February 11, 2011 by flibblesan
Guest Len Ash Posted February 11, 2011 Report Posted February 11, 2011 Ah ha, I've been wanting something like this for a while...but alas, the other way round, Have full darkness lighter. And also, shame it'll only work on JJ, any chance you could give some pointers on how I could do this for myself, on my framework apk? Done one for Paul's R12... not sure which way round you need it though?
Guest Victor von Zeppelin Posted February 11, 2011 Report Posted February 11, 2011 Done one for Paul's R12... not sure which way round you need it though? Ah, you excellent man! I'd personally prefer it how it is, but with the lower values, for when it's totally dark, to be a tad higher, so, maybe, make step 1 = step 2, and make step 2 halfway between step 2 and 3. Thank you :P
Guest Len Ash Posted February 11, 2011 Report Posted February 11, 2011 Ah, you excellent man! I'd personally prefer it how it is, but with the lower values, for when it's totally dark, to be a tad higher, so, maybe, make step 1 = step 2, and make step 2 halfway between step 2 and 3. Thank you :P So you want it to be generally brighter - particularly at low ambient levels? Are you OK with ADB?
Guest Victor von Zeppelin Posted February 11, 2011 Report Posted February 11, 2011 So you want it to be generally brighter - particularly at low ambient levels? Are you OK with ADB? I feel that the higher values are fine, it's just bottoming out that I feel needs to be higher. And yes, all good with ADB. Are you basing it around the r12 framework-res?
Guest Len Ash Posted February 11, 2011 Report Posted February 11, 2011 I feel that the higher values are fine, it's just bottoming out that I feel needs to be higher. And yes, all good with ADB. Are you basing it around the r12 framework-res? Yep - just push via ADB Will pop an attachment up soon...
Guest Len Ash Posted February 11, 2011 Report Posted February 11, 2011 (edited) Yep - just push via ADB Will pop an attachment up soon... Try the attached (zipped not for Clockwork!) You may need to resign in to your Google accounts.... for some reason.framework_res.zip Edited February 11, 2011 by Len Ash
Guest Len Ash Posted February 11, 2011 Report Posted February 11, 2011 (edited) This one is for R12 TFTs only. Not GB themed versions. More (i.e. smoother) brightness steps and goes as low as possible for max battery life. Push extracted file via ADB or similarTFT_Battery_saver_framework_res.zip Edited February 11, 2011 by Len Ash
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now