GrapheneOS's auto reboot feature for Linux laptops

TLDR: I patched i3lock to update a file when I unlock my laptop. I wrote a tool monitoring this file. If it is not modified for a specific time, the daemon executes a kill switch command. As my system does not support hibernation, I implemented my own solution using cryptsetup luksSuspend . The source code can be found on Github . &#xA; &#xA; On my laptop I wanted to have two security features:…