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 device. Let device enter suspend state do some thing with your wireless hardware wake up device. check the number of irq happens for your wirelese device. If they are different it means your hardware support this go to step 2. if not your hardware does not, you can enable this feature.
2. You need to get the driver of your wireless hardware device(usb hid, specific driver ...). dig in this . usb driver would have a Flag to indicate that irq for this device would wake up device. Only need to set this flag, then done. Regards, Vu Tran Vào Th 3, 16 thg 7, 2019 vào lúc 23:08 Mohammad Saleh Dehghanpour < salehde...@gmail.com> đã viết: > 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 usb in android > stack? > > > I tried several ways in my bootloader (uboot), kernel, etc. But no effect. > Additionally I made an experiment and found out that in the sleep state, my > usb port (which has a dongle in it) has just 1-5 mA. But it should be > higher for the dongle to work! > > > Thanks > > -- > -- > unsubscribe: android-porting+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-porting > > --- > You received this message because you are subscribed to the Google Groups > "android-porting" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to android-porting+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-porting/c0d82a42-d03b-4048-b044-025a64bc19db%40googlegroups.com > <https://groups.google.com/d/msgid/android-porting/c0d82a42-d03b-4048-b044-025a64bc19db%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/android-porting/CADfFnWhb09w9ao67WH8kKNV8%2B1R5OvP_4SZ3%3DHkysFfOuit9Pg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.