Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Auto Hibernate

  1. #1
    Newbie
    Join Date
    Dec 2004
    Posts
    10

    Auto Hibernate

    I don't know if anyone has a need for this, if you, great if not, sorry i wasted your time.

    For my Carputer (actually, just GPS), I use a older laptop running Windows 2000. For some reason, it didn't like to hibernate using the settings in the advanced power settings (I tried everything). Sometimes it would work, other times, it would run until the [laptop] battery was dead.

    So, I wrote this little program that sits in the system tray and all it does is monitor the power cord. When the cord is unplugged, this program picks up on this, and sends the computer into hibernate. Thats all it does, no menus, no forms, and nothing in the taskbar (click on the system tray icon to close it). Their is no delay on this, the second the power is cut, it starts the hibernation mode. I wrote this in C# and can post the source if someone would like it. Since this is in C#, you need the .NET Framework to run it (1.1 or higher I think will work).

    Anyways, hope it helps, and sorry if someone else already has a solution like this, but I couldn't find it!

    Gudy
    Attached Files Attached Files

  2. #2
    Low Bitrate NickFury's Avatar
    Join Date
    Nov 2004
    Location
    Worcester MA
    Posts
    96
    Sweet, just downloaded and tested it on my home laptop, works good! I'm putting in my car laptop later today.

    And nobody else that I know of either made a program like this, I've looked as well

    Thanks again

  3. #3
    Low Bitrate NickFury's Avatar
    Join Date
    Nov 2004
    Location
    Worcester MA
    Posts
    96
    Is there any you could add a delay? That would be very nice. Maybe an option to set the delay time yourself or something? Otherwise pretty cool program!

  4. #4
    FLAC
    Join Date
    May 2005
    Location
    Vienna, VA
    Posts
    1,375
    I'd like a few more options.

    1. Option to use Standby or Hibernate

    2. Delay like NickFury mentioned. Wait 5 seconds. If power comes back within 5 seconds, cancel the action. Otherwise Standby or Hibernate.

    3. Execute an app before going into Hibernate. This will be very useful since a lot of us want to disconnect USB devices and reconnect them upon resuming to fix the hibernation woes.

    4. Execute an app upon resuming for reason mentioned in 3.

  5. #5
    Low Bitrate spiffywilco's Avatar
    Join Date
    Jan 2006
    Location
    On the smoothest of tarmac
    Posts
    62
    I have not tested this, but I am curious how it goes into hibernate that quickly? I unplug my computer and the power is gone, wouldn't be time for it to go into hibernate (usually takes like 10 seconds or so). How is it possible?
    __________________
    Carputer Status: Half-Way There....
    On the list:
    Accele 8" Touchscreen, Viper 5000, Accelevision 6-in/6-Out Video Switcher, Shuttle 51G (donated) P4, 512mb, 320GB, Centrafuse 1.6!

    V.le Raffaello Sanzio... ahh Firenze!

  6. #6
    Newbie allrotorfd's Avatar
    Join Date
    Aug 2005
    Location
    So-Cal
    Posts
    4
    Gudy, the program works great. I would appreciate it if you could post the source code for it.

    Quote Originally Posted by spiffywilco
    I have not tested this, but I am curious how it goes into hibernate that quickly? I unplug my computer and the power is gone, wouldn't be time for it to go into hibernate (usually takes like 10 seconds or so). How is it possible?
    I believe the program was written for people who are running laptops with batteries in their cars. When you cut off the external power source to the laptop it will continue to run on battery power and will drain it completely if it runs long enough, requiring you to power the computer up completely when external power is reapplied. With this program, the laptop will automatically go into hibernate mode when the external power source is cut off, saving your battery power and leaving it ready to be taken out of hibernate mode and quickly restore the previous state.

  7. #7
    Variable Bitrate CARLOS_CET's Avatar
    Join Date
    Aug 2004
    Location
    NH
    Posts
    303
    So does that mean that it can't be used on a regular car computer setup (non laptop)? I use minlogon with minlogon shutdown app. I removed that and tried the auto hibernate but it did nothing. The computer just stayed on. So I got rid of the auto hibernate. Can someone please shed some light on this.....

  8. #8
    FLAC
    Join Date
    May 2005
    Location
    Vienna, VA
    Posts
    1,375
    This only works with laptops.

  9. #9
    Variable Bitrate CARLOS_CET's Avatar
    Join Date
    Aug 2004
    Location
    NH
    Posts
    303
    Thanks.

  10. #10
    Newbie
    Join Date
    Dec 2004
    Posts
    10

    so sorry for the late response

    sorry I haven't been following the thread...I have been...tied up. I don't know if anyone still wants help, but here are a few answers to your questions. Yes, I can add a delay, in fact, I already have the code ready to do so, I just didn't need it. I could also easily add code to execute any program, but you would have to play with the delay to get it to run those programs before it hibernated. I could have it read from a file, but I think it would be easier to use perimeters. If there is enough interest, I will add to it the needed suggestions.

    attached is the source code to it, it is very simple and written in C#. I wrote it in VS 2003 so if you have a different IDE, you will have to import the cs files on your own. If you have questions, let me know, I don't think I will be 'tied up' for a while again.

    Thanks

    Gudy
    Attached Files Attached Files

Page 1 of 3 123 LastLast

Similar Threads

  1. Resume after hibernate scrutinized
    By ldave in forum PowerVoice
    Replies: 6
    Last Post: 02-10-2006, 12:04 AM
  2. hibernate issues being slow
    By toxsickcity in forum General Hardware Discussion
    Replies: 3
    Last Post: 08-15-2005, 01:00 PM
  3. Auto Set Volume After Hibernate
    By djXternal in forum FrodoPlayer
    Replies: 1
    Last Post: 07-30-2005, 03:08 PM
  4. Audio crash after hibernate (USB alerts)
    By Peoples in forum RR Bug Tracker
    Replies: 11
    Last Post: 03-10-2005, 02:29 PM
  5. Auto hibernate on no power.
    By detz in forum General MP3Car Discussion
    Replies: 1
    Last Post: 02-22-2004, 05:45 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
  •