diff options
author | Daniel Radtke <daniel.radtke@gmail.com> | 2017-10-26 03:42:27 +0300 |
---|---|---|
committer | Daniel Radtke <daniel.radtke@gmail.com> | 2017-10-26 03:50:04 +0300 |
commit | 0b529424bfbc3e98f91aaa9c3370b7bae89c5f9b (patch) | |
tree | 9d10a3b259c062d13892c4d3fc8dfa65e4a5e99d /mods/mod_hakchi/hakchi/rootfs/etc/preinit.d | |
parent | 3afa3b7b054f7c9c9998ae8bedabbb8da7a58185 (diff) |
Take screenshot without tearing
Diffstat (limited to 'mods/mod_hakchi/hakchi/rootfs/etc/preinit.d')
-rw-r--r-- | mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/b0010_functions | 12 |
1 files changed, 12 insertions, 0 deletions
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 } |