Revisiting the compositor script

October 29th, 2020

After some recent updates it seems my old compositor toggle script may not work on all setups – for example two of mine. Marco doesn’t react to the compositor setting change or even the graphical Window Settings preference. Need to do things a bit more complicated way then:


case $1 in
	gsettings set org.mate.Marco.general compositing-manager true
	gsettings set com.linuxmint.desktop mate-window-manager marco-composite
	marco --replace &
	nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceCompositionPipeline=On }"
	gsettings set org.mate.Marco.general compositing-manager false
	gsettings set com.linuxmint.desktop mate-window-manager marco
	marco --replace &
	nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceCompositionPipeline=Off }"

Again, call it something like, copy it to /usr/local/bin and chmod a+x as root. The parameters on and off will toggle the compositing.

As a sidenote, the compositor started getting stuck in several situations on my main machine: turning the screen off and on would make the GUI get stuck, and likewise for display sleep. Updating to a newer driver version (455.23.04) seems to have remedied the situation.

Filed under: linux,softat

Kommentin kirjoitus

You must be logged in to post a comment.

RSS feed for comments on this post.

Kommenttien virta