Skip to content

Commit

Permalink
Add place holder for composition piipeline enablement.
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Sep 30, 2019
1 parent 972bb0d commit 5a36478
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usr/bin/mate-optimus-applet
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5a36478

Please sign in to comment.