This is a cache of https://www.96boards.org/documentation/consumer/dragonboard/dragonboard845c/guides/button-events.md.html. It is a snapshot of the page at 2024-11-16T01:35:08.380+0000.
Button Events Guide for <strong>dragonboard</strong> 845c - 96Boards

Button Events

This guide will show how to get interrupt events from the on-board Buttons

Key Map table | Key | Device Node | |:——:|:—————–:| | VOL + | /dev/input/event2 | | VOL - | /dev/input/event0 | | F_DL | /dev/input/event2 | | ON/OFF | /dev/input/event0 |

Get Inturrupt Event

hexdump /dev/input/event0

Press the “key -“ button. The terminal displays the following information:

hexdump /dev/input/event0

 0000000 6a1d 5c2f 0000 0000 c499 000d 0000 0000
 0000010 0001 0072 0001 0000 6a1d 5c2f 0000 0000
 0000020 c499 000d 0000 0000 0000 0000 0000 0000