View Single Post
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#1
I have looked most of meamo and goggled a lot but can't seem to find anybody that has made an app or got a solution to making a custom brightness setting/app

My own findings/solutions so far have been:
Disabling ALS via /etc/mce/mce.ini
Making a SH that loops with:
echo 160 >/sys/class/backlight/acx565akm/brightness
sleep 1

This works, and keeps my screen brightness at 160 witch is a nice setting since is kinda in the middle of setting 4 and 5 with ALS.

Disabling ALS is possible by removing it in mce.ini but it does have a bad effect by changing the 5 normal settings to 2, 5, 7, 10, 12, now whats needed in my view is to find out how to change the 5 normal settings from the really low settings without ALS to 5 custom steps.

Progress so far.
-----------------------------------
edit /etc/mce/mce.ini
remove the 'filter-brightness-als' from 'Modules=', of course rember to backup original 'mce.ini'.

make a script file in /etc/event.d/ "your filename here"
Code:
start on started hildon-desktop
exec /etc/init.d/ "your filename here"
make a script file in /etc/init.d/ "your filename here"
Code:
#! /bin/sh
cat "brightness file" >sys/class/backlight/acx565akm/brightness
dbus-monitor --system type='signal',interface='com.nokia.mce.signal',member='display_status_ind' | while grep -q "display_status_ind"
do
   cat "brightness file" >sys/class/backlight/acx565akm/brightness
done
files:
"brightness file" - mine is /home/user/bright_setting
"your filename here" - mine is /etc/event.d/frost_custom_settings and /etc/init.d/frost_custom_settings

remember to make the "brightness file" before rebooting else it will assume your brightness is 0 and that will turn off your backlight completely, witch will make it VERY difficult to see anything on the screen.

Last edited by dr_frost_dk; 2010-10-21 at 13:12.
 

The Following 2 Users Say Thank You to dr_frost_dk For This Useful Post: