Query 750s Button Status

Hello! I’m writing a few scripts that will be running on on my 750s router, and I’d like them to be able to determine the position of the 750s’ button (on/off). I’ve been digging through the API documentation (https://dev.gl-inet.com/router-api/) and I don’t see an call that will provide the position/status. Does anyone know whether there’s perhaps an undocumented API or a system command I can execute to get the button’s position/status?


They’re generally key-press events that you can capture with hotplug scripts. If the GPIOs haven’t been captured by the driver, you can read the lines with the deprecated sysfs approach, or with the current user-space tools from gpiod-tools

There may also be ubus calls for this.