Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
imstupidwithlinux opened this issue Feb 7, 2023 · 4 comments
Open

Comments

@imstupidwithlinux
Copy link

imstupidwithlinux commented Feb 7, 2023

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 imstupidwithlinux changed the title System.write(SYSTEM_WAKE_UP); applies to every button press System.write(SYSTEM_WAKE_UP); applies to every buttonpress Feb 7, 2023
@imstupidwithlinux
Copy link
Author

imstupidwithlinux commented Feb 8, 2023

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
Copy link
Owner

NicoHood commented Feb 9, 2023

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

@imstupidwithlinux
Copy link
Author

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

@NicoHood
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants