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-09-20T01:34:59.830+0000.
Button Events Guide <strong>f</strong>or DragonBoard 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