Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Timer app for turning off the box (like in TV)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Timer app for turning off the box (like in TV)

    Hello,
    I've just received the S89 from Geekbuying - it's working perfectly .

    I search for some kind of "off timer" app - something like in TV, where I can choose the time to turn off the unit. Does someone has some experience with this?

    Thank you for the response.

    #2
    Originally posted by piasq View Post
    Hello,
    I've just received the S89 from Geekbuying - it's working perfectly .

    I search for some kind of "off timer" app - something like in TV, where I can choose the time to turn off the unit. Does someone has some experience with this?

    Thank you for the response.

    You can mess with this script and put it in init.d....set a sleep timer and use this...this was for setting when wake but could easily be set for sleep. Find the command to shut down from command line.

    #!/system/bin/sh

    (while [ 1 ]
    do
    AWAKE=`cat /sys/power/wait_for_fb_wake`
    if [ $AWAKE = "awake" ]; then
    settings put global airplane_mode_on 1
    am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true
    sleep 5s
    settings put global airplane_mode_on 0
    am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false
    AWAKE=
    fi
    SLEEPING=`cat /sys/power/wait_for_fb_sleep`
    if [ $SLEEPING = "sleeping" ]; then
    sleep 5s
    SLEEPING=
    fi
    done &)


    Put this script in your init.d and it cycles airplane mode on wake.
    Prahjister ****MK808(nonB)****MK808B V5****MK808B Plus****UBOX R89**** CX919****MK808B Pro****Nexbox N9****Eny Em95****Matricon Q2****Tanix TX5 Pro****

    Comment


      #3
      I think it isn't really helpful because:
      1. how I understand this script only react at wake up to manage something special at that moment but not manage the wake up
      2. if you will manage power off or sleep with a looping script you only can do this with fix value for time (or have to edit this script or a parameter file every time you want to use it)
      3. not possible/useful for 'normal' users
      RK3288 Devices
      - Overview BOX (LINK !)
      - Overview STICK (Dongle) (LINK !)

      MINIX NEO: Z64 W/A - (Intel Z3735F); X8-H Plus - (Amlogic S812H); A2 Lite (sponsored by minix.com.hk)
      UGOOS UT3S (4/32GB with fan) - FW 2.0.6 - (RK3288) (sponsored by GearBest.com)
      Tronsmart Draco AW80 Meta (2/16GB) - FW v2.0rc3 - (Allwinner A80) (sponsored by GeekBuying.com)
      Beelink / UBOX R89 - FW 111k4110_1219 - (RK3288) (sponsored by Netxeon (Beelink))

      RK3188: pcb => "CH001 1332 TN-BX09_V2.1" (K-R42 / CS918...) => wasser KK 1.0.3 (old rev)
      Fly Mouse Mini Wireless Keyboard with 2 mode learning IR remote 'iPazzPort KP-810-16'

      Comment


        #4
        There are many 'schedule' shutdown app(s) on google market
        -however you might need root access

        Goodluck

        Comment

        Working...
        X