Mon Jun 04, 2012 11:56 am
Mon Jun 04, 2012 12:31 pm
Mon Jun 04, 2012 1:03 pm
Mon Jun 04, 2012 1:09 pm
SpEc_OpS wrote:Ok first off please dont flame me i have searched and searched and everything i found did not work so here goes.
I have a navman MY65T and a navman MY50T both are running primo im trying to get some sort of power option that will switch it off when the external power disconnects. I have tried the shutdown_time option in sys.txt and all the corresponding system files i could find but as soon as it switches off it comes back on.
I was wondering if anyone can tell me if i can write a script or a program that i can include in the autorun.mscr file that will put the device into suspend mode when external power is disconnect and restart it when i reconnect it or something like this?
Both devices have a 3 way rocker switch going on-off-reset i noticed that when i switch it to the off position with the external power in it will stay on and the shutdown_time command works but putting external power back into it wont restart it.
I work as a courier so constantly switching on and off is extremely annoying especially because i have to go through the reset process and wait a couple of minutes for it to start up each time.
Mon Jun 04, 2012 1:27 pm
chas521 wrote:I've been doing this GPS modding for quite a while now so I've seen and heard things that a lot of you don't know about. When GPS first came out and was made available to the public, portable devices were being bricked in large numbers due to the fact that a lot of people were leaving the cable and device attached to the car after turning off the engine. What was happening is that people then re-started their car with the cable and device already attached. The surge of electricity from starting the car then caused the cable and/or the device to burn-out and brick the device.
This problem was later corrected by the manufacturers. But do you really know if your device is one of them? Even though my Mio C320 was supposedly "fixed", I still ALWAYS remove the device after using it and re-attach it after starting the car.
Just my thoughts and experience here.
Mon Jun 04, 2012 1:36 pm
SpEc_OpS wrote:Appreciate the input and duely noted but i would really like to get this working if not im going to update to a device that will work how i want it to so if i brick this one its not going to be a big loss plus i do have 2 so i already have a spare.
Mon Jun 04, 2012 1:36 pm
Mon Jun 04, 2012 2:13 pm
Mon Jun 04, 2012 2:38 pm
Mon Jun 04, 2012 3:04 pm
SpEc_OpS wrote:Ok so maybe not go into full suspend but close down everything not necessary to save power and then resume when external power comes back on?
Mon Jun 04, 2012 3:05 pm
Mon Jun 04, 2012 3:10 pm
Mon Jun 04, 2012 3:22 pm
SpEc_OpS wrote:actually im running of internal memory never said i was using a sd there isnt even a sd in my device.
I did find this apparantly it works on ce 5.0 but keeps flickering the screen on and off so i was thinking with this and a combination of another script to turn the display on and off with the ac power would be our solution
[color="#FF0000"]
No links to other forums.[/color]
Mon Jun 04, 2012 3:38 pm
Many thanks for sharing the package. I have further modified them to make the DAEMON running continuously. The scripts will now perform as follows:
Ask the user whether they want to activate this Auto Power On feature.
If yes
The device goes to Sleep when no external power applies; and
The DAEMON will keep searching until external power detected and
Wake up the device
p.s. to exit from the loop, I use the Power Button to turn off and restart the device.
Code:
# ON_AC_POWER_MENU.mscr
# Implemented on MortScript ([Please Register or Login to download file] )
# 2009-12-07
# Karako
# GNU General Public License (GPL), Version 2, June 1991
ErrorLevel("off")
Local()
Set ON_AC_POWER_DAEMON, "\SDMMC\ON_AC_POWER\ON_AC_POWER_DAEMON.exe"
Set RUN_APP, "\SDMMC\igo8\igo8.exe"
Set LOOP_SECS, 11
options[1] = "Skip Auto On/Off"
options[2] = " "
options[3] = "Engage Auto On/Off"
Sleep 100
SetChoiceEntryFormat(20, 16, "Verdana")
Choice("Auto_On_Off_Option", \
"^NL^AC Power Auto On/Off^NL^Choose whether you want the GPS device to be^NL^automatically fired up when External Power is supplied^NL^^NL^", \
options)
Case( 1 )
# do nothing
#
Case( 2 )
# do nothing
#
Case( 3 )
# kill old notification(s) to prevent overlap
RemoveNotifications( %ON_AC_POWER_DAEMON% )
Sleep 100
# run application
Run( %RUN_APP% )
# Wait for APP finish loading
Sleep 45000
ReRun = TimeStamp() + %LOOP_SECS%
RunAt( ReRun, %ON_AC_POWER_DAEMON% )
Sleep 100
Exit
EndChoice
# kill old notification(s) to disable this function
RemoveNotifications( %ON_AC_POWER_DAEMON% )
Sleep 100
Run( %RUN_APP% )
Exit
# ON_AC_POWER_DAEMON.mscr
# Implemented on MortScript ([Please Register or Login to download file] )
# based on the script from jwoegerbauer 09/04/2009
# GNU General Public License (GPL), Version 2, June 1991
# modified by Karako 2009-12-07
ErrorLevel("off")
Local()
# adjust to your needs (must > 10 seconds !!!!)
Set LOOP_SECS, 11
Set ON_AC_POWER_DAEMON, "\SDMMC\ON_AC_POWER\ON_AC_POWER_DAEMON.exe"
Set ON_AC_POWER_RESUME, "\SDMMC\ON_AC_POWER\ON_AC_POWER_RESUME.exe"
Set TURN_OFF, "\SDMMC\ON_AC_POWER\Sleep.exe"
Sleep 300
# kill old notification(s) to prevent overlap
RemoveNotifications( %ON_AC_POWER_DAEMON% )
Sleep 500
# check AC power line state
If( NOT ExternalPowered() )
# set new notification queue
ReRun = TimeStamp() + %LOOP_SECS%
RunAt( ReRun, %ON_AC_POWER_DAEMON% )
Sleep 100
# turn device again into standby
Run( %TURN_OFF% )
Else
# call resume script
RunWait( %ON_AC_POWER_RESUME% )
Sleep 1500
EndIf
Exit
# ON_AC_POWER_RESUME.mscr
# Implemented on MortScript ([Please Register or Login to download file] )
# based on the script from jwoegerbauer 09/04/2009
# GNU General Public License (GPL), Version 2, June 1991
# modified by Karako 2009-12-07
ErrorLevel("off")
Local()
# adjust to your needs ( must > 10 secs)
Set LOOP_SECS, 11
Set ON_AC_POWER_DAEMON, "\SDMMC\ON_AC_POWER\ON_AC_POWER_DAEMON.exe"
Set PLAY_SOUND, 0
Set WAV_FILE, "\SDMMC\ON_AC_POWER\notify.wav"
Sleep 100
If (ExternalPowered())
If (%PLAY_SOUND% )
PlaySound( %WAV_FILE% )
EndIf
# set new notification queue
ReRun = TimeStamp() + %LOOP_SECS%
RunAt( ReRun, %ON_AC_POWER_DAEMON% )
Sleep 100
#
EndIf
Exit
[/spoiler]
However, I experienced the same problem that the display will turn on and off itself for about 1 to 2 seconds in every cycle (about 10 seconds in my settings) when external power is not attached.
Is it possible to do a Registry tweak to force the display off when the device just wakes up by the Daemon to check for external power please?
I am thinking Registry keys like
HKLM\SYSTEM\CurrentControlSet\Control\Power\State\ BacklightOff
or
HKLM\SYSTEM\CurrentControlSet\Control\Power\State\ ScreenOff
Since I seldom work with Registry, really appreciate for anybody's guidance and hints.
Mon Jun 04, 2012 8:13 pm