{"id":4581,"date":"2020-10-11T13:39:24","date_gmt":"2020-10-11T09:39:24","guid":{"rendered":"https:\/\/nayarweb.com\/blog\/?p=4581"},"modified":"2020-10-11T13:39:24","modified_gmt":"2020-10-11T09:39:24","slug":"enabling-nvidia-hybrid-graphics-on-linux","status":"publish","type":"post","link":"https:\/\/nayarweb.com\/blog\/2020\/enabling-nvidia-hybrid-graphics-on-linux\/","title":{"rendered":"Enabling Nvidia Hybrid Graphics on Linux"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4582\" src=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2020\/10\/Screenshot_20201011_123340.png\" alt=\"\" width=\"729\" height=\"267\" \/><\/p>\n<p>I was going to activate my NVIDIA 940MX to play some Tomb Raider when I saw that nvidia-settings has a new option: on-demand.<\/p>\n<p>Activating the option allows you to run only selected applications on the discrete GPU. How to activate that on Steam?<\/p>\n<p>Let&#8217;s take an example of Tomb Raider:<\/p>\n<p><strong>Step 1: Open steam and go to Library<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4583\" src=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2020\/10\/Screenshot_20201011_133506.png\" alt=\"\" width=\"595\" height=\"421\" \/><\/p>\n<p><strong>Step 2: Go on game settings:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4584\" src=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2020\/10\/Screenshot_20201011_133547.png\" alt=\"\" width=\"317\" height=\"252\" \/><\/p>\n<p><strong>Step 3: Set launch option as follows:<\/strong><\/p>\n<blockquote><p>__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia %command%<\/p><\/blockquote>\n<p>And voila! Next time you open the game, it&#8217;ll run on your discrete GPU. You can check it with nvidia-smi<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4585\" src=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2020\/10\/Screenshot_20201011_133822.png\" alt=\"\" width=\"647\" height=\"411\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was going to activate my NVIDIA 940MX to play some Tomb Raider when I saw that nvidia-settings has a new option: on-demand. Activating the option allows you to run only selected applications on the discrete GPU. How to activate that on Steam? Let&#8217;s take an example of Tomb Raider: Step 1: Open steam and &hellip; <a href=\"https:\/\/nayarweb.com\/blog\/2020\/enabling-nvidia-hybrid-graphics-on-linux\/\" class=\"continue-reading\">Continue reading <span class=\"screen-reader-text\">Enabling Nvidia Hybrid Graphics on Linux<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[210],"tags":[],"class_list":["post-4581","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/4581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/comments?post=4581"}],"version-history":[{"count":1,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/4581\/revisions"}],"predecessor-version":[{"id":4586,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/4581\/revisions\/4586"}],"wp:attachment":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/media?parent=4581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/categories?post=4581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/tags?post=4581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}