HID icon indicating copy to clipboard operation
HID copied to clipboard

System.write(SYSTEM_WAKE_UP); applies to every buttonpress

Open EnteSuesssauer15 opened this issue 2 years ago • 4 comments

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

EnteSuesssauer15 avatar Feb 07 '23 16:02 EnteSuesssauer15

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

EnteSuesssauer15 avatar Feb 08 '23 00:02 EnteSuesssauer15

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

NicoHood avatar Feb 09 '23 18:02 NicoHood

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

EnteSuesssauer15 avatar Feb 09 '23 21:02 EnteSuesssauer15

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

NicoHood avatar Feb 10 '23 07:02 NicoHood