Active Topics

 


Poll: Delet the values from the speedpatch?
Poll Options
Delet the values from the speedpatch?

Reply
Thread Tools
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#1321
Originally Posted by trisha02 View Post
you are a great guy..i wish i cud gav these long battery life lyk others..tried every way
reflash you f******* phone.

Jesus christ.
__________________
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.
 

The Following 4 Users Say Thank You to vi_ For This Useful Post:
Posts: 915 | Thanked: 57 times | Joined on Jun 2011
#1322
i just ****ing did it yesterday....
 
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#1323
Originally Posted by carlon View Post
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
yes that is possible
i will pm him
 
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#1324
For sleepy time:

Originally Posted by vi_ View Post
'inactivity' signal - apply settings for standby.
Dbus-scripts line:

Code:
/opt/scripts/cpu_sleep.sh * * com.nokia.mce.signal system_inactivity_ind
the script:

Code:
#!/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
__________________
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.
 

The Following 5 Users Say Thank You to vi_ For This Useful Post:
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#1325
For awake time:

Originally Posted by vi_ View Post
'unlocked' signal - apply 'runtime' scripts.
dbus-scripts line

Code:
/opt/scripts/cpu_normal.sh * * com.nokia.mce.signal tklock_mode_ind unlocked
The script:


Code:
#!/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.
__________________
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.
 

The Following 6 Users Say Thank You to vi_ For This Useful Post:
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#1326
 
corduroysack's Avatar
Posts: 939 | Thanked: 366 times | Joined on Dec 2010 @ U.K.
#1327
Originally Posted by trisha02 View Post
i just ****ing did it yesterday....
sound like your battery is sha##ed then, i think someone has already suggested this (vi_) read up the battery thread on TMO. you can get details of higher capacity battery than stock on there.

http://talk.maemo.org/showthread.php...hlight=battery
__________________
"I Reject Your Reality & Substitute My Own" Adam Savage

Last edited by corduroysack; 2011-07-25 at 15:48.
 

The Following User Says Thank You to corduroysack For This Useful Post:
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#1328
The 'lock' signal



Code:
#!/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


The 'unlock' signal

Code:
#!/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
will test it with those edits

Last edited by karam; 2011-07-25 at 15:42.
 
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#1329
Originally Posted by karam View Post
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

Code:
#!/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
will test it with those edits
Noooo! Read the script and comments bro! This is not ready to roll strait out...

It's dangerous to go alone. Take this:


Sleep:
Code:
#!/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
Awake:
Code:
#!/bin/sh
echo 10 > /proc/sys/vm/vfs_cache_pressure
__________________
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.

Last edited by vi_; 2011-07-25 at 15:47.
 

The Following User Says Thank You to vi_ For This Useful Post:
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#1330
ok ok i will but can you tell me why will this cause a trouble?
didn't installed dbus-scripts package yet anyway

but any problems with the unlock?


EDIT : echo 10 when a sleep
echo 100 (the default) when awake

why reversted them?

Last edited by karam; 2011-07-25 at 15:51.
 
Reply

Tags
autobrick, awesome-script, do no install, f***epitaph, install it now, perfect_ n900, script-a-brick, very safe


 
Forum Jump


All times are GMT. The time now is 20:50.