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
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
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
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!
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.
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!
Gudy, the program works great. I would appreciate it if you could post the source code for it.
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.Originally Posted by spiffywilco
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.....
This only works with laptops.
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
Bookmarks