{"id":518065,"date":"2022-11-29T21:49:48","date_gmt":"2022-11-29T18:49:48","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/linux-on-apple-silicon-macs-is-now-good-enough-for-gaming\/"},"modified":"2022-11-29T21:49:48","modified_gmt":"2022-11-29T18:49:48","slug":"linux-on-apple-silicon-macs-is-now-good-enough-for-gaming","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/linux-on-apple-silicon-macs-is-now-good-enough-for-gaming\/","title":{"rendered":"#Linux on Apple Silicon Macs Is Now Good Enough for Gaming"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a3e777215fb2\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a3e777215fb2\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/linux-on-apple-silicon-macs-is-now-good-enough-for-gaming\/#%E2%80%9CLinux_on_Apple_Silicon_Macs_Is_Now_Good_Enough_for_Gaming%E2%80%9D\" >&#8220;Linux on Apple Silicon Macs Is Now Good Enough for Gaming&#8221;<\/a><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"%E2%80%9CLinux_on_Apple_Silicon_Macs_Is_Now_Good_Enough_for_Gaming%E2%80%9D\"><\/span>&#8220;Linux on Apple Silicon Macs Is Now Good Enough for Gaming&#8221;<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<div>\n<figure style=\"width: 1200px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage size-full wp-image-824139\" data-pagespeed-no-defer=\"\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/08\/2022-M2-Apple-MacBook-Airs-display-vs-2021-MacBook-Pro.jpg?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"2022 M2 Apple MacBook Air's display vs 2021 MacBook Pro\" width=\"1200\" height=\"675\"\/><figcaption class=\"wp-caption-text\"><span class=\"type:primaryImage imagecredit\">Justin Duino \/ How-To Geek<\/span><\/figcaption><\/figure>\n<p>Even though the M1 and M2 chips in modern Macs are based on ARM processor designs, they aren\u2019t like any other ARM designs. That has made porting Linux to new Macs a difficult challenge, but there has been some impressive progress recently.<\/p>\n<p>Much of the work around porting desktop Linux to <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">App<\/a>le Silicon (M1 &amp; M2) Mac computers has been under the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/asahilinux.org\/\">Asahi Linux<\/a> project, which already offers a desktop distribution that can boot natively on many models. Even though Linux has supported ARM chips for years, largely due to Google\u2019s use of Linux for the Android kernel and devices like the Raspberry Pi, making everything work on Apple Silicon has been a challenge.<\/p>\n<p>The core operating system and desktop experience has been working on Asahi Linux for a while now, so some developers have moved onto proper graphics support. <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/rosenzweig.io\/\">Alyssa Rosenzweig<\/a> helped reverse engineer the GPU in the M1 chip to create a user space driver, based on documentation work by\u00a0<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/mastodon.social\/@dougall\">Dougall Johnson<\/a>. However, a kernel-level driver was still missing \u2014 a task taken up by VTuber <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.youtube.com\/AsahiLina\">Asahi Linya<\/a>.<\/p>\n<p>Asahi Lina explained in a blog post, \u201cjust like other parts of the M1 chip, the GPU has a coprocessor called an \u201cASC\u201d that runs Apple firmware and manages the GPU. This coprocessor is a full ARM64 CPU running an Apple-proprietary real-time OS called RTKit\u2026 and it is in charge of everything! It handles power management, command scheduling and preemption, fault recovery, and even performance counters, statistics, and things like temperature measurement! In fact, the macOS kernel driver doesn\u2019t communicate with the GPU hardware at all.\u201d<\/p>\n<figure style=\"width: 1821px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-851568 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/11\/m2gpu.jpeg?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"image with Xonotic, a Terminal window, and the KDE desktop\" width=\"1821\" height=\"1138\" data-credittext=\"Asahi Linux\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">The <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/game\/\" data-internallinksmanager029f6b8e52c=\"7\" title=\"Game\" target=\"_blank\" rel=\"noopener\">game<\/a> Xonotic running on Linux, on top of an M2 Mac <span class=\"imagecredit\">Asahi Linux<\/span><\/figcaption><\/figure>\n<p>Through much trial and error,\u00a0Asahi Lina developed an M1 GPU driver for the Linux kernel, written in the Rust programming language. Last month, it became stable enough to run the GNOME desktop environment in the Wayland compositor, and ongoing work on the kernel and user drivers allows some games to work, including the classic shooter <em>Quake<\/em>. The blog post mentions, \u201csince the GPU power management is handled by the firmware, all that just works. I tested Xonotic at 1080p inside a GNOME session, and the estimated battery runtime was over 8 hours!\u201d<\/p>\n<p>It will still be a few weeks (or months) before the new GPU drivers are easily accessible to anyone trying Linux on an M1 or M2 Mac, but work is progressing at an impressive rate \u2014 especially considering Apple hasn\u2019t documented most of its CPU and GPU architecture at all.<\/p>\n<p><small>Source: <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/asahilinux.org\/2022\/11\/tales-of-the-m1-gpu\/\">Asahi Linux<\/a><\/small><\/p>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong>\n<\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/851563\/linux-on-apple-silicon-macs-is-now-good-enough-for-gaming\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;Linux on Apple Silicon Macs Is Now Good Enough for Gaming&#8221; Justin Duino \/ How-To Geek Even though the M1 and M2 chips in modern Macs are based on ARM processor designs, they aren\u2019t like any other ARM designs. That has made porting Linux to new Macs a difficult challenge, but there has been some&#8230;<\/p>\n","protected":false},"author":1,"featured_media":518066,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/08\/2022-M2-Apple-MacBook-Airs-display-vs-2021-MacBook-Pro.jpg?height=200p&trim=2,2,2,2","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-518065","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/518065","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=518065"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/518065\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/518066"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=518065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=518065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=518065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}