[android-porting] USB remote wakeup : Wake up system from suspend via a USB HID device (e.g.wireless keyboard)

2019-07-16 Thread Mohammad Saleh Dehghanpour
Hello I have an AOSP tree compiled on my board. I bought a wireless keyboard and connected it to my board via usb port. I expect when the board is in the suspend state, it will wakeup by pressing a key on keyboard. But it is not so. Anyone has an idea about how to handle remote wakeup for

Re: [android-porting] USB remote wakeup : Wake up system from suspend via a USB HID device (e.g.wireless keyboard)

2019-07-16 Thread Tranphong Vu
Hi Mohammad Saleh Dehghanpour, base on your description, i think you need to enable wake up feature in your usb wireless keyboard. 1. Base on my hardware experience, your usb hardware should support this. But we should confirm this Cat proc/interrupt to get the irq number of your usb wireless devi

Re: [android-porting] USB remote wakeup : Wake up system from suspend via a USB HID device (e.g.wireless keyboard)

2019-07-16 Thread Tranphong Vu
Sorry i miss the example code for this, This is example code in my AOSP linux kernel to enable this feature for a usb keyboard. that uses USB HID driver. *if* (interface ->desc

Re: [android-porting] USB remote wakeup : Wake up system from suspend via a USB HID device (e.g.wireless keyboard)

2019-07-17 Thread Tranphong Vu
Hi Dehqanpour, About 1, I dont sure that interrupt number is increased when it happens while device in suspend state. But i think system should record this. About 2, Normally android would not be wake up from bluetooth mouse. At you see in my code example, this code is need to wake up device from u