user34015: I have an Arduino Pro Micro mimicking as a HID, connected to a PC.
The PC BIOS is configured to wake from keyboard events - it is switched on by hitting a key on the regular keyboard. This is a wanted feature and should stay.
Unfortunately, it also wakes when the Arduino sends HID events, which is understandable and pretty obvious, but to be avoided.
Is there something in the USB protocoll, or even in the Arduino HID libraries, that lets me tell the chip to either not wake up the host (unlikely, I guess); or so that I can detect when the PC has shut down, so I can tell the Arduino to go sleeping as well until the PC wakes up again?
EDIT: I am using the "HID-project" USB library (HID 2.4.3) from https://github.com/NicoHood/HID.

user13327: Check your BIOS for an option to wake up on a particular key combination, rather than "any key".
Another option is to configure a particular USB port to be powered down when the computer is asleep (or discover which ports are powered down if no such option is available). If that doesn't help, you can try to put a USB hub between the Arduino and the PC: many hubs don't cope with sleep modes very well, so there's a chance they won't re-transmit anything your Arduino is sending unless the PC wakes up. If your computer has USB3, you can try a USB3 hub, which has an even higher chance of exhibiting this behavior since BIOS often lacks USB3 hub support.

user38082: Assuming you are using windows, on the device manager you can access each device's properties (power management tab), where you can allow or not each device to wake your system up.

34015: <p>I have an Arduino Pro Micro mimicking as a HID, connected to a PC.</p>

<p>The PC BIOS is configured to wake from keyboard events - it is switched on by hitting a key on the regular keyboard. This is a wanted feature and should stay.</p>

<p>Unfortunately, it also wakes when the Arduino sends HID events, which is understandable and pretty obvious, but to be avoided.</p>

<p>Is there something in the USB protocoll, or even in the Arduino HID libraries, that lets me tell the chip to either not wake up the host (unlikely, I guess); or so that I can detect when the PC has shut down, so I can tell the Arduino to go sleeping as well until the PC wakes up again?</p>

<p>EDIT: I am using the "HID-project" USB library (HID 2.4.3) from <a href="https://github.com/NicoHood/HID" rel="nofollow noreferrer">https://github.com/NicoHood/HID</a>.</p>
 13327: <p>Check your BIOS for an option to wake up on a particular key combination, rather than "any key".</p>

<p>Another option is to configure a particular USB port to be powered down when the computer is asleep (or discover which ports are powered down if no such option is available). If that doesn't help, you can try to put a USB hub between the Arduino and the PC: many hubs don't cope with sleep modes very well, so there's a chance they won't re-transmit anything your Arduino is sending unless the PC wakes up. If your computer has USB3, you can try a USB3 hub, which has an even higher chance of exhibiting this behavior since BIOS often lacks USB3 hub support.</p>
 38082: <p>Assuming you are using windows, on the device manager you can access each device's properties (power management tab), where you can allow or not each device to wake your system up.</p>
