Page 1 of 6 123456 LastLast
Results 1 to 10 of 53

Thread: Run programs on hibernate/suspend and resume!

  1. #1
    FLAC evandude's Avatar
    Join Date
    Mar 2005
    Location
    Maine
    Posts
    937

    Run programs on hibernate/suspend and resume!

    Hey, I thought I'd share this with people, since I have never seen a program that does this specifically...

    A coworker of mine didn't have much to do this afternoon so he threw it together for me.

    in suspend.ini you put the filenames (full path for stuff windows doesn't automatically recognize, like notepad) and it runs one program when suspending/hibernating, one when resuming.

    works on XP on our work computers, no promises for anyone else.

    Anyway, the general idea is you can use it for disabling/enabling your GPS if it doesn't like standby, or whatever else you want, so long as you can figure out some way to do it by the command line (perhaps use a macro recorder if it needs to be done via the gui)

    http://www.rpi.edu/~desimn/suspendtrigger/index.html
    But don't take it from me! here's a quote from a real, live newbie:
    Quote Originally Posted by Viscouse
    I am learning buttloads just by searching on this forum. I've learned 2 big things so far: 1-it's been done before, and 2-if it hasn't, there is a way to do it.
    eegeek.net

  2. #2
    FLAC aoLhaTer's Avatar
    Join Date
    Mar 2003
    Location
    Rohnert Park, CA
    Posts
    1,122
    Cool stuff

    Ive never had any problem with my GPS but sometimes USB devices dont work after hibernate

  3. #3
    Raw Wave
    Join Date
    Jun 2004
    Location
    On the beach
    Posts
    2,223
    Thanks evandude, handy for reconnecting my GPRS connection on resume :-)

  4. #4
    See me in my wet t-shirt. stevieg's Avatar
    Join Date
    Aug 2003
    Location
    Warwickshire, UK
    Posts
    1,887
    Thanks, this looks a handy application!
    Ford Focus MP3 : www.stevieg.org/carpc Blog Updated 29 January 2009!
    Car PC Status: Complete - Undergoing Software Redevelopment

  5. #5
    FLAC Chairboy's Avatar
    Join Date
    Jan 2004
    Posts
    1,380
    I've been wanting this for a while! I can use this to start/stop/segment trip logging and more. Very cool!
    Chrysler 300 - Fabricating
    http://hallert.net/

  6. #6
    Raw Wave tj!2k4's Avatar
    Join Date
    Oct 2004
    Posts
    3,294
    nice, i've been wantin this as well =)

  7. #7
    Raw Wave tj!2k4's Avatar
    Join Date
    Oct 2004
    Posts
    3,294
    That program rocks.

    I know you didn't write it, evandude, but would it be possible to get your coworker to make a couple of additions next time he, um, doesn't have much to do?

    - support for multiple applications (so i don't have to run an ugly batch file to issue multiple commands)
    - auto-minimize to SysTray on startup
    - longer command lines
    - the ability to use command lines with spaces in them

    If it's not possible, then fine, this app is helpful enough. If it is possible, then that's even better. =)

    Thanks again for posting this up.

  8. #8
    Raw Wave justintime's Avatar
    Join Date
    Apr 2005
    Posts
    2,695
    Thanks for sharing. So how does this work? You open the little app, and leave it open? or? I only get a small window with two fields, one for notepad and another for command.
    2002 Honda CR-V
    Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
    Spent so far: $1105.90


    Download the NEXUS Skin for Centrafuse
    ...or even Listen to my music

  9. #9
    Para Laura thanatos106's Avatar
    Join Date
    Nov 2004
    Location
    Miami Beach,FL U.S.A
    Posts
    3,497
    Pretty good APP thanks for let us have it

  10. #10
    FLAC evandude's Avatar
    Join Date
    Mar 2005
    Location
    Maine
    Posts
    937
    sorry for no replies, i forgot to subscribe to the thread.

    justintime... yes, it just opens up a simple box with two lines.. one for what to run on standby/hibernate, and one with what to run on resume... you can put whatever you want in those boxes... full path would be required for anything windows doesn't automatically recognize.
    and yes, you just leave it open.

    well as for multiple apps, you can just have it launch a batch script that runs multiple apps and does whatever else you want. ugly, maybe, but it works at least.

    I'll ask him about auto-minimize.

    I would try putting the command line in quotation marks if you use spaces. I haven't tried it, but that's how you usually have to do it in the command prompt sometimes, so it seems like it might work for that as well.

    he said he noticed a problem, that it will run the chosen standby program on standby the first time, but if you do standby again it won't run it. he said the RESUME program always worked fine... anyway, he claims to have taken care of it, i'll try to get a new version.

    He said he doesn't want to spend lots of time on this thing, because he's got other personal programming projects he could be doing, but i bet he'd entertain some small upgrades to it on those days he's bored, so I'll see what I can do ;-)
    But don't take it from me! here's a quote from a real, live newbie:
    Quote Originally Posted by Viscouse
    I am learning buttloads just by searching on this forum. I've learned 2 big things so far: 1-it's been done before, and 2-if it hasn't, there is a way to do it.
    eegeek.net

Page 1 of 6 123456 LastLast

Similar Threads

  1. Replies: 22
    Last Post: 08-06-2006, 04:57 PM
  2. iguidance resume for usb gps receivers
    By kuo in forum PV Bugs
    Replies: 3
    Last Post: 02-14-2005, 01:48 PM
  3. Appsthat don't resume right
    By Cat Monkey in forum General Hardware Discussion
    Replies: 2
    Last Post: 12-01-2004, 06:47 AM
  4. ME to resume mp3 upon shutdown
    By Kamakazie2 in forum Media Engine
    Replies: 6
    Last Post: 11-28-2004, 03:20 PM
  5. Trigger script/command on resume from hibernate?
    By tejesh83 in forum Software & Software Development
    Replies: 9
    Last Post: 10-24-2003, 08:05 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
  •