{"id":6141,"date":"2020-10-29T08:27:23","date_gmt":"2020-10-29T06:27:23","guid":{"rendered":"http:\/\/www.kameli.net\/marq\/?p=6141"},"modified":"2020-10-29T08:28:01","modified_gmt":"2020-10-29T06:28:01","slug":"revisiting-the-compositor-script","status":"publish","type":"post","link":"http:\/\/www.kameli.net\/marq\/?p=6141","title":{"rendered":"Revisiting the compositor script"},"content":{"rendered":"\n<p>After some recent updates it seems my <a href=\"http:\/\/www.kameli.net\/marq\/?p=5915\">old compositor toggle script<\/a> may not work on all setups \u2013 for example two of mine. Marco doesn&#8217;t react to the compositor setting change or even the graphical Window Settings preference. Need to do things a bit more complicated way then:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/sh\n\ncase $1 in\non)\n\tgsettings set org.mate.Marco.general compositing-manager true\n\tgsettings set com.linuxmint.desktop mate-window-manager marco-composite\n\tmarco --replace &amp;\n\tnvidia-settings --assign CurrentMetaMode=\"nvidia-auto-select +0+0 { ForceCompositionPipeline=On }\"\n\t;;\noff)\n\tgsettings set org.mate.Marco.general compositing-manager false\n\tgsettings set com.linuxmint.desktop mate-window-manager marco\n\tmarco --replace &amp;\n\tnvidia-settings --assign CurrentMetaMode=\"nvidia-auto-select +0+0 { ForceCompositionPipeline=Off }\"\n\t;;\nesac<\/code><\/pre>\n\n\n\n<p>Again, call it something like <em>compositor.sh<\/em>, copy it to <em>\/usr\/local\/bin<\/em> and <em>chmod a+x compositor.sh<\/em> as root. The parameters <em>on<\/em> and <em>off<\/em> will toggle the compositing.<\/p>\n\n\n\n<p>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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After some recent updates it seems my old compositor toggle script may not work on all setups \u2013 for example two of mine. Marco doesn&#8217;t react to the compositor setting change or even the graphical Window Settings preference. Need to do things a bit more complicated way then: Again, call it something like compositor.sh, copy [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,24],"tags":[],"class_list":["post-6141","post","type-post","status-publish","format-standard","hentry","category-linux","category-softat"],"_links":{"self":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts\/6141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6141"}],"version-history":[{"count":1,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts\/6141\/revisions"}],"predecessor-version":[{"id":6142,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts\/6141\/revisions\/6142"}],"wp:attachment":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6141"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}