vinaypundith / bettercamp

A super simple script to automate hardware drivers setup for Microsoft Windows on older Apple Macintosh computers
14 stars 3 forks source link

9400M EFI Fix Doesn't Work #2

Open InaliRahl opened 1 year ago

InaliRahl commented 1 year ago

Running the script via Windows 10 I can see that it opens a CMD window and does something about resizing EFI (it goes too fast for me to read it all) but after reboot, it doesn't actually fix anything regarding the drivers for Nvidia 9400M on my MacBookPro5,5.

Any Nvidia driver installed results in crashing Windows, just as it did before attempting bettercamp scripts.

How do I verify the "fix" actually did anything?

Now that Bootcamp and everything is installed on Windows 10 minus the 9400M driver (I went back to Microsoft Basic Display Adapter), how do I successfully install the fixed 9400M driver?

vinaypundith commented 1 year ago

To see if it installed anything (from what you're describing, it did not), go to file manager (after you remove the crashing nVidia driver), go to the C drive and see if you have a folder called "bootloadermount" with an icon of a hard disk shortcut (NOT a regular folder icon). See if it contains a folder called EFI and within it another folder called Boot and then within that two files, bootx64.efi and startup.nsh. If the folder is there but it does not have the right icon, it means that the bootloader partition that was supposed to be created never got created. Can you send something showing what your disk partition structure is like, so I can try to figure out why it failed? (If that is indeed the case).

Also, the way the fix worked was to create a chainloader that runs two EFI commands before starting Windows - and for this to work, the Mac needs to first boot the script (see startup.nsh) before starting Windows (which the script triggers after running itself). Make sure your computer actually does this. Hold the Option key at startup and see if you have an extra EFI Boot labeled option in the boot menu. If it's there, select this to boot from. If it is properly installed, you should see the EFI shell's code fly by, ending with two commands starting with mm before Windows starts to boot.

Sorry for the issue, and thanks for the feedback! I hope this helps.

InaliRahl commented 1 year ago

Wow, thanks so much for the fast reply.

I checked on bootup and in the C: drive. There IS an older looking Windows EFI bootable choice (which works and I saw the script running as you mentioned), and it exists in C:.

Maybe when I stepped away from the machine prior, it never successfully booted to that EFI option mentioned.

Either way, nvidia now seems to work, thanks!

My next issue is trying to figure out why brightness control still doesn't work. I recall during the bootcamp script, it attempted to install 2 drivers in one window, and both failed. Maybe that was it, but I'm not sure how to force just that to reinstall manually.

InaliRahl commented 1 year ago

To add more information, it looks like my MacBook always boots to the normal "EFI" Windows boot option, and I have to hold Option EVERY boot to choose the scripted EFI bootup this script made. This I assume is a BootCamp bug not from this script. This explains why the EFI fix never worked prior.

vinaypundith commented 1 year ago

Yay! Glad to know it worked. Which drivers failed? Do you have a way to find out? Is it the AppleHALDriver stuff, by any chance? That one has to do with replacing a driver that Boot Camp comes with that crashes in Windows 11 (though 10 is fine).

About the brightness - I don't know either. I had the same problem on my MacBookPro5.5. Never did find a fix. It's annoying, yes.

You can set the new EFI Boot option as your machine's default - simply hold the Control (I believe) key pressed while selecting it. (You should see the little arrow under the option turn into a restart symbol).

Thank you!