Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Support Software > Other Cool Stuff


Reply
 
Share Thread Tools Display Modes
Old 02-23-2006, 12:51 PM   #1
Newbie
 
Join Date: Dec 2004
Posts: 10
mjg7876 is on a distinguished road
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
File Type: zip Auto Hibernate.zip (6.5 KB, 488 views)
mjg7876 is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 02-23-2006, 01:50 PM   #2
Low Bitrate
 
NickFury's Avatar
 
Join Date: Nov 2004
Location: Worcester MA
Posts: 96
NickFury is on a distinguished road
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
NickFury is offline   Reply With Quote
Old 02-24-2006, 11:48 AM   #3
Low Bitrate
 
NickFury's Avatar
 
Join Date: Nov 2004
Location: Worcester MA
Posts: 96
NickFury is on a distinguished road
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!
NickFury is offline   Reply With Quote
Old 02-24-2006, 03:15 PM   #4
FLAC
 
Join Date: May 2005
Location: Vienna, VA
Posts: 1,382
b8bboi is on a distinguished road
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.
b8bboi is offline   Reply With Quote
Old 02-24-2006, 03:30 PM   #5
Low Bitrate
 
spiffywilco's Avatar
 
Join Date: Jan 2006
Location: On the smoothest of tarmac
Posts: 62
spiffywilco is on a distinguished road
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!
spiffywilco is offline   Reply With Quote
Old 02-24-2006, 07:42 PM   #6
Newbie
 
allrotorfd's Avatar
 
Join Date: Aug 2005
Location: So-Cal
Posts: 4
allrotorfd is on a distinguished road
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.
allrotorfd is offline   Reply With Quote
Old 03-03-2006, 08:53 AM   #7
Variable Bitrate
 
CARLOS_CET's Avatar
 
Join Date: Aug 2004
Location: NH
Posts: 296
CARLOS_CET is on a distinguished road
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.....
CARLOS_CET is offline   Reply With Quote
Old 03-03-2006, 10:26 AM   #8
FLAC
 
Join Date: May 2005
Location: Vienna, VA
Posts: 1,382
b8bboi is on a distinguished road
This only works with laptops.
b8bboi is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 03-03-2006, 10:37 AM   #9
Variable Bitrate
 
CARLOS_CET's Avatar
 
Join Date: Aug 2004
Location: NH
Posts: 296
CARLOS_CET is on a distinguished road
Thanks.
CARLOS_CET is offline   Reply With Quote
Old 05-19-2006, 10:21 AM   #10
Newbie
 
Join Date: Dec 2004
Posts: 10
mjg7876 is on a distinguished road
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
File Type: zip AutoHibernate.zip (73.7 KB, 209 views)
mjg7876 is offline   Reply With Quote
Old 07-24-2006, 05:38 AM   #11
Newbie
 
Join Date: May 2006
Location: Newcastle upon Tyne
Posts: 32
KillingTime is on a distinguished road
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
KillingTime is offline   Reply With Quote
Old 08-15-2006, 09:31 PM   #12
Low Bitrate
 
Join Date: Aug 2006
Posts: 60
drPheta is an unknown quantity at this point
has anyone rewritten this to implement the afore mentioned options?

Quote:
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.

drPheta is offline   Reply With Quote
Old 09-06-2006, 12:33 PM   #13
Newbie
 
Join Date: Dec 2004
Posts: 10
mjg7876 is on a distinguished road
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
File Type: zip Auto Hibernate.zip (7.6 KB, 294 views)

Last edited by mjg7876; 09-06-2006 at 12:37 PM.
mjg7876 is offline   Reply With Quote
Old 11-21-2007, 09:39 PM   #14
Variable Bitrate
 
Join Date: Oct 2007
Posts: 377
dmistry is an unknown quantity at this point
I just tested this on Windows Vista and it works also!
dmistry is offline   Reply With Quote
Old 11-05-2008, 01:41 AM   #15
Newbie
 
Join Date: Jan 2005
Posts: 1
Jave is on a distinguished road
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 ..
Jave is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resume after hibernate scrutinized ldave PowerVoice 6 02-10-2006 12:04 AM
hibernate issues being slow toxsickcity General Hardware Discussion 3 08-15-2005 01:00 PM
Auto Set Volume After Hibernate djXternal FrodoPlayer 1 07-30-2005 03:08 PM
Audio crash after hibernate (USB alerts) Peoples RR Bug Tracker 11 03-10-2005 02:29 PM
Auto hibernate on no power. detz General MP3Car Discussion 1 02-22-2004 05:45 PM



All times are GMT -5. The time now is 01:03 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics