View Single Post
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#118
I have this in a script that is triggered by /etc/X11/Xsession.post/. Just modify your xsession.post/50kernel_config to launch this script.

Obviously alter the script to reflect your own needs.

Code:
#!/bin/sh
echo "550000 850000 950000 1000000 1100000 1150000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies
echo 150000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
#echo "90 90 180 360 400 430 430 430 430 500 500 500 500 520 520" > /sys/power/dsp_opps_rate
echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load
echo "87" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold

#Camera button through lock screen
echo 0 > /sys/devices/platform/gpio-switch/cam_focus/disable
chmod 444 /sys/devices/platform/gpio-switch/cam_focus/disable
No you cannot just add random sh|te to /etc/pmconfig.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.