My device has mouclass for upper edge and usbd for lower edge.
Here is a logdump with the following line in it:
144: FxPkgPnp::Dispatch - WDFDEVICE 0x7990EFF8 !devobj 0x8AD68718 IRP_MJ_POWER, 0x00000000(IRP_MN_WAIT_WAKE) IRP 0x8C17EE70 for PowerSystemUnspecified (S-1)
Does this log indicate request into or out of my device stack location?
- USB bus trace does not show SET_FEATURE REMOTE_WAKE sent to device.
- Event tracing of the USB stack did not show wait wake activity.
Who is aborting/failing this request?
Thanks,
Shows into the driver. Are you marking yourself as a filter, or at least turning off power policy ownership? Why are you writing your own mouse port instead of leveraging usb hid?
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Thursday, June 24, 2010 11:48 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Usb mouse driver and Wait Wake - Revisit
My device has mouclass for upper edge and usbd for lower edge.
Here is a logdump with the following line in it:
144: FxPkgPnp::Dispatch - WDFDEVICE 0x7990EFF8 !devobj 0x8AD68718 IRP_MJ_POWER, 0x00000000(IRP_MN_WAIT_WAKE) IRP 0x8C17EE70 for PowerSystemUnspecified (S-1)
Does this log indicate request into or out of my device stack location?
- USB bus trace does not show SET_FEATURE REMOTE_WAKE sent to device.
- Event tracing of the USB stack did not show wait wake activity.
Who is aborting/failing this request?
Thanks,
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
I call WdfFdoInitSetFilter(DeviceInit);
I use hid stack for many other products. This hardware for many historical reasons stays in the mouse stack. So I need to learn what holds this request back.
thanks,
If you want to see when the WW irp is completed, register a WDM preprocess routine for IRP_MJ_POWER/IRP_MN_WAIT_WAKE and when it gets called, set a completion routine, dispatch it back to KMDF and see what is happening.
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Thursday, June 24, 2010 12:16 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Usb mouse driver and Wait Wake - Revisit
I call WdfFdoInitSetFilter(DeviceInit);
I use hid stack for many other products. This hardware for many historical reasons stays in the mouse stack. So I need to learn what holds this request back.
thanks,
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
I registered a WDM preprocess routine for IRP_MJ_POWER/IRP_MN_WAIT_WAKE, and set a
completion routine.
On entry to sleep I get
WaitWakeIrpCompletionRoutine Request failed STATUS_POWER_STATE_INVALID.
What do I chase now?
thanks,
On win7 I would use netmon and start creating trace logs of the core stack (the usb team blog has instructions on how to do this) and see what happens
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Tuesday, June 29, 2010 12:14 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Usb mouse driver and Wait Wake - Revisit
I registered a WDM preprocess routine for IRP_MJ_POWER/IRP_MN_WAIT_WAKE, and set a completion routine.
On entry to sleep I get
WaitWakeIrpCompletionRoutine Request failed STATUS_POWER_STATE_INVALID.
What do I chase now?
thanks,
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer