{"id":277,"date":"2016-10-07T02:37:55","date_gmt":"2016-10-07T07:37:55","guid":{"rendered":"http:\/\/www.oostdyk.com\/randy\/blog\/?p=277"},"modified":"2017-04-16T15:59:40","modified_gmt":"2017-04-16T20:59:40","slug":"step-by-step-instructions-to-remove-integrated-intel-hd-graphics-gpu-kernel-extension-kexts-with-filevault-and-sip-enabled","status":"publish","type":"post","link":"https:\/\/www.oostdyk.com\/randy\/blog\/2016\/10\/07\/step-by-step-instructions-to-remove-integrated-intel-hd-graphics-gpu-kernel-extension-kexts-with-filevault-and-sip-enabled\/","title":{"rendered":"Step by step instructions to remove integrated Intel HD graphics GPU kernel extension kexts with FileVault and SIP enabled"},"content":{"rendered":"<p>I&#8217;ve been working on a 2011 15&#8243; MacBook Pro for a friend, and encountered a unique situation: the Intel integrated graphics are faulty, while the discrete AMD GPU still works fine. (in all my searching, everybody else has encountered the opposite problem, a failure of the discrete GPU, while the integrated Intel HD GPU still works fine)<\/p>\n<p>Safe boot and the macOS install\/recovery work fine, since the accelerated Intel drivers aren&#8217;t loaded. However, an attempt to perform a normal boot hangs, with a kernel debug message in the system log about a &#8220;possible hang in main graphics engine&#8221;.<\/p>\n<p>As a workaround, I moved all of the AppleIntelHDxxxxxx.kext drivers out of \/System\/Library\/Extensions and rebuilt the kernel cache, and I&#8217;m using GFXCardStatus to force the machine onto the discrete GPU upon login. The MBP is now running flawlessly, but I&#8217;m concerned about a future system update reinstalling the kexts that I removed.<\/p>\n<p>Ideally, I&#8217;d like to prevent any system updates from installing the drivers that I removed, or alternatively, a way to automate or script the recovery process.<\/p>\n<p>Meanwhile I&#8217;ll document the steps to repeat the process, in case a future update reinserts the drivers. The process was complicated by FileVault and SIP, making it necessary to boot from a USB installation disk or the recovery partition, mount the FileVault volume with Disk Utility, and then move the kexts out of \/S\/L\/E.<\/p>\n<ul>\n<li>note: &#8220;\u21b5&#8221; symbol means press enter\/return key, and all commands go on one line until the \u21b5 symbol is encountered, despite any line wrapping shown in this blog.<\/li>\n<li>While powering on, press and hold Command-R.<\/li>\n<li>At the language selection screen, click the arrow to continue.<\/li>\n<li>From the menu bar, from the &#8220;Utilities&#8221; drop-down, select &#8220;Terminal&#8221;<\/li>\n<li><code>diskutil coreStorage list<\/code> \u21b5 (press enter\/return)<\/li>\n<li>From the output of the command, find the alphanumeric code representing the logical Volume UUID.<br \/>\nHighlight, right-click, and copy it, then paste it in the following command (instead of the 111-222-333-44-555555)<\/li>\n<li><code>diskutil coreStorage unlockVolume 11111111-2222-3333-4444-555555555555 -stdinpassphrase<\/code> \u21b5 <\/li>\n<li>Enter your password at the prompt, then press \u21b5.<br \/>\nThe output of this command should show &#8220;Logical Volume successfully mounted as&#8230;&#8221; followed by the mount point, which contains the name of the volume, such as &#8220;Macintosh HD&#8221;. Note the name of the volume, and if different from &#8220;Macintosh HD&#8221;, then substitute in the following command.<\/li>\n<li>(On this step, remember to use the BASH tab completion feature to be sure you don&#8217;t make a type!)<br \/>\n<code>cd \/Volumes\/Macintosh\\ HD\/System\/Library\/Extensions<\/code> \u21b5<br \/>\n<code>ls -al AppleIntelHD*<\/code> \u21b5<br \/>\n(should see list of many files)<\/li>\n<li><code>mkdir backup-06Oct16 \u21b5<br \/>\nmv AppleIntelHD* .\/backup-06Oct16\/ \u21b5 <\/code> (use backup-XXXXX from previous command)<br \/>\n<code>cd .. \u21b5<br \/>\nls -al AppleIntel* \u21b5<\/code><br \/>\nThe last command should output &#8220;no such file or directory&#8221;, confirming that the files have been moved into the backup-xxxxxx folder created earlier.<\/li>\n<li>Apple menu, restart, while holding Command-S<\/li>\n<li>enter password at prompt<\/li>\n<li>Once text stops scrolling:<br \/>\n<code>fsck -fy \u21b5<\/code> and wait about 2 minutes for &#8220;xxx appears to be OK&#8221;.<br \/>\n<code>mount -uw \/ \u21b5<\/code><\/li>\n<li>Press Control-D (not command-D). It should now boot successfully!<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been working on a 2011 15&#8243; MacBook Pro for a friend, and encountered a unique situation: the Intel integrated graphics are faulty, while the discrete AMD GPU still works fine. (in all my searching, everybody else has encountered the opposite problem, a failure of the discrete GPU, while the integrated Intel HD GPU still &hellip; <a href=\"https:\/\/www.oostdyk.com\/randy\/blog\/2016\/10\/07\/step-by-step-instructions-to-remove-integrated-intel-hd-graphics-gpu-kernel-extension-kexts-with-filevault-and-sip-enabled\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Step by step instructions to remove integrated Intel HD graphics GPU kernel extension kexts with FileVault and SIP enabled<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-277","post","type-post","status-publish","format-standard","hentry","category-announce"],"_links":{"self":[{"href":"https:\/\/www.oostdyk.com\/randy\/blog\/wp-json\/wp\/v2\/posts\/277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oostdyk.com\/randy\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oostdyk.com\/randy\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oostdyk.com\/randy\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oostdyk.com\/randy\/blog\/wp-json\/wp\/v2\/comments?post=277"}],"version-history":[{"count":8,"href":"https:\/\/www.oostdyk.com\/randy\/blog\/wp-json\/wp\/v2\/posts\/277\/revisions"}],"predecessor-version":[{"id":293,"href":"https:\/\/www.oostdyk.com\/randy\/blog\/wp-json\/wp\/v2\/posts\/277\/revisions\/293"}],"wp:attachment":[{"href":"https:\/\/www.oostdyk.com\/randy\/blog\/wp-json\/wp\/v2\/media?parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oostdyk.com\/randy\/blog\/wp-json\/wp\/v2\/categories?post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oostdyk.com\/randy\/blog\/wp-json\/wp\/v2\/tags?post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}