Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: OnResume/OnSuspend Commands in ExecTbl.ini not working...

  1. #1
    Newbie
    Join Date
    Oct 2005
    Posts
    44

    OnResume/OnSuspend Commands in ExecTbl.ini not working...

    I am not sure whats going on here but I am using the SerialSwitch plugin to get the DTRON and DTROFF commands (to turn on and off my amplifiers) unfortunately however when i stick the commands into OnSuspend/OnResume in the ExecTbl.ini they dont do anything.

    I have mapped dtroff/on to buttons in a skin and have confirmed that they work from there, so the commands themselves work, however Ride Runner just isn't sending them when hibernation is triggered/ends. Any ideas?

  2. #2
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,257
    u should look at debug.txt log, to see if RR even knows the system is going into hibernation


    like

    10/18/2009 1:06:21 AM: WM_POWERBROADCAST: wParam=PBT_APMSUSPEND
    10/18/2009 1:06:21 AM: PrepareForHibernate: (Start)
    10/18/2009 1:06:21 AM: Enter Exec: False, sirius.skin, "ONSUSPEND", False
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  3. #3
    Variable Bitrate Jebus's Avatar
    Join Date
    Dec 2007
    Location
    Washington, USA
    Posts
    313
    Please note that the MSCOMM control from Micro$oft does not play well during Suspend/Resume...SerialSwitch uses this.
    For some it does and some it doesn't. Although it sounds like you have a differen't issue. Debug as Mitch suggested.
    ...JJG

  4. #4
    Newbie
    Join Date
    Oct 2005
    Posts
    44
    Here is what shows up in the debug from the initiation of hibernate:

    Code:
    25.10.2009 21:30:15: PrepareForHibernate: (Start)
    25.10.2009 21:30:15: Enter Exec: False, shutdown.skin, "ONSUSPEND", False
    25.10.2009 21:30:15: Que Exec: True, shutdown.skin, "ONSUSPEND", False
    25.10.2009 21:30:15: Executing: DTROFF
    25.10.2009 21:30:15: Command not executed: DTROFF
    25.10.2009 21:30:15: Que Exec: True, shutdown.skin, "ONCOMMANDINVALID", False
    25.10.2009 21:30:15: Executing: ONCOMMANDINVALID
    25.10.2009 21:30:15: Leave Exec: False, shutdown.skin, ONCOMMANDINVALID, False
    25.10.2009 21:30:15: PrepareForHibernate: (After radio power's)
    25.10.2009 21:30:15: PrepareForHibernate: Event/File Flush (end sub)
    25.10.2009 21:30:17: WM_POWERBROADCAST: wParam=0
    25.10.2009 21:30:17: WM_POWERBROADCAST: wParam=0
    25.10.2009 21:30:17: WM_POWERBROADCAST: wParam=PBT_APMSUSPEND
    25.10.2009 21:30:17: WM_POWERBROADCAST: wParam=PBT_APMSUSPEND
    25.10.2009 21:31:06: Leave Exec: False, shutdown.skin, HIBERNATE, False
    25.10.2009 21:31:06: WM_POWERBROADCAST: wParam=PBT_APMRESUMEAUTOMATIC
    25.10.2009 21:31:06: WM_POWERBROADCAST: wParam=PBT_APMRESUMESUSPEND
    25.10.2009 21:31:06: ---------------------------->
    attached is the complete debug.txt and exectbl...
    Thanks in advance
    Attached Files Attached Files

  5. #5
    Newbie
    Join Date
    Oct 2005
    Posts
    44
    I don't know why the exectbl didn't attach hopefully this time it will
    Attached Files Attached Files

  6. #6
    Newbie
    Join Date
    Oct 2005
    Posts
    44
    Any ideas guys?

  7. #7
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    This is a really easy fix. The reason its happening is that when you translate a cmd the translated cmd has to be BELOW the orig cmd calling the new one. You can either move your "DTROFF" line below the "ONxxx" events or you can change your "DRTXX" cmds to this:
    "ONSUSPEND","||DTROFF"

    By putting an empty cmd before it, forces RR to start back at the top when it tries to translate the cmd and b/c its starting at the top, it will find the new cmd....
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  8. #8
    Newbie
    Join Date
    Oct 2005
    Posts
    44
    I'm going to try this when i get in the car, but that makes perfect sense. A little bit unintuitive but it makes sense.

    I'll report back.

  9. #9
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    Should work, is something that new skinners always run into and either figure it out by themselves or they search/ask.

    I have now also added extra notes to the main rr exectbl.ini file so that others don't have same hard time trying to figure out why their cmds are not working.
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  10. #10
    Newbie
    Join Date
    Oct 2005
    Posts
    44
    It works!... Kind of :/ The onsuspend command (dtroff) works just fine, but on resume it will not run dtron. I'm kind of confused.

Page 1 of 2 12 LastLast

Similar Threads

  1. RR doesnt always see my HU commands
    By uhohrobbo in forum Road Runner
    Replies: 9
    Last Post: 06-09-2009, 07:37 AM
  2. pause with voice commands
    By vicky_obee in forum Road Runner
    Replies: 3
    Last Post: 05-04-2009, 09:06 PM
  3. Help to get the Radioshark plugin working
    By grahamjuk in forum RR Plugins
    Replies: 4
    Last Post: 10-01-2006, 03:21 PM
  4. Replies: 5
    Last Post: 06-20-2006, 01:20 PM
  5. Replies: 4
    Last Post: 05-01-2006, 12:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •