From 5a36478fd6c940ff9be833e3381f74e12e55a50d Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Mon, 30 Sep 2019 01:08:10 +0100 Subject: [PATCH] Add place holder for composition piipeline enablement. --- usr/bin/mate-optimus-applet | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr/bin/mate-optimus-applet b/usr/bin/mate-optimus-applet index 9c7313d..f6817b7 100755 --- a/usr/bin/mate-optimus-applet +++ b/usr/bin/mate-optimus-applet @@ -26,6 +26,10 @@ __VERSION__ = '19.10.4' gettext.install("mate-optimus", "/usr/share/locale") skip_prime_support = False +def force_composition_pipeline(state="Off"): + #nvidia-settings --assign CurrentMetaMode="$(nvidia-settings -q CurrentMetaMode -t|tr '\n' ' '|sed -e 's/.*:: \(.*\)/\1\n/g' -e 's/}/, ForceCompositionPipeline = On}/g')" + pass + def get_active_gpu(): process = subprocess.Popen(['prime-select', 'query'], stdout=PIPE) out, err = process.communicate()