[HD2 Android NAND Development] dorimanx:
Real Working Auto Brightness module

​

Here is the Auto Brightness module that you can configure via Settings ( lights.qsd8k.so )

But You will lose the Blinking Notification Light! it's just will be ON (Red Light) if you have notification, or OFF if you don't.

My settings that work just great for me :)

After installation go to settings > Display settings > Brightness

And set the Automatic Brightness ON

Then go to settings > CyanogenMod settings > Display > Automatic backlight.

*At Light sensor filter check-box ENABLED

*At windows length use 10sec

*Reset threshold use 400LUX

*Sample interval use 2sec

At Light Levels check-box Use Custom

*Screen dim level use 10

*Edit other levels...

Firs of all : Set number of levels to 7 and push the save & apply, you should see now 7 levels

It's should look like that:

[B]

Upper = (this is changing automatically when you set all the rest)[/B] [B]

Lower Upper Screen Buttons[/B] [B]

0 14 25 255[/B] [B]

15 149 40 255[/B] [B]

150 224 50 255[/B] [B]

225 499 70 0[/B] [B]

500 999 80 0[/B] [B]

1000 2999 100 0[/B] [B]

3000 INFINITY 250 0 (this is the max level)[/B]

Save & Apply go back <--

*Check-Box the Allow light decrease

*At decrease hysteresis use 50%

Have fun with the setting if you like. :)

View attachment 749143

CROND TASKER! MODULE!

​

I have finally cooked the CROND task service configuration, Thanks to LIT!

I have uploaded file CRON-TASKS.zip to mirror.

Cron will start 2 minutes after Full BOOT!!!

SO HOW TO CONFIGURE IT BEFORE INSTALL!!!!

Open the zip!

in folder /system/etc/int.d

open file 08wcron with notepad ++ of EditPlus (not with notepad)

find this:

TZ=IDT-3

This is the TIME ZONE! it's important!

PUSH THIS LINK!

Find you country in that LINK!

Example!

I see for Israel

Friday, August 12, 2011 at 01:44:22 IDT

Current time zone offset:UTC/GMT +3 hours

So i need to SET! opposite! -3 (WHY? have no idea, but this is the only way)

TZ=IDT-3

Then save and install

WHAT IS IT DO?

First it's will remove the Phone prioritizer app, and save you 60MB ram,

CRON will do this!:

Run the prioritizer script every 10 minutes to speed up the phone!

1-59/10 * * * * sh /mnt/sdcard/phonePrioritizer/script.txt;date > /data/cron-renice;echo "runing script.txt every 10MIN" >> /data/cron-renice

Run Clear file Cache every 4AM!

0 4 * * * sh /mnt/sdcard/phonePrioritizer/reboot.txt;date > /data/cron-clear-file-cache;echo "runing reboot.txt to clear cache without reboot every 4:00AM" >> /data/cron-clear-file-cache

Run Clear RAM Cache every 6 hours day/night to speed up the phone!

0 0-23/6 * * * sync;sysctl -w vm.drop_caches=3;sleep 3;sysctl -w vm.drop_caches=0;date > /data/cron-clear-ram-cache;echo "runing clear ram cache every 6 Hours" >> /data/cron-clear-ram-cache

Clear SWAP and re-enable it back! Release all the LAG cache (works for HIGH END, no change for LIGHT ROM)

20 4 * * * swapoff -a;sleep 5;swapon -a;date > /data/cron-clear-swap;echo "runing clear swap every 4:20AM" >> /data/cron-clear-swap

Script that hold the tsks above is in /data/data/cron/root (in install ZIP)

when in phone then in /data/cron/root

Examples:

* * * * * sh /sdcard/SOMESCRIPT.sh (this will run the script every minute!)

0 5 * * * sh /sdcard/SOMESCRIPT.sh (this will run the script every 5:00AM)

30 5 * * * sh /sdcard/SOMESCRIPT.sh (this will run the script every 5:30AM)

1-59/30 * * * * sh /sdcard/SOMESCRIPT.sh (this will run the script every 30 minutes!)

There are too many combinations, search google :) for crontab settings

Also i have packed small script name cron-check.sh it's will go to /sdcard/gscript

so load it with gscript and then you can check the status of CRON!

this is what you will see!

/data/cron-clear-file-cache:Thu Aug 11 04:00:01 PDT 2011

/data/cron-clear-file-cache:runing reboot.txt to clear cache without reboot every 4:00AM

/data/cron-clear-ram-cache:Thu Aug 11 18:06:56 PDT 2011

/data/cron-clear-ram-cache:runing clear ram cache every 6 Hours

/data/cron-clear-swap:Thu Aug 11 04:20:06 PDT 2011

/data/cron-clear-swap:runing clear swap every 4:20AM

/data/cron-renice:Thu Aug 11 21:21:01 PDT 2011

/data/cron-renice:runing script.txt every 10MIN

if you see this with your time, then all ok!

But you need to wait till it's will be executed!

so first you will see the:

/data/cron-renice:Thu Aug 11 21:21:01 PDT 2011

/data/cron-renice:runing script.txt every 10MIN

after 10 minutes,

all the rest after first execution!

To see if cron RUNNING!

crond is installed with the busybox!

in terminal do:

ps | grep crond

you get something like this (after you install configured ZIP)

# ps | grep crond

root 4338 1 2188 420 c00bf130 00008a7c S crond

So have fun with it