From 0b529424bfbc3e98f91aaa9c3370b7bae89c5f9b Mon Sep 17 00:00:00 2001 From: Daniel Radtke Date: Wed, 25 Oct 2017 19:42:27 -0500 Subject: Take screenshot without tearing --- mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0010_functions | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'mods') diff --git a/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0010_functions b/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0010_functions index 02febfa3..ff726747 100644 --- a/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0010_functions +++ b/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0010_functions @@ -217,6 +217,18 @@ uistart(){ /etc/init.d/S81clover-mcp start } +uipause(){ + lsof -n | grep /dev/fb0 | awk '{ print $1 }' | while read pid; do + kill -s SIGSTOP $pid + done +} + +uiresume(){ + lsof -n | grep /dev/fb0 | awk '{ print $1 }' | while read pid; do + kill -s SIGCONT $pid + done +} + gameover(){ poweroff } -- cgit v1.2.3