I was able to revive my old 2011 MBP a year ago using the GRUB solution, and it has been working fine until I started having battery issues which prompted an SMC and NVRAM reset. When the NVRAM reset failed, I could no longer boot into my Rescue disk, and no mount of effort on my part in trying to restore it worked. Based on the diagnostics I've done via Single User and Single User Recover mode, the boot partition got severely corrupted. Safe Mode and Recovery mode no longer works.
I Booted it Target Disk mode and networked it to my (newer but not really new) 2015 MBP via Thunderbolt. I tried fixing it with Disk Utility, and although the startup disk still mounts, and I can access the files, DU can't fix the darned thing.
Since I have backed everything up, and I didn't really want to spend more time on it just to fail installing OS X (I have downloaded El Capitan), I gave up trying to install OS X and opted to reformat the thing and just install Ubuntu, since I was basically just using it for web browsing and watching movies.
I chose Ubuntu since that's what my school administrator has been using and installing in our old machines. Being that were both kind of newbies when it comes to Ubuntu, or Linux for that matter, we just did a bit of research online, with him a few weeks ahead of me in advance.
I have to state the fact that I don't really like coding even though did do a little programming back then. I do understand a bit, and it's really a bit, and as such I wanted to avoid even a little coding as much as possible.
But, it was inevitable. I've made an Ubuntu boot disk using the latest version (18.04.2 LTS), read up on installing it, and proceeded to do so, fully aware that the AMD GPU is still very much an issue.
After scouring the Ubuntu Forums and other sources, I've managed to test several options in disabling the accursed dedicated Graphics card. There isn't one method that works right away, and each and every one I tested will work partially, or fail right away.
The first time around, I booted the Mac via USB, pressed 'e' as soon as the grub menu comes up, and used the [nomodeset] function, which is added after [quiet splash] kernel entry.
I pressed F10 to continue booting. This gave me a graphical interface, though the screen color is distorted and I have green lines everywhere, and I proceeded to install Ubuntu the easiest way possible, letting the installer decide and not worrying about partitioning the disk. After installing Ubuntu successfuly, I rebooted into the USB drive again, but this time, I deactivated the AMD GPU by editing the grub again, but, instead of adding just [nomodeset] in the kernel line, I added these lines:
Now, these lines looked familiar because the outb commands are used in the grub solution (deactivates the Radeon GPU), while the i915.lvds entry is in the EFI solution (activates the Intel GPU, but I could be wrong as to what this command line does). This is the same change I've made later on.
When GUI comes up, I open the Files app> Other Locations >Computer> Boot> Grub, which gave me access to the grub.cfg file. I then opened a Terminal and typed:
then dragged the grub.cfg file into the open Terminal window.
This changes the permissions of the grub.cfg file to read/write.
I then opened the grub file in text editor, and looked for the [menuentry 'ubuntu'] line. This is the topmost entry in the grub menu of the installed Ubuntu. Underneath this is the same [load_video] entry.
Take note, the file in this case is already 'Read-Only' as I have already tested rebooting to see if it works. To change the permission back to 'Read-Ony' I entered
In the Terminal window and dragged the grub.cfg grub file and got this:
And that's it. My MBP now boots directly into Ubuntu. The screen does turn white (defaault Mac startup), then green (the AMD GPU activating), then black (the AMD GPU turning off). I've actually composed this thread using the same MBP with Ubuntu.
Now, I figured out which solution to use by process of elimination, from the EFI solution and GRUB solution here in MacRumors (to which I've contibuted a few comments), to a solution I found using the [sudo nano] command in Ubuntu Forums, which didn't really work in my case since it's low-level editing and too convoluted for me, aside from the fact that the solution is for dual booting OS X and Ubuntu.
I got inspired somewhat while our school adminstrator and I were talking, and I was searching for said Ubuntu Forums solution because he wanted to look at it. While I was exploring the files looking for the HD Ubuntu install Grub, he was the one who gave me the idea to change the properties while booted into USB (by that time, I've already booted via grub, edited the grub entry, and deactivated the dGPU), since it was the file I was going to edit anyway, and gave the [chmod 777] and [chmod 444] solution.
I checked the active GPU with
Ain't she a thing of Beauty?
I Booted it Target Disk mode and networked it to my (newer but not really new) 2015 MBP via Thunderbolt. I tried fixing it with Disk Utility, and although the startup disk still mounts, and I can access the files, DU can't fix the darned thing.
Since I have backed everything up, and I didn't really want to spend more time on it just to fail installing OS X (I have downloaded El Capitan), I gave up trying to install OS X and opted to reformat the thing and just install Ubuntu, since I was basically just using it for web browsing and watching movies.
I chose Ubuntu since that's what my school administrator has been using and installing in our old machines. Being that were both kind of newbies when it comes to Ubuntu, or Linux for that matter, we just did a bit of research online, with him a few weeks ahead of me in advance.
I have to state the fact that I don't really like coding even though did do a little programming back then. I do understand a bit, and it's really a bit, and as such I wanted to avoid even a little coding as much as possible.
But, it was inevitable. I've made an Ubuntu boot disk using the latest version (18.04.2 LTS), read up on installing it, and proceeded to do so, fully aware that the AMD GPU is still very much an issue.
After scouring the Ubuntu Forums and other sources, I've managed to test several options in disabling the accursed dedicated Graphics card. There isn't one method that works right away, and each and every one I tested will work partially, or fail right away.
The first time around, I booted the Mac via USB, pressed 'e' as soon as the grub menu comes up, and used the [nomodeset] function, which is added after [quiet splash] kernel entry.
Code:
set timeout=5
menuentry "Try Ubuntu without installing" {
set gfxpayload=keep
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash nomodeset ---
initrd /casper/initrd
}
I pressed F10 to continue booting. This gave me a graphical interface, though the screen color is distorted and I have green lines everywhere, and I proceeded to install Ubuntu the easiest way possible, letting the installer decide and not worrying about partitioning the disk. After installing Ubuntu successfuly, I rebooted into the USB drive again, but this time, I deactivated the AMD GPU by editing the grub again, but, instead of adding just [nomodeset] in the kernel line, I added these lines:
Code:
set timeout=5
menuentry "Try Ubuntu without installing" {
set gfxpayload=keep
outb 0x728 1
outb 0x710 2
outb 0x740 2
outb 0x750 0
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash i915.lvds_channel_mode=2 i915.modeset=1 i915.lvds_use_ssc=0 ---
initrd /casper/initrd
}
Now, these lines looked familiar because the outb commands are used in the grub solution (deactivates the Radeon GPU), while the i915.lvds entry is in the EFI solution (activates the Intel GPU, but I could be wrong as to what this command line does). This is the same change I've made later on.
When GUI comes up, I open the Files app> Other Locations >Computer> Boot> Grub, which gave me access to the grub.cfg file. I then opened a Terminal and typed:
Code:
sudo chmod 777
then dragged the grub.cfg file into the open Terminal window.
This changes the permissions of the grub.cfg file to read/write.
I then opened the grub file in text editor, and looked for the [menuentry 'ubuntu'] line. This is the topmost entry in the grub menu of the installed Ubuntu. Underneath this is the same [load_video] entry.
Take note, the file in this case is already 'Read-Only' as I have already tested rebooting to see if it works. To change the permission back to 'Read-Ony' I entered
Code:
sudo chmod 444
In the Terminal window and dragged the grub.cfg grub file and got this:
And that's it. My MBP now boots directly into Ubuntu. The screen does turn white (defaault Mac startup), then green (the AMD GPU activating), then black (the AMD GPU turning off). I've actually composed this thread using the same MBP with Ubuntu.
Now, I figured out which solution to use by process of elimination, from the EFI solution and GRUB solution here in MacRumors (to which I've contibuted a few comments), to a solution I found using the [sudo nano] command in Ubuntu Forums, which didn't really work in my case since it's low-level editing and too convoluted for me, aside from the fact that the solution is for dual booting OS X and Ubuntu.
I got inspired somewhat while our school adminstrator and I were talking, and I was searching for said Ubuntu Forums solution because he wanted to look at it. While I was exploring the files looking for the HD Ubuntu install Grub, he was the one who gave me the idea to change the properties while booted into USB (by that time, I've already booted via grub, edited the grub entry, and deactivated the dGPU), since it was the file I was going to edit anyway, and gave the [chmod 777] and [chmod 444] solution.
I checked the active GPU with
Code:
lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA
Ain't she a thing of Beauty?
Attachments
Last edited: