![]() |
Re: Custom Brightness for N900 - no ALS
Quote:
|
Re: Custom Brightness for N900 - no ALS
as i said i'm not the most hardcore programmer, so if anybody can tell me how to get JonWW's script to start up on boot that would be nice.
|
Re: Custom Brightness for N900 - no ALS
been trying various things....
still can't figure out how to make this run on startup..... |
Re: Custom Brightness for N900 - no ALS
|
Re: Custom Brightness for N900 - no ALS
Look in
Code:
/etc/event.d |
Re: Custom Brightness for N900 - no ALS
allmost got it working now just need help with one last thing:
It now starts the scrips on boot (started hildon-desktop) but it does not keep running, and brightness is back to normal after keyock or "fadeout" my /etc/event.d/frost_custom_settings -------------------------------------------------- start on started hildon-desktop stop on starting shutdown script echo 4 >/sys/class/i2c-adapter/i2c-2/2-0063/region cat /home/user/bright_setting >/sys/class/backlight/acx565akm/brightness dbus-monitor --system type='signal',interface='com.nokia.mce.signal',mem ber='display_status_in' | while grep -q "display_status_ind" do cat /home/user/bright_setting >/sys/class/backlight/acx565akm/brightness done end script ----------------------------------------- what am i doing wrong??? |
Re: Custom Brightness for N900 - no ALS
Run an boot setup should go here
/etc/event.d/frost_custom_settings: Code:
start on started hildon-desktop /etc/init.d/frost_custom_settings: Code:
echo 4 >/sys/class/i2c-adapter/i2c-2/2-0063/region |
Re: Custom Brightness for N900 - no ALS
still no cigar.....
it still only runs on startup, but doesn't keep going.... scratch that, there was a typo in the code in my script..... member='display_status_in' should had been member='display_status_ind' |
Re: Custom Brightness for N900 - no ALS
now i just have to make a widget or something that does
---------------- "get value" from widget (brightness) echo (brightness) >/sys/class/backlight/acx565akm/brightness write/echo (brightness) >/home/user/bright_setting than it should change brightness and use the value from /home/user/bright_setting the widget can be made with 2 - xx memory settings for the settings you like to use. MANY thanks to JonWW for all the help in finally making this work. No more stupid ALS and a custom brightness thats suits the user I have made a complete guide to this at the first post now. This so far only gives you 1 brightness setting but a homemade widget can be made to give you more settings. This does not change the stock 5 settings, witch after the removal of ALS will be 5 very low steps. If anybody finds out how to change the 5 stock steps to 5 custom steps please post it here or let me know :). |
Re: Custom Brightness for N900 - no ALS
Try experimenting with 'Simple Brightness Applet' in your do loop to see what value it set the screen brightness to, then if those value appear when you 'cat /sys/class/backlight/acx565akm/brightness' substitute you own values to suit you.
Run you script in XTerm to see whats going on first. Keep us updated. |
All times are GMT. The time now is 19:26. |
vBulletin® Version 3.8.8