This has driven me to the point of insanity :)
When I wake my computer up and try to dial-up, I get this nice dialog:
Opening port...
Error 813: You have attempted to establish a second broadband connection while a previous broadband connection already established using the same device or port
And then some more bla bla bla. I've searched the net and I'm not the only one having this problem, but there are no solutions!
So, an option of auto-hangup after 30 minutes of idleness while the sleep is after 60 is very acceptable, but a solution that addresses the problem directly would be super.
61 Answer
What we need to do is disconnect the dialup session if the machine goes to sleep. We can accomplish this with the Task Scheduler, responding to a Sleep event.
Set up the task like this:
- Input “Task Scheduler” in search box and start the scheduler
- Click “Create task…”
- Go to Triggers, create a new trigger, select “On an event”
- Select Log to “system” , set “Source” to “Kernel-Power” and Event ID to “42”, ok
- Go to “Actions” and create a new actions, choose "Start a Program"
- In the program script box put
rasdial /disconnect
Back in the General tab, give this a name.
So event 42 is posted to the log when the machine is suspended. This way, when the suspend event is posted it runs rasdial /disconnect which will shutdown any dial up connections.