View Single Post
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#2754
Originally Posted by sulu View Post
My thoughts exactly.
But how do I do that (without adding evil hacks to the kernel-config script)?
Then you need to make a patch for a new version of KP!

FWIW!

I do not use KP settings, I gave up on it a long time ago. There is some kinky bug that appears some times that makes the whole thing spazz out leading to massive battery drain leaving you no option but to power off and pull the battery.

I use 2 scripts:

/etc/X11/Xsession.post/80avoidfreqs:

Code:
#!/bin/sh
    sudo /opt/scripts/avoid_freqs.sh
and

/opt/scripts/avoid_freqs.sh:

Code:
    #!/bin/sh
    ##set some frequencies
    #avoid frequencies
    echo "125000 550000 600000 805000 950000 1000000 1100000 1150000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies
    #up threshold
    echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
    #nice load
    echo "0" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load
     
    ##Set DSP freqs
    echo "90 90 180 360 400 430 520 600 600 600 600 600 600" > /sys/power/dsp_opps_rate
     
    ##FS mods
    #enable camera button
    #echo "cam"
    chmod 666 /sys/devices/platform/gpio-switch/cam_focus/disable
    echo 0 > /sys/devices/platform/gpio-switch/cam_focus/disable
    chmod 444 /sys/devices/platform/gpio-switch/cam_focus/disable
     
    #FM boost/region
    #echo "fmtx"
    chmod 666 /sys/class/i2c-adapter/i2c-2/2-0063/region
    echo 4 > /sys/class/i2c-adapter/i2c-2/2-0063/region
    chmod 644 /sys/class/i2c-adapter/i2c-2/2-0063/region

    #load injection drivers
    /opt/wifi/load.sh
          
    #setup wifi for all channels
    iw reg set JP

    exit
These fill in gaps that are left by pmconfig, it also does some other nice stuff like open wifi channel 13, maximise FMTX power, enable cam focus button through lockscreen to allow skipping tracks while locked with buttin and soon, when kp50 rolls around, disable red LED.

One day I will get around to bodging this into pmconfig, however it seems to run fine right now so uh f**kit.
__________________
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.