View Single Post
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: