Announcement

Collapse
No announcement yet.

Auto Hibernate

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    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

    Comment


    • #3
      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!

      Comment


      • #4
        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.
        iGMon - Integration between iGuidance and Road Runner
        CFX - Skin for Road Runner

        Comment


        • #5
          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!

          Comment


          • #6
            Gudy, the program works great. I would appreciate it if you could post the source code for it.

            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.

            Comment


            • #7
              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.....
              Car PC Progress

              (>>>>>>>>>>>>---) 90%


              "Don't speak about it, be about it"

              Comment


              • #8
                This only works with laptops.
                iGMon - Integration between iGuidance and Road Runner
                CFX - Skin for Road Runner

                Comment


                • #9
                  Thanks.
                  Car PC Progress

                  (>>>>>>>>>>>>---) 90%


                  "Don't speak about it, be about it"

                  Comment


                  • #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

                    Comment


                    • #11
                      yes, options to set delay would be great... for instance if you just popped in a shop for a coke or something... a delay setting for anything up to half an hour would do it I think...

                      cheers for the app
                      www.matt-tech.co.uk In Newcastle upon Tyne and Tyne & Wear
                      PC & Network : Installation, Service, Repair & Support

                      Comment


                      • #12
                        has anyone rewritten this to implement the afore mentioned 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.

                        Comment


                        • #13
                          Updated AutoHibernate

                          Again, sorry for the delay, I need to remember to check this thread more often. attached is a new release of the the auto hibernate. I have included most features you asked for. The program now reads a settings.ini file (although it is not a true ini file). it will execute one program or batch file, you can set a delay, and choose to power off, sleep, or hibernate. All are in the settings with instructions. Let me know of any problems, as i do not have a machine to test it on right now. I have not included a way to execute a file on resume, as I need to play with this on a laptop to see what kind of message is sent to programs. I will do this once I get my laptop back from my wife

                          Thanks

                          Gudy
                          Attached Files

                          Comment


                          • #14
                            I just tested this on Windows Vista and it works also!

                            Comment


                            • #15
                              Hope I'm not off topic, does any one know of an ap. that can resume after power is restored?

                              Such as: when I turn my key off it goes to hibernation, or standby, and when I start the car again it comes out of hibernation.

                              This would make things a lot easier for me, as everything is in my trunk.
                              Thank you all for your time, and killer contributions.



                              Sorry if I'm off topic I had surgery yesterday, and am still quite woozy ..

                              Comment

                              Working...
                              X