{"id":3240,"date":"2022-07-02T22:27:56","date_gmt":"2022-07-02T19:27:56","guid":{"rendered":"https:\/\/demensdeum.com\/blog\/?p=3240"},"modified":"2024-12-16T22:32:19","modified_gmt":"2024-12-16T19:32:19","slug":"how-to-run-steam-games-on-arch-linux-optimus","status":"publish","type":"post","link":"https:\/\/demensdeum.com\/blog\/ja\/2022\/07\/02\/how-to-run-steam-games-on-arch-linux-optimus\/","title":{"rendered":"&#8230;And Primus for All"},"content":{"rendered":"<p>In this note I will describe the launch of Steam games on the Linux distribution Arch Linux in the configuration of an Intel + Nvidia laptop<\/p>\n<h3>Counter-Strike: Global Offensive<\/h3>\n<p>The only configuration that worked for me is Primus-vk + Vulkan.<\/p>\n<p>Install the required packages:<br \/>\n<code>pacman -S vulkan-intel lib32-vulkan-intel nvidia-utils lib32-nvidia-utils vulkan-icd-loader lib32-vulkan-icd-loader primus_vk<\/code><\/p>\n<p>Next, add launch options for Counter-Strike: Global Offensive:<br \/>\n<code>pvkrun %command% -vulkan -console -fullscreen<\/code><\/p>\n<p>Should work!<\/p>\n<h3>Sid Meier&#8217;s Civilization VI<\/h3>\n<p>Works in conjunction &#8211; Primus + OpenGL + LD_PRELOAD.<\/p>\n<p>Install the Primus package:<br \/>\n<code>pacman -S primus<\/code><\/p>\n<p><code><\/code>Next, add launch options for Sid Meier&#8217;s Civilization VI:<br \/>\n<code>LD_PRELOAD='\/usr\/lib\/libfreetype.so.6:\/usr\/lib\/libbrotlicommon.so.1:\/usr\/lib\/libbrotlidec.so.1' primusrun %command%<\/code><\/p>\n<p>LD_PRELOAD pushes the Freetype compression and font libraries.<\/p>\n<h3>Dota 2<\/h3>\n<p>Works in conjunction &#8211; Primus + OpenGL + removal of locks at startup.<\/p>\n<p>Install the Primus package:<br \/>\n<code>pacman -S primus<\/code><\/p>\n<p>Next, add launch options for Dota 2:<br \/>\n<code>primusrun %command% -gl -console<\/code><\/p>\n<p>If the game doesn&#8217;t start with <strong>fcntl(5) for \/tmp\/source_engine_2808995433.lock failed, <\/strong> then try deleting the \/tmp\/source_engine_2808995433.lock file<br \/>\n<code>rm \/tmp\/source_engine_2808995433.lock<\/code><br \/>\nUsually the lock file is left over from the last game session unless the game was closed naturally.<\/p>\n<h3>How to check?<\/h3>\n<p>The easiest way to check the launch of applications on a discrete Nvidia graphics card is through the nvidia-smi utility:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3245\" src=\"https:\/\/demensdeum.com\/blog\/wp-content\/uploads\/2022\/07\/nvidia-smi.png\" alt=\"\" width=\"1120\" height=\"397\" \/><\/p>\n<p>For games on the Source engine, you can check through the game console using the mat_info command:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-3246\" src=\"https:\/\/demensdeum.com\/blog\/wp-content\/uploads\/2022\/07\/3080.png\" alt=\"\" width=\"545 \" height=\"263\" \/><\/p>\n<h3>References<\/h3>\n<p><a href=\"https:\/\/wiki.archlinux.org\/title\/Steam\/Game-specific_troubleshooting\" target=\"_blank\" rel=\"noopener\">https:\/\/wiki.archlinux.org\/title\/Steam\/Game-specific_troubleshooting<\/a><br \/>\n<a href=\"https:\/\/help.steampowered.com\/en\/faqs\/view\/145A-FE54-F37B-278A\" target=\"_blank\" rel=\"noopener\">https:\/\/help.steampowered.com\/en\/faqs\/view\/145A-FE54-F37B-278A<\/a><br \/>\n<a href=\"https:\/\/bbs.archlinux.org\/viewtopic.php?id=277708\" target=\"_blank\" rel=\"noopener\">https:\/\/bbs.archlinux.org\/viewtopic.php?id=277708<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this note I will describe the launch of Steam games on the Linux distribution Arch Linux in the configuration of an Intel + Nvidia laptop Counter-Strike: Global Offensive The only configuration that worked for me is Primus-vk + Vulkan. Install the required packages: pacman -S vulkan-intel lib32-vulkan-intel nvidia-utils lib32-nvidia-utils vulkan-icd-loader lib32-vulkan-icd-loader primus_vk Next, add<a class=\"more-link\" href=\"https:\/\/demensdeum.com\/blog\/ja\/2022\/07\/02\/how-to-run-steam-games-on-arch-linux-optimus\/\">Continue reading <span class=\"screen-reader-text\">&#8220;&#8230;And Primus for All&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[61,52],"tags":[],"class_list":["post-3240","post","type-post","status-publish","format-standard","hentry","category-techie","category-tutorials","entry"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"ja","enabled_languages":["en","ru","zh","de","fr","ja","pt"],"languages":{"en":{"title":true,"content":true,"excerpt":false},"ru":{"title":true,"content":true,"excerpt":false},"zh":{"title":false,"content":false,"excerpt":false},"de":{"title":false,"content":false,"excerpt":false},"fr":{"title":false,"content":false,"excerpt":false},"ja":{"title":false,"content":false,"excerpt":false},"pt":{"title":false,"content":false,"excerpt":false}}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts\/3240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/comments?post=3240"}],"version-history":[{"count":12,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts\/3240\/revisions"}],"predecessor-version":[{"id":3256,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts\/3240\/revisions\/3256"}],"wp:attachment":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/media?parent=3240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/categories?post=3240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/tags?post=3240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}