Hi I have tried to monitor the button via evtest, but nothing is detected Can you provide guidance on how modify dts for making this switch generating a key_power event? Bye
Il giorno domenica 23 aprile 2017 06:56:01 UTC+2, Icenowy Zheng ha scritto: > > > > 于 2017年4月22日 GMT+08:00 下午8:34:36, Menion <[email protected] <javascript:>> > 写到: > >That's wrong. I am currently running a Bananapi (A20) with power and > >reset buttons perfectly working and sending acpi events. Also H3 works > >(Orange pi pc 1) > > Banana Pi has PMIC, but Orange Pi PC2 doesn't. > > In the default mainline kernel, the power key on OPi PC2 is not mapped to > the KEY_POWER, but a BTN_x code. > > You may want to alter the device tree for this (The key is a > GPIO-connected one, and used the gpio-keys dt binding) > > -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
