[ROM][CM10] (CAMERA,AUTOBRIGHTNESS,AGPS) Dark Mod v0.901 2012-12-17

cyclon1978

Senior Member
Nov 27, 2008
529
337
0
Hello,

i'd like to share my personal daily rom. Its main purpose is to allow you to read in bed without disturbing your girlfriend. :D
Secondary, the battery consumption will be less while screen is on.
This is reached with allowing the brightness to go down to the (nearly) absolute minimum. I recommend the "CoolReader" Application with Brightness set to "default" so it will use the current system brightness.

To extend battery life the LED's are configured to be as dark as possible.

Not all brightness control widgets uses the system minimum value, so if you not use the system display settings or the toolbar brightness button you'll have to check if your brigthness widget reaches the minimum of "1", test it with "cat /sys/devices/platform/omap/omap_i2c.2/i2c-2/2-0060/backlight/aat2870_i2c_bl/brightness" in a adb shell or in terminal application.

The rom has a configuration menu in settings/advanced; at the moment you can only configure LTO (Long term orbit) data download which should increase gps performance.

Minor changes:

[*] G-Button long press starts Camera

There are some mods to kernel, so you cant use other kernels with it without loosing functionality. It is based on the repository at the time of the build, so it can be different to the nightly from the same day if that nightly is build some hours earlier or later.

Wipe not needed if coming from cm10 nightly. Every other base should wipe everything except sdcard ;)

User applications from gingerbread, ics or jellybean can be restored with titanium, but no settings, accounts, call logs, etc.

Google apps are not included, you have to flash them seperate.

I will only upload builds which generally work (starting after flash, 5 minutes testing).

Mod list/Changelog:

v.0.901
  • camera library updated to v30b version
  • CM10 changes merged

v.0.9l
  • merged all fixes in new display driver
  • gps library updated to v30b version
  • CM10 changes merged

v.0.9h
  • display driver cleaned up - "flash" if screen enabled - bug solved
  • CM10 changes merged

v.0.7
  • minor bugfixes in LTO download menu
  • new configuration to disable key backlight
  • autobrightness adjusted - brighter in bright areas
  • CM10 changes merged

v.0.6
  • GPS assistance data autodownload and gps fixes may improve lock time, see settings/advanced
  • CM10 changes merged

v.0.5
  • Automatic brightness adjusted, more brightness in sunlight, but totally dark in a dark room
  • CM10 changes merged

v.0.4
  • Automatic brightness adjusted - may be too dark for sunlight ;)
  • CM10 changes merged

v.0.3
  • Button brightness reduced even more
  • Long press "G" key starts camera (instead of printing a comma)
  • CM10 changes merged

v.0.2
  • Button brightness reduced
  • CM10 changes merged

v.0.1
  • Screen darkness patched to go in a range from [1..255]

Known bugs:

  • SOLVED: Screen brightness is not restored after screen on with power button, but after unlocking device in lockscreen.
  • All CM 10 bugs are included ;)

For cm10 changes see cm10 changelogs, i will not repeat them at this thread.

Download links:

v0.901 ANONFILES MD5: efb727319746fb21f233be5d58872ddd

Filesize is 166019503 bytes.

Please check filesize and/or md5sum! The downloads sometimes fail and give you a partial zip file. You can also check zip file integrity with a zip tool.

REPORT BACK IF PROBLEM WITH
- GPS
- CAMERA
- BRIGHTNESS
- BUTTON-LEDs

LOGCATs will help me to solve the issues!

old download links:

v0.9l ANONFILES MD5: c31d097e62e228d3df54d2399d4d3acc
v0.9h ANONFILES MD5: 052b12fc8db79141a265250620274b32
v0.9h RAPIDSHARE MD5: 052b12fc8db79141a265250620274b32

v0.7 2012-11-19 MD5: c13ceba1fb1ee0173b63f94cf90c7e4c
v0.6 2012-11-13 MD5: cf3f37abc1b7f0485298f74e3804b34e
v0.5 2012-11-12 MD5: 01896439f280c5a4b60fd81d7764f94b
v0.4 2012-11-06 MD5: 226dbd5f6db52c4547f8d1148adbf6e3
v0.3 2012-10-22 MD5: 10de70ccdb551152638e4dadf9e46a4f
v0.2 2012-10-17 MD5: c65944b9fef73639a329f98aac4c84a0
v0.1 2012-10-16 MD5: 8849de5cbc82d744c20870c5ff24d261

Please give feedback!

Reuploads are allowed, but please pm me so i can add the links.

credits/thanks:
  • cm 10 team for the base
  • zubyro / sharebitz.net for filehosting
  • huexxx for gps tips
  • Aaron Echols for gps autodownloading code
 
Last edited:

rrgrrg

Senior Member
Aug 31, 2012
2,864
4,346
0
Alexandria
rrgrrgofficial.wordpress.com
well nice of you to develop cm10 ,, but i think you are pointing on a minor bug ,, a main bug wich makes everybody NOT to use cm10 is hd games ,, most crash after 3 second of playing and others doesnt work at all ,, so if u want to fix that its a "gpu overlay" issue :laugh:
 
  • Like
Reactions: HuEx

cyclon1978

Senior Member
Nov 27, 2008
529
337
0
well nice of you to develop cm10 ,, but i think you are pointing on a minor bug ,, a main bug wich makes everybody NOT to use cm10 is hd games ,, most crash after 3 second of playing and others doesnt work at all ,, so if u want to fix that its a "gpu overlay" issue :laugh:
Thats is right - but i primary fix bugs/make enhancements concerning my personal usage. Thats selfish, i know ;)

Generally brightness minimum is not a bug - lg sets a minimum of "20" wasting battery, cm 10 uses same value. That has one good effect - if you go in bright sunlight and enable your device with a minimum brightness of "20" there is a better chance to see something.

And the mentioned issue... kernel related i think and not easy to fix for me, but i think easy for the pro's.
 

CalamitySir

Senior Member
Jan 20, 2011
388
46
58
no no no thats not the problem! the problem with CM10 is the sdcard, apollo gallery and some apps dont work for me because sdcard is in /storage/sdcard0.
 

cyclon1978

Senior Member
Nov 27, 2008
529
337
0
no no no thats not the problem! the problem with CM10 is the sdcard, apollo gallery and some apps dont work for me because sdcard is in /storage/sdcard0.
If you're sure, that's the problem... i will look into it.

Edit:

i looked into it...

All apps should look in /sdcard which is a symlink to /storage/sdcard0

So... if some apps are having problems with symlink - ouch...
If some apps are looking somewhere else ... more symlinks will help.

Do you have a logcat with some exception like file open in /storage/sdcard/* not found?

Apollo and Gallery work for me (Apollo is generally half baked, so "working" is relative...)

More research:

Jellybean roms (different devices) use...

/sdcard/
/storage/sdcard0/
/data/media/
/mnt/sdcard/

Maybe creating all missing directories (as symlinks to /storage/sdcard0) will help.

Anyway, without an example to reproduce i'm stuck...
 
Last edited:
  • Like
Reactions: chocnroll

cyclon1978

Senior Member
Nov 27, 2008
529
337
0
I may know you! :eek:
It's like S...z's method to show his "amazing" ROM.
Step by step, show every project... but never done and useless!
This project is usable as daily rom. I am not S...z, i am much older ;)

And my only own project here btw. until now i just provided infos to huexx, he included my mod in zeus rom.
 

mbting

Senior Member
Mar 23, 2011
88
17
0
hey as ur main objective is darkening......

i wn to kno if you cud reduce the led button lights in your rom. have been roaming around the forum and asking to find an easy way to do this. only solution i found was compiling from source.

so as long as u r reducing lights and compiling, might as well ;)
 

cyclon1978

Senior Member
Nov 27, 2008
529
337
0
hey as ur main objective is darkening......

i wn to kno if you cud reduce the led button lights in your rom. have been roaming around the forum and asking to find an easy way to do this. only solution i found was compiling from source.

so as long as u r reducing lights and compiling, might as well ;)
if you want to disable led light:

adb shell
su
echo "0" > /sys/devices/platform/omap/omap_i2c.2/i2c-2/2-001a/led_onoff

But only until screen lock. I use CoolReader, option "Disable Button Backlight" -> works fine while reading with CoolReader.

The button brightness works not, so it has to be modified in the kernel... at the moment i have no time for deeper changes.

Greetings,

Andreas
 

mbting

Senior Member
Mar 23, 2011
88
17
0
if you want to disable led light:

adb shell
su
echo "0" > /sys/devices/platform/omap/omap_i2c.2/i2c-2/2-001a/led_onoff

But only until screen lock. I use CoolReader, option "Disable Button Backlight" -> works fine while reading with CoolReader.

The button brightness works not, so it has to be modified in the kernel... at the moment i have no time for deeper changes.

Greetings,

Andreas
honestly i have zero experience with kernels and the like.

but these might help i guess

Code:
drivers/leds/leds-bd2802.c
Code:
#define BD2802_CURRENT_WHITE_PEAK	0x5A /* 18mA */
#define BD2802_CURRENT_WHITE_MAX		0x2D /*9mA*///	0x32 /* 10mA */
#define BD2802_CURRENT_BLUE_MAX		0x32 /* 10mA */
#define BD2802_CURRENT_WHITE_MIN	0x05/*1mA*/
#define BD2802_CURRENT_BLUE_MIN		0x05 /* 1mA */
thanks
 
  • Like
Reactions: cyclon1978

cyclon1978

Senior Member
Nov 27, 2008
529
337
0
honestly i have zero experience with kernels and the like.

but these might help i guess

Code:
drivers/leds/leds-bd2802.c
Code:
#define BD2802_CURRENT_WHITE_PEAK	0x5A /* 18mA */
#define BD2802_CURRENT_WHITE_MAX		0x2D /*9mA*///	0x32 /* 10mA */
#define BD2802_CURRENT_BLUE_MAX		0x32 /* 10mA */
#define BD2802_CURRENT_WHITE_MIN	0x05/*1mA*/
#define BD2802_CURRENT_BLUE_MIN		0x05 /* 1mA */
thanks
I used 0.2 mA for min, 1mA for MAX and 10mA for PEAK.

Testing in progress....

I do not know if min/max is both really used, at the moment my phone looks always the same, except the white peak on button press.

Thanks for the info!

Greetings,

Andreas
 

cyclon1978

Senior Member
Nov 27, 2008
529
337
0
OP updated with download link for new version.

There are several changes in kernel from ricardo, sound library changed for example. Generally it looks good, i recognized no change to better or worse ;)

Have fun!

Andreas
 

mbting

Senior Member
Mar 23, 2011
88
17
0
I used 0.2 mA for min, 1mA for MAX and 10mA for PEAK.

Testing in progress....

I do not know if min/max is both really used, at the moment my phone looks always the same, except the white peak on button press.

Thanks for the info!

Greetings,

Andreas
thanx for trying.....

i really would like to try a rom which a led light turned down.
i wudnt mind even if the lights stayed off
actually i was happy when the korean ics version had a bug in the lights :p

i get speeds of around 5kb/s and 5hrs to complete
cud u upload it to mediafire
 
Last edited:

cyclon1978

Senior Member
Nov 27, 2008
529
337
0
thanx for trying.....

i wudnt mind if the lights stayed off
actually i was happy when the korean ics version had a bug in the lights :p
Hmmm... Who want the lights to be...

a) off
b) off but pressed one flashes
c) as dark as possible

Every vote counts :D

but.. the (coming) button light notification may not work with a), maybe with b) too, so add to your vote if you want to use light notifications
 
Last edited: