The Following 4 Users Say Thank You to vi_ For This Useful Post: | ||
![]() |
2011-07-25
, 15:16
|
Posts: 915 |
Thanked: 57 times |
Joined on Jun 2011
|
#1322
|
![]() |
2011-07-25
, 15:17
|
Posts: 856 |
Thanked: 1,681 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#1323
|
Yes that is a really great idea, Maybe you can ask MAG for some help with the script, he seems to know the inner workings of the n900 like the back of his hand
![]() |
2011-07-25
, 15:19
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#1324
|
/opt/scripts/cpu_sleep.sh * * com.nokia.mce.signal system_inactivity_ind
#!/bin/sh ###This **** checks to see if phone is REALLY asleep... brightness=$(cat /sys/class/backlight/acx565akm/brightness) keyboard=$(cat /sys/devices/platform/gpio-switch/slide/state) #charger=$(cat /sys/devices/platform/musb_hdrc/charger) if [ "$brightness" == "0" ]; then if [ "$keyboard" == "closed" ]; then #load cpu profile, i.e. underclock #Do other stuff to save power i.e. vfs cache pressure etc. #maybe even stop bme for total max bro sleep. #start/stop bme on charger connected # if [ "$charger" = "0" ]; then # stop bme # echo $(date +"%d-%m %T") "bme stopped" >> /root/log #fi fi fi
![]() |
2011-07-25
, 15:22
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#1325
|
/opt/scripts/cpu_normal.sh * * com.nokia.mce.signal tklock_mode_ind unlocked
#!/bin/sh #set cpu to overclock mode #undo SmartReflex echo 0 > /sys/power/sr_vdd1_autocomp echo 0 > /sys/power/sr_vdd2_autocomp #load OverClock profile kernel load overclock #do other AWAKE stuff i.e. set VFS cache pressure.
The Following 6 Users Say Thank You to vi_ For This Useful Post: | ||
![]() |
2011-07-25
, 15:30
|
Posts: 856 |
Thanked: 1,681 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#1326
|
![]() |
2011-07-25
, 15:32
|
|
Posts: 939 |
Thanked: 366 times |
Joined on Dec 2010
@ U.K.
|
#1327
|
The Following User Says Thank You to corduroysack For This Useful Post: | ||
![]() |
2011-07-25
, 15:39
|
Posts: 856 |
Thanked: 1,681 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#1328
|
#!/bin/sh echo 10 > /proc/sys/vm/vfs_cache_pressure brightness=$(cat /sys/class/backlight/acx565akm/brightness) keyboard=$(cat /sys/devices/platform/gpio-switch/slide/state) #charger=$(cat /sys/devices/platform/musb_hdrc/charger) if [ "$brightness" == "0" ]; then if [ "$keyboard" == "closed" ]; then #load cpu profile, i.e. underclock #Do other stuff to save power i.e. vfs cache pressure etc. #maybe even stop bme for total max bro sleep. #start/stop bme on charger connected # if [ "$charger" = "0" ]; then # stop bme # echo $(date +"%d-%m %T") "bme stopped" >> /root/log #fi fi fi
#!/bin/sh echo 0 > /sys/power/sr_vdd1_autocomp echo 0 > /sys/power/sr_vdd2_autocomp kernel load overclock echo 100 > /proc/sys/vm/vfs_cache_pressure
![]() |
2011-07-25
, 15:43
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#1329
|
The 'lock' signal
Code:#!/bin/sh echo 100 > /proc/sys/vm/vfs_cache_pressure brightness=$(cat /sys/class/backlight/acx565akm/brightness) keyboard=$(cat /sys/devices/platform/gpio-switch/slide/state) #charger=$(cat /sys/devices/platform/musb_hdrc/charger) if [ "$brightness" == "0" ]; then if [ "$keyboard" == "closed" ]; then #load cpu profile, i.e. underclock #Do other stuff to save power i.e. vfs cache pressure etc. #maybe even stop bme for total max bro sleep. #start/stop bme on charger connected # if [ "$charger" = "0" ]; then # stop bme # echo $(date +"%d-%m %T") "bme stopped" >> /root/log #fi fi fi
The 'unlock' signal
will test it with those editsCode:#!/bin/sh echo 0 > /sys/power/sr_vdd1_autocomp echo 0 > /sys/power/sr_vdd2_autocomp kernel load overclock echo 10 > /proc/sys/vm/vfs_cache_pressure
#!/bin/sh brightness=$(cat /sys/class/backlight/acx565akm/brightness) keyboard=$(cat /sys/devices/platform/gpio-switch/slide/state) if [ "$brightness" == "0" ]; then if [ "$keyboard" == "closed" ]; then echo 100 > /proc/sys/vm/vfs_cache_pressure fi fi
#!/bin/sh echo 10 > /proc/sys/vm/vfs_cache_pressure
The Following User Says Thank You to vi_ For This Useful Post: | ||
![]() |
2011-07-25
, 15:47
|
Posts: 856 |
Thanked: 1,681 times |
Joined on Apr 2010
@ Aleppo ,Syria
|
#1330
|
![]() |
Tags |
autobrick, awesome-script, do no install, f***epitaph, install it now, perfect_ n900, script-a-brick, very safe |
|
Jesus christ.