The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-14-2006, 10:55 PM   #1
Maximum Bitrate
 
Join Date: Jun 2006
Location: Calgary, Alberta
Posts: 711
COM Software SDC: How to disable the 30 sec shutdown countdown window on shutdown?

Hi.
I am currently using a program which shutsdown the computer when pins 4 and 8 are shorted on the COM port. Here is the link to the program:
http://www.mp3car.com/vbulletin/show...own+controller

This program runs perfect, but there is still a slight annoyance I was hoping to get fixed. Once the ACC power is removed, a relay is triggered, and com ports 4 and 8 are shorted. The program will then initiate a shutdown in 10 seconds. However, once this shutdown is initiated(10 seconds after the ACC is removed), a dialogue windows pops up with a 30 second "Time before shutdown." Therefore, from the time I turn off the engine, my computer will take ~40-50 seconds to shutdown. I am a bit paranoid about windows hanging on shutdown, meaning that if windows were to hang, my battery would be drained (I have my system set up so that the inverter only switches off once the computer has completely powered down). So everytime I turn off my car, I wait untill my computer is completely shutdown.

So I was just wondering if anyone happens to know how to bypass this 30 second shutdown timer? I would much prefer the computer to go straight to the shutdown sequence once the program initiates it, rather than having windows do a countdown first. Here is a site with a picture of the dialoge box(minus the message saying that the RPC service terminated):
http://www.nj2t.net/personal/support/rpc.htm

Does anyone have any ideas?
nobb is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 10-15-2006, 09:07 AM   #2
Maximum Bitrate
 
v8 scimitar's Avatar
 
Join Date: Jan 2005
Location: Scotland
Posts: 733
what is the dialogue that comes up? This is usually cause by a program not shutting down properly and windows gives a message and 30 seconds before it cuts the legs of the program and forces it to shut down. The way to solve this would be to sort the software that is giving the problem or not run it.

Just actually read the thread so what version are you using as there are a few by different people on there. The dialogue will help a lot though if you can post that.
__________________
Visit my site V8 Scimitar

SP13000, 300GB SATA HD, 1GB DDR. Opus 150, K301 screen, Cisco WIFI, AQmax GPS, RoadRunner and FreeDrive, Sony MEX-R5 head unit.
v8 scimitar is offline   Reply With Quote
Old 10-15-2006, 11:36 AM   #3
Maximum Bitrate
 
Join Date: Jun 2006
Location: Calgary, Alberta
Posts: 711
This doesnt really seem like the screen that pops up when a program hangs on shutdown. This window only pops up when shutdown is initiated automatically by the shutdown controller program, and not when I manually shutdown. The dialogue box says:

"This system is shutting down. Please save all work in progress and log off. Any unsaved changes will be lost. This shutdown was initiated by Administrator. Time before shutdown: (timer countdown here)"

I am guessing this is how windows normally would shut itself down if the shutdown is initiated by a program rather than a user.
nobb is offline   Reply With Quote
Old 10-15-2006, 02:24 PM   #4
Maximum Bitrate
 
v8 scimitar's Avatar
 
Join Date: Jan 2005
Location: Scotland
Posts: 733
This doesn't appear with any software I use that shuts the PC down so I would say you have an install program or your shutdown software isn't very good. I cant see anybody else on the thread complaining about it so I can only assume its your install. Take a look through the log files and see if you can see anything wrong. You can change the timing in the regiestry but personally I think you would be better off fixing the underlying problem.
__________________
Visit my site V8 Scimitar

SP13000, 300GB SATA HD, 1GB DDR. Opus 150, K301 screen, Cisco WIFI, AQmax GPS, RoadRunner and FreeDrive, Sony MEX-R5 head unit.
v8 scimitar is offline   Reply With Quote
Old 10-18-2006, 08:33 PM   #5
Variable Bitrate
 
Join Date: Apr 2006
Location: Dallas, Texas
Posts: 229
Can you get a screen shot of the error? You can go into properties of the services and turn off the 30 sec timer for that service if it fails.
Ineffigy is offline   Reply With Quote
Old 10-18-2006, 09:07 PM   #6
Variable Bitrate
 
Join Date: Mar 2005
Posts: 236
open command prompt and take a look at the shutdown.exe parameters, you're looking for -t (secs) ex: shutdown -t 01 will shutdown in 1 sec instead of 30
Injector is offline   Reply With Quote
Old 10-19-2006, 08:10 AM   #7
Super Moderator
 
xBrady's Avatar
 
Join Date: Apr 2004
Location: USA
Posts: 4,576
Like was just said use the -t flag on the shutdown command. If you don't use it Windows will default to waiting 30 seconds. Back when the blaster virus was floating around it would try reseting the machine but since it left the time at 30 seconds you could just go to your command prompt and abort the shutdown.
You may also want to use the -f flag so that your applications won't be warned and it will just force everything to close.
__________________
AMD XP 2600+/512MB RAM/120GB hard drive
Opus 150W/DVD/GPS/7" Lilliput TS/802.11g/Bluetooth
Installed.


-GPSSecure- - GPS Tracking
-AltTabber2.2.2- - Handy touchscreen utility.
xBrady is offline   Reply With Quote
Old 10-19-2006, 06:55 PM   #8
Maximum Bitrate
 
Join Date: Jun 2006
Location: Calgary, Alberta
Posts: 711
I dont really think that any running program or service is having an error. Windows is just initiating a countdown to shutdown after being told by the shutdown controller program to shutdown. Sorry for being a noob, but how exactly do I impliment those shutdown.exe parameters? Is there some way I can edit the shutdown.exe file or something to stop the countdown permanently? On my desktop, when I ran shutdown.exe -t 0, my computer just logged off =/
nobb is offline   Reply With Quote
Old 10-19-2006, 07:32 PM   #9
Variable Bitrate
 
Join Date: Mar 2005
Posts: 236
like i said take a look at the parameters, not to be an *** but, like the saying goes do what you're told when you don't know what you're doing, type shutdown/? in the command promp and it'll show you the parameters.

here is what you want:

shutdown -s -t 01

shutdown -s(shutdown pc) -t(time) 1(one second)
Injector 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 Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
nLite and USB Devices Nobias WinNT Based 2 01-20-2005 10:11 PM
nLite making me nSane: Frodoplayer issue Nobias WinNT Based 3 01-13-2005 12:09 AM


All times are GMT -5. The time now is 09:11 AM.


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