View Single Post
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#58
Originally Posted by Gusse View Post
Is there a way to include a script (to tune kernel setting) when display is locked automatically (i.e. after 1min, in settings/display).

Settings when device is active:
(freq range 500-850MHz)
Code:
echo 850000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "125000 250000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies
Settings when device is in-active (i.e idle &. night times):
(freq range: 125 or 500MHz)
Code:
echo 500000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "250000 550000 600000 700000 750000 805000 850000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies
Can keyboard slide ( slide GPIO 71) or lock (kb_lock GPIO 113) switch events be used as triggers for scripts? If yes, how?

Alarmd or fcron could be used to set these on/off, but I would like more dynamic way to set kernel tunings. Any ideas?
dbus-scripts. See here: http://talk.maemo.org/showthread.php?t=48132
__________________
My repository

"N900 community support for the MeeGo-Harmattan" Is the new "Mer is Fremantle for N810".

No more Nokia devices for me.
 

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