I don't know if this will help you, but I recently wrote a systemd daemon that monitors the hall effect sensor on the lid of the Argon40 One Up laptop. It uses gpiod to monitor the input for the sensor which I imagine is similar to your gpio switch.
https://github.com/AndrewFromMelbourne/ ... LidMonitor
https://github.com/AndrewFromMelbourne/ ... LidMonitor
Statistics: Posted by AndyD — Fri Feb 13, 2026 11:44 pm