@MikeyN Although I tried your guide and it works like a charm (
thank you very much!), please read bellow as there is a question I have that I would like to know the answer and there were a couple of issues I faced during the process. Thanks also to
@AppleMacFinder,
@nsgr,
@FGuarini that have contributed to this issue. Other newbies-like-myself (and with no clue of UNIX) users might find the following story useful too. Here is what happened:
My story starts by doing a fresh install of OS X El Capitan. I let my MBP to freeze/grey/distort on the MacOS graphical screen and started
@MikeyN's
guide - i.e.
only the initial procedure without coding the LoginHook and force-iGPU-boot scripts (By the way, thanks
@nsgr for your
#1228 post; yes, it makes sense why we need the nvram boot-args="-v"; this code line is indeed very helpful). My MBP booted like a charm. When I first booted graphically, I opened Terminal and manually loaded the problematic kext with
sudo kextload /System/Library/Extensions-off/AMDRadeonX3000.kext as
@MikeyN writes. However, when I pressed restart, my machine just froze - nothing happened - stayed in this frozen screen for approx. 20minutes (By the way, nvram verbose mode gave me no message at that point, in contrast to what other people have suggested in earlier posts; sorry for not referring/linking to their posts)
Immediately I thought I did something wrong, thus I re-applied the process from the beginning. That is, a fresh install of OS X El Capitan, letting my MBP to freeze/grey/distort on graphical, and re-applying
@MikeyN's guide. My MBP booted like a charm,
but, this time I didn't manually load the problematic kext with
sudo kextload /System/Library/Extensions-off/AMDRadeonX3000.kext and restarted my machine. The machine restarted/rebooted normally!! "Hmm" - I said, and I thought to myself: "...in this new reboot I should re-load the kext manually and then restart to see what will happen." Apropos, Terminal >
sudo kextload /System/Library/Extensions-off/AMDRadeonX3000.kext > Enter > Password > Quit terminal > Restart.
BOOM! Screen froze again.
But, then I read
@MikeyN comment on post
#1230 speaking to
@dijkvanthomas.
"With Sierra I now have *no* issues with shutdown or sleep/waking"
So, I decided to install OS X Sierra. I downloaded Sierra from the App Store; Made a really nice bootable drive (many tutorials online), and I did a fresh install of OS X Sierra. Again, I let my MBP to freeze/grey/distort on the MacOS graphical screen and started
@MikeyN's
guide - i.e.
only the initial procedure without coding the LoginHook and force-iGPU-boot scripts. My MBP booted like a charm. When I first booted graphically, I opened Terminal and manually loaded the problematic kext with
sudo kextload /System/Library/Extensions-off/AMDRadeonX3000.kext as
@MikeyN writes. I restarted my machine; NO FREEZE. I shutdown my machine after re-applying manually the kextload; NO FREEZE. "GREAT" - I exclaimed, and I thought to myself: "So now, lets download the new
Security Update 2017-002 released 6 December 2017, available through the App Store".
The actual story begins now:
BEFORE downloading/installing the update, I restarted my machine, entered single user mode (cmd + s) and moved the problematic kext back to its default location (i.e. Extensions folder) in the way I am describing in my
#1227 post (i.e. no.2 question of my post), the steps of which
@MikeyN has confirmed in his
#1230 reply, and I rebooted. Immediate problem: The machine couldn't reboot graphically, and remain frozen; alas!
I went back into single-user mode and I moved the problematic kext back into the Extensions-off folder. The machine rebooted graphically and normally. And I thought to myself: "If this is so, how on earth am I going to download/install the new security update (i.e.
Security Update 2017-002)? My answer to this was the following:
I opened Terminal and moved the problematic kext in its default location by applying:
sudo mv /System/Library/Extensions-off/AMDRadeonX3000.kext /System/Library/Extensions/
I then downloaded/installed the new Security update and all relevant packages. The machine rebooted automatically and just froze again (expected!). I shut it down, I repeated
@MikeyN's
guide - i.e.
only the initial procedure without coding the LoginHook and force-iGPU-boot scripts, and my MBP booted (graphically) like a charm. The manual kextload is working (no freezing on restart/shutdown), all the updates have been made, and everything works normally.
***Thanks again @MikeyN, @AppleMacFinder, @nsgr, @FGuarini***
Nevertheless
I would really like
not to manually load the problematic kext each time!
I know that for this I need to create
@MikeyN's LoginHook executable script.
However
The fact that the problematic kext has to be moved back to its default location using
sudo in Terminal and
not in single-user mode (cmd+ s)
BEFORE making the update (since it might make the machine to freeze), means, that, the disabling of the LoginHook script
(if applied) in graphical mode is a very important step!
Thus:
Can somebody please write here a way to reverse/disable/delete @MikeyN's LoginHook executable in (graphical) Terminal before downloading/installing any updates? This is a question I have made in my #1227 and #1229 posts and I haven't got a reply yet, or perhaps I got but I haven't managed to read this between the lines.
PS
I also tried the
GRUB solution by
@brainshutdown, and her/his relevant
GitHub instructions. It worked; It really worked.
However, when I tried to enter recovery mode (cmd + r), so as to do a fresh install of my Mac OS, it just kept booting and re-booting and re-booting into the GRUB console (a constant loop). As if, the EFI GRUB change did not allow me (me the newbie user, with no UNIX experience; important to remind this here since experienced users might have an answer on this), to gain access to the original EFI partition of my system so as to format the drive and re-install OS X. Now the question is? "And why did you try this?" The answer to this is: "Just to check whether I could re-apply the GRUB solution again in a fresh install in case needed in the future."
Given the rebooting loop, I decided that the
GRUB solution was a no-go for me.
That said, and again, many thanks to all that contributed to this issue.
However,
special thanks to
@MikeyN for her/his complete guide!
Can someone please reply to my question in bold above?