Hi,
If I disable Selective Suspend in the device manager (uncheck “allow the computer to turn off this device to save power”), and I restart the machine, it is checked again.
I’ve removed the parts where I disable and re-enable Selective Suspend in the code, so basically it is the same as is in FX2 Sample (there is a SetPowerPolicy( AUTO_SUSPEND) in FX2, and removing it does not solve the issue ).
Is there any change in the registry values specified in the "How to enable USB selective suspend and system wake in the UMDF driver for a USB device " I need to make, or change something in the code itself?
Gadi
Hi Gadi,
We need to look into whether this is an issue with WDF.
SetPowerPolicy function in UMDF fx2 sample doesn’t do anything if you
don’t use regkeys to enable selective suspend.
Praveen
Hi Praveen,
The thing is I do enable Selective Suspend in the registry, and then I disable it manually, as a user, from the device manager properties, and this doesn’t survive a reboot.
So the question is, who has the overriding priority of this data - the registry definitions in the inf, the driver’s code or what the user has changed?
Maybe I need to define somewhere that user’s overrides are of the highest priority (or maybe it is supposed to be like this by default?)
Thanks,
Gadi