I'm writing a driver for a PCI-Express device, although the "-Express" part
should be irrelevant for this discussion. I started the driver from Walter
Oney's driver wizard, and the power management code is essentially
unchanged from the wizard code. Windows XP SP1a Checked. (I haven't tried
Free; I suppose I should...)
I can load, unload, and restart the driver to my heart's content. On a
system restart, power state goes to D3, driver unloads, everything is
happy. But when I try to do a system shutdown, most of the time it gets
everything shut down, my power state goes to D3, my driver (apparently)
unloads, the kernel debugger disconnects and waits for a reconnect, the
screen goes to blue, and that's it. The power doesn't go off. SOMETIMES a
shutdown works fine, but most of the time, I get this hang. If our device
is not plugged in, it shuts down OK.
Anybody have any wild ideas for me to try? I don't THINK it is a driver
issue; I don't think the debugger would disconnect if my driver were still
running. Any "I saw this once and here's what I did" stories welcome.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc