linux-on-pixel-c
linux-on-pixel-c copied to clipboard
Physical buttons don't work
I'm pretty sure it is an error caused by libevent, that doesn't recognize the Power, Vol +, Vol - events.
Apparently they work in GNOME (or they were working at some point).
GPIO:
[root@pixel-c ~]# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-255, parent: platform/6000d000.gpio, tegra-gpio:
gpio-12 ( |Lid ) in hi IRQ
gpio-83 ( |PP1800_CAM ) out lo
gpio-100 ( |Volume Up ) in hi IRQ
gpio-169 ( |jdi-enable ) out hi
gpio-170 ( |jdi-reset ) out hi
gpio-171 ( |PP1800_LCDIO ) out hi
gpio-172 ( |PPLCD_VDD ) out hi
gpio-189 ( |Power ) in hi IRQ
gpio-191 ( |Volume Down ) in hi IRQ
gpio-202 ( |Tablet Mode ) in hi IRQ
Evtest output
Testing ... (interrupt to exit)
Event: time 1502312217.717873, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 1
Event: time 1502312217.717873, -------------- SYN_REPORT ------------
Event: time 1502312217.907894, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 0
Event: time 1502312217.907894, -------------- SYN_REPORT ------------
Event: time 1502312219.631962, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1
Event: time 1502312219.631962, -------------- SYN_REPORT ------------
Event: time 1502312219.813930, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 0
Event: time 1502312219.813930, -------------- SYN_REPORT ------------
Event: time 1502312222.179026, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1502312222.179026, -------------- SYN_REPORT ------------
Connection to 192.168.1.80 closed by remote host.
Connection to 192.168.1.80 closed.