cancel
Showing results for 
Search instead for 
Did you mean: 

i cannot shutdown my laptop when laptop turns off, USB still working

jkim.62
Associate

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?

3 REPLIES 3

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
AvaTar
Lead

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.

Does the USB device properly implement Suspend?

JW