Skip to main content
jkim.62
Visitor II
February 11, 2019
Question

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

  • February 11, 2019
  • 3 replies
  • 942 views

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?

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
February 11, 2019

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 VenmoUp vote any posts that you find helpful, it shows what's working..
AvaTar
Senior III
February 11, 2019

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.

waclawek.jan
Super User
February 11, 2019

Does the USB device properly implement Suspend?

JW