Python turns off the monitor instead of hibernating, and turns on the monitor with mouse movement

turn off the monitor via python

I have found the relevant code before

can be turned off, but after closing, a little movement of the mouse will turn on the monitor. I think a small movement of the mouse will not trigger the operation of turning on the monitor after closing. Turn on the monitor only if the mouse moves more than 200 pixels in four directions

Mar.10,2021
Menu