Score:0

How to suspend/resume emulated HID device?

fj flag

I have an emulated USB keyboard using the HID Gadget Driver that I use to inject input into another computer. I have enabled remote wakeup in the USB configuration descriptor.

Using HID system control, I am able to put the other computer to sleep. However, once the other computer is asleep, I can no longer inject input.

My understanding is that a normal USB device would send a resume signal to wake up the host, but that is usually done at the firmware level.

Is there a way to send a resume signal through the HID gadget driver?

If there is a better place to ask this, please let me know.

ar flag
Which distro and version of Linux or other OS are you using?
PatMahiney avatar
fj flag
@user68186 I'm using Open Embedded 4 Tegra. https://github.com/OE4T/linux-tegra-4.9
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.