From 01ced0b7ce47d279789efb2dc70d1cd009ac56ad Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 9 Oct 2021 22:20:41 +0100 Subject: initial commit --- scripts/revive-chrome-gpu | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/revive-chrome-gpu (limited to 'scripts/revive-chrome-gpu') diff --git a/scripts/revive-chrome-gpu b/scripts/revive-chrome-gpu new file mode 100755 index 0000000..0bf16bc --- /dev/null +++ b/scripts/revive-chrome-gpu @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +if [ "$2" = "suspend" ] || [ "$2" = "hybrid-sleep" ] +then + case "$1" in + pre) + true + ;; + post) + sleep 1 + pkill -f 'brave \-\-type=gpu-process' + ;; + esac +fi -- cgit v1.2.1