Thanks for the cool tips first! After a morning of flashing I finally have my Ray in a rooted 4.0.4 environment and got rid of the bootloop. Now I'm trying to enable the auto brightness thing, but it seems not working for me. I flashed your statusbar addons and it made the phone go into bootloop. It's recovered now, but still struggling with the auto brightness. What I did:
changed the /system/etc/hw_config.sh file to 3,2,2,0 in the params line
made sure permissions are -rw-r--r--
I even sourced the file from a terminal to make sure it's executed
And nothing happens. If I go to /sys/devices/i2c/0-0040/leds/lcd-backlight/als/params I can see the params are correctly set. the "enable" file also says 1. If I cat the "value" file I can see the value drops when I put my finger on the sensor. Service menu also shows the sensor value changes. But my screen doesn't dim. The brightness led value file says 255.
What can I do to actually link the led brightness to the sensor value?
Thanks in advance