AnsweredAssumed Answered

gpis-keys for power is causing the camera to start

Question asked by Dennis Muhlestein on Jan 15, 2020
Latest reply on Jan 21, 2020 by Dennis Muhlestein

This is w/ an Android 9, 4.14.98 kernel, w/ in imx8mq board.


In my DTS file I added our power key:


gpio-keys {
   compatible = "gpio-keys";
   pinctrl-names = "default";
   pinctrl-0 = <&pinctrl_gpio_keys>;
   status = "okay";

   power {
     label = "Power Button";
     gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
     linux,code = <KEY_POWER>;


When Android is running, I can press the power key and android brings up the power/restart/screenshot menu as expected.  However, it also launches the camera.  Our older Android 8 solution didn't have this issue.  I'm not exactly sure where to look to debug this.  Any ideas?  Expected would be to get the power menu but not have the camera launch.