NicoHood / HID

Bring enhanced HID functions to your Arduino!
http://www.nicohood.de
MIT License
2.38k stars 408 forks source link

System.write(SYSTEM_WAKE_UP); applies to every buttonpress #404

Open imstupidwithlinux opened 1 year ago

imstupidwithlinux commented 1 year ago

i have 6 buttons connected to my pro micro and on button 6 i have placed this to be able to turn on my pc.

System.write(SYSTEM_WAKE_UP);

after a few days of using it like that i noticed that im able to press any of the 6 buttons and my pc will boot when fully shut down. is this a me problem or a bios settings problem or a HID project problem. i will provide the arduino code i use and a picture of my bios settings

code.txt MSI_SnapShot

imstupidwithlinux commented 1 year ago

Update: I can do this with every usb device, mouse, keyboard. So how is it supposed to work then? I read that the pcie option too supports usb but it just won't do anything if usb is disabled. MSI_SnapShot_00

NicoHood commented 1 year ago

I dont understand your question. that call that you described will wakeup the pc.

imstupidwithlinux commented 1 year ago

wake up from what state? S3? S5? im trying to use this instead of pressing the power button on my case

NicoHood commented 1 year ago

You can only wakeup from sleep state, not from a real shutdown. If i remember correct, sleep was S3 and shutdown S5.