2019-02-11 05:54 AM
hello, i've made custom hid.
it works everything ok.
but when i turns off laptop, usb still communicate to laptop.
then laptop cannot into powerdown mode.
cpu fan still working
i think i didn't make stm32 to receive power down signal or suspend signal from laptop.
how can i fix it?
2019-02-11 06:05 AM
You'd need to review the operating system and drivers involved, and the expectations there for power states and management. And on the USB side the expectations of the driver and responses/descriptors to implement power management. ST's example code is for demonstration purposes, you're likely to need to get much more involved in the code development for a commercial grade solution.
2019-02-11 06:38 AM
You might need to review the laptop's BIOS settings. Perhaps disable some "Wakeup on *" settings.
As mentioned, ST's example implementation is not commercial grade, and cannot expected to be.
2019-02-11 07:37 AM
Does the USB device properly implement Suspend?
JW