![]() |
2008-05-30
, 11:43
|
Posts: 34 |
Thanked: 21 times |
Joined on Feb 2008
|
#2
|
The Following User Says Thank You to austin For This Useful Post: | ||
![]() |
2008-05-30
, 12:47
|
Posts: 30 |
Thanked: 5 times |
Joined on May 2008
|
#3
|
![]() |
2008-05-30
, 19:57
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#4
|
![]() |
2008-05-31
, 10:49
|
Posts: 30 |
Thanked: 5 times |
Joined on May 2008
|
#5
|
suspend "Suspend Mode"
suspend = call system.device.offline_mode; call system.device.softpoweroff; hide
[suspend_mode] on_init = timer_set back_to_main 2 key_power = call systemui.ui.switch_offline_mode; call systemui.ui.softpoweroff; back_to_main = switch powerlaunch.main
![]() |
2008-05-31
, 16:55
|
Posts: 34 |
Thanked: 21 times |
Joined on Feb 2008
|
#6
|
Here is the code for my original idea of a suspend.conf to go in the "/home/user/.powerlaunch/" directory:
I don't have the double power button tap working but at least I have a menu option that will shut off the wifi and do a softpoweroff. I still want to figure out the double tap option. I'm having a hard time making a file in my "/home/user/.powerlaunch/" directory that will be automatically loaded by powerlaunch without having to modify any of the core config files. There's also an event for power_key_release that gets in the way too.Code:[suspend_mode] on_init = timer_set back_to_main 2 key_power = call systemui.ui.switch_offline_mode; call systemui.ui.softpoweroff; back_to_main = switch powerlaunch.main
[suspend_mode] on_init = set powerdouble 0 key_power = if $powerdouble suspend waitsuspend suspend = set powerdouble 0; call systemui.ui.switch_offline_mode; call systemui.ui.softpoweroff waitsuspend = set powerdouble 1; timer_set clearsuspend 2 clearsuspend = set powerdouble 0
![]() |
2008-06-01
, 04:50
|
Posts: 5 |
Thanked: 9 times |
Joined on May 2008
@ Minneapolis
|
#7
|
![]() |
2008-06-02
, 17:32
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#8
|
Here's how the script will work:
When the Power Button is Pressed:
- If a specific timer is counting down, execute the command for "offline mode" and for "soft poweroff"
-If the timer is not counting down, start it counting down from 2 seconds.
Does anyone know the specific command or programs to run to execute the "offline mode" and the "soft poweroff"