Page 2 of 6 FirstFirst 123456 LastLast
Results 11 to 20 of 53

Thread: Run programs on hibernate/suspend and resume!

  1. #11
    Raw Wave justintime's Avatar
    Join Date
    Apr 2005
    Posts
    2,705
    Thanks evandude. Works for me, except for the issue you mentioend above. Please post new version when possible. I have not been able to find ANY util that does this except yours. And I looked for hours!
    2002 Honda CR-V
    Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
    Spent so far: $1105.90


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

  2. #12
    FLAC evandude's Avatar
    Join Date
    Mar 2005
    Location
    Maine
    Posts
    937
    on friday he said he was about a half hour's work away from finishing a much better version. it includes minimizing to the system tray, fixing the little multiple standby glitch, and a more proper INI file which (I think) deals with spaces in filenames. may be other features, I don't know yet. so tomorrow I'll see if he's got anything more for everyone!

    it really is amazing though... I am OK with C++, and I played with a little tutorial on windows API programming and from what he said, if I'd spent maybe a day or two finishing that tutorial, and did some quick browsing of the microsoft MSDN, I'd probably know enough to make this program myself. I was pretty surprised to realize that something like this (which previously seemed to be WAAAAY over my head, I assumed I'd need a couple more semesters of college computer science courses before I could even touch it) is really not that bad, if only I had a spare weekend to sit down and learn this stuff so I'm hoping I can find time for that... someday... would be nice to be able to whip up a cool program like this one in just a couple of hours, instead of trying to find someone to do it for me... I think if some more people did that, we'd have all sorts of cool little apps like this one.
    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

  3. #13
    FLAC evandude's Avatar
    Join Date
    Mar 2005
    Location
    Maine
    Posts
    937
    http://www.rpi.edu/~desimn/suspendtrigger/index.html

    his own page, with some description of the program and the download link for the newest version. enjoy!
    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

  4. #14
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    7,785
    Blog Entries
    32
    ok now here's my golden question. How do i use this thing to disable/enable my pharos usb GPS. Devcon.exe doesnt appear to work as windows says it requires a restart to disable the device.

  5. #15
    FLAC evandude's Avatar
    Join Date
    Mar 2005
    Location
    Maine
    Posts
    937
    someone else will have to help you with that one... in my case i'm planning to enable/disable the GPS through the GPS software itself, with some form of macro, since it can be done with a simple keystroke. otherwise, I have no idea, never tried it.
    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

  6. #16
    Raw Wave justintime's Avatar
    Join Date
    Apr 2005
    Posts
    2,705
    I think the problem is that you need to disable it before hibernation. Then, when waking up from hibernation you enable it.

    This is what I am doing with Devcon with my Riaklaine 6010. Still testing the results though, not 100% this is going to work, but certainy closer!

    Quote Originally Posted by Sonicxtacy02
    ok now here's my golden question. How do i use this thing to disable/enable my pharos usb GPS. Devcon.exe doesnt appear to work as windows says it requires a restart to disable the device.
    2002 Honda CR-V
    Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
    Spent so far: $1105.90


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

  7. #17
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    7,785
    Blog Entries
    32
    well thats the problem. I dunno if its all usb gps or what .. but windows says it must be restarted in order to disable the device.

  8. #18
    FLAC evandude's Avatar
    Join Date
    Mar 2005
    Location
    Maine
    Posts
    937
    Hey, just an update for anyone interested, he has updated the software a bit

    http://www.rpi.edu/~desimn/suspendtrigger/index.html

    changelog:
    1.5 - Minor Bug fixes, fixed bug limiting input of program path, added option to have program start minimized to the tray.

    I just finally got my carPC running again, so I hope to be able to try out this software soon myself

    On a sidenote, we're trying to figure out any possible way to stop a shutdown/hibernate/suspend, to get around the 20 second limit.
    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

  9. #19
    What can I say? I like serial. Curiosity's Avatar
    Join Date
    Mar 2004
    Location
    Florence Yall, BFKY
    Posts
    2,684
    Return BROADCAST_QUERY_DENY on a PBT_APMQUERYSUSPEND message, then do the hibernate/suspend yourself when it's time. You may get into a race condition though, if you hibernate and then deny the message sent to your window.
    http://msdn.microsoft.com/library/de...erysuspend.asp

  10. #20
    FLAC evandude's Avatar
    Join Date
    Mar 2005
    Location
    Maine
    Posts
    937
    Thanks for the info. I am not nearly as much of a programmer as either him or you, but I'll ask him about it.

    I recall he said he found a way to send a message back to windows to abort the shutdown, however he said it just caused windows to send back another shutdown message to the program, but with a "force" flag set this time to forcibly kill it. Not sure if this is the same thing you suggested, or something different. As I said, I'm not a programmer
    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 2 of 6 FirstFirst 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
  •