Contribute
Register

Nvidia drivers - freeze at login screen?

Status
Not open for further replies.
Joined
Jul 17, 2018
Messages
47
Motherboard
Gigabyte Z370P D3
CPU
i7-8700
Graphics
GTX 1060 + GTX 650 Ti
Mac
  1. MacBook Air
I've just built my first hackintosh, following the buyer's guide and installation instructions here. It's an i7-8700 in a Gigabyte Z370P D3, pretending to be an iMac14,2 with High Sierra 10.13.6 (17G65). And it basically works.

I have a graphics problem which I can't find on the list, for a 1060 card.

I can install the Nvidia drivers no problem. I have edited EFI/CLOVER/clover.plist <key>InjectKexts</key> <string>YES</string>. When I restart, I get to the login screen (where, instead of grey background, I now have a blurry high sierra picture) and move the mouse, but as soon as I click my name, it freezes & then puts the cursor top-left & does nothing.

Restarting in safe mode (via -x in clover) gets me back in (although with some weird graphics artefacts). I can then re-install or un-install the Nvidia driver. (In safe mode I can't access the prefpane to uninstall until I run the installer again first.)

I tried adding nvda_drv=1 in clover but nothing changed.

I tried Nvidia Graphics Fixup option in multibeast (Lilu.kext and NvidiaGraphicsFixup.kex) but nothing changed. This was item 4 of https://www.tonymacx86.com/threads/solving-nvidia-driver-install-loading-problems.161256/

I believe that I do not have nvram. In multibeast I selected the Clover bootloader with emulated nvram. After that, the following test works across a reboot:

sudo nvram TestVar=HelloWorld
(reboot)
sudo nvram -p | grep 'TestVar'
(ok!)
sudo nvram -d TestVar

Any clues as to what else I should try?
 
Last edited:
I have edited EFI/CLOVER/clover.plist <key>InjectKexts</key> <string>YES</string>.
Should be Detect not Yes.

I tried adding nvda_drv=1 in clover but nothing changed.
Expected behaviour - nvda_drv=1 is obsolete in Sierra and above :
See https://www.tonymacx86.com/threads/new-method-for-enabling-nvidia-web-drivers-in-clover.202341/

Any clues as to what else I should try?
Attach your config.plist.
 
Awesome, thanks for the quick reply. Sadly I have to wait until back at the office to try.
 
OK I'm back at my machine, and tried changing YES -> Detect as suggested, but sadly nothing changed.

I attach the config.plist file from my latest attempt.

EDIT perhaps clearer as a code block:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>ACPI</key>
    <dict>
        <key>AutoMerge</key>
        <true/>
        <key>DSDT</key>
        <dict>
            <key>#DropOEM_DSM</key>
            <dict>
                <key>ATI</key>
                <true/>
                <key>Firewire</key>
                <true/>
                <key>HDA</key>
                <true/>
                <key>HDMI</key>
                <true/>
                <key>IDE</key>
                <true/>
                <key>IntelGFX</key>
                <true/>
                <key>LAN</key>
                <true/>
                <key>LPC</key>
                <false/>
                <key>NVidia</key>
                <true/>
                <key>SATA</key>
                <true/>
                <key>SmBUS</key>
                <false/>
                <key>USB</key>
                <true/>
                <key>WIFI</key>
                <true/>
            </dict>
            <key>Debug</key>
            <false/>
            <key>Fixes</key>
            <dict>
                <key>AddDTGP</key>
                <false/>
                <key>AddHDMI</key>
                <false/>
                <key>AddIMEI</key>
                <false/>
                <key>AddMCHC</key>
                <false/>
                <key>AddPNLF</key>
                <false/>
                <key>DeleteUnused</key>
                <false/>
                <key>FakeLPC</key>
                <false/>
                <key>FixACST</key>
                <false/>
                <key>FixADP1</key>
                <false/>
                <key>FixAirport</key>
                <false/>
                <key>FixDarwin</key>
                <false/>
                <key>FixDarwin7</key>
                <false/>
                <key>FixDisplay</key>
                <false/>
                <key>FixFirewire</key>
                <false/>
                <key>FixHDA</key>
                <false/>
                <key>FixHPET</key>
                <false/>
                <key>FixHeaders</key>
                <false/>
                <key>FixIDE</key>
                <false/>
                <key>FixIPIC</key>
                <false/>
                <key>FixIntelGfx</key>
                <false/>
                <key>FixLAN</key>
                <false/>
                <key>FixMutex</key>
                <false/>
                <key>FixRTC</key>
                <false/>
                <key>FixRegions</key>
                <false/>
                <key>FixS3D</key>
                <false/>
                <key>FixSATA</key>
                <false/>
                <key>FixSBUS</key>
                <false/>
                <key>FixShutdown</key>
                <false/>
                <key>FixTMR</key>
                <false/>
                <key>FixUSB</key>
                <false/>
                <key>FixWAK</key>
                <false/>
            </dict>
            <key>Name</key>
            <string>DSDT.aml</string>
            <key>ReuseFFFF</key>
            <false/>
        </dict>
        <key>DropTables</key>
        <array>
            <dict>
                <key>Signature</key>
                <string>MATS</string>
            </dict>
        </array>
        <key>HaltEnabler</key>
        <false/>
        <key>SSDT</key>
        <dict>
            <key>DropOem</key>
            <false/>
            <key>Generate</key>
            <dict>
                <key>CStates</key>
                <false/>
                <key>PStates</key>
                <false/>
            </dict>
        </dict>
    </dict>
    <key>Boot</key>
    <dict>
        <key>Arguments</key>
        <string>dart=0</string>
        <key>Debug</key>
        <true/>
        <key>DefaultVolume</key>
        <string>High Sierra</string>
        <key>Legacy</key>
        <string>PBR</string>
        <key>Secure</key>
        <false/>
        <key>Timeout</key>
        <integer>3</integer>
        <key>XMPDetection</key>
        <string>NO</string>
    </dict>
    <key>Devices</key>
    <dict>
        <key>Audio</key>
        <dict>
            <key>Inject</key>
            <string>1</string>
        </dict>
        <key>FakeID</key>
        <dict>
            <key>ATI</key>
            <string>0x0</string>
            <key>IMEI</key>
            <string>0x0</string>
            <key>IntelGFX</key>
            <string>0x0</string>
            <key>LAN</key>
            <string>0x0</string>
            <key>NVidia</key>
            <string>0x0</string>
            <key>SATA</key>
            <string>0x0</string>
            <key>WIFI</key>
            <string>0x0</string>
            <key>XHCI</key>
            <string>0x0</string>
        </dict>
        <key>USB</key>
        <dict>
            <key>FixOwnership</key>
            <true/>
            <key>Inject</key>
            <true/>
        </dict>
        <key>UseIntelHDMI</key>
        <false/>
    </dict>
    <key>DisableDrivers</key>
    <array>
        <string>Nothing</string>
    </array>
    <key>GUI</key>
    <dict>
        <key>Hide</key>
        <array>
            <string>Windows</string>
            <string>BOOTX64.EFI</string>
        </array>
        <key>Language</key>
        <string>en:0</string>
        <key>Mouse</key>
        <dict>
            <key>Enabled</key>
            <true/>
            <key>Speed</key>
            <integer>8</integer>
        </dict>
        <key>Scan</key>
        <dict>
            <key>Entries</key>
            <true/>
            <key>Legacy</key>
            <string>First</string>
            <key>Tool</key>
            <true/>
        </dict>
        <key>ScreenResolution</key>
        <string>1920x1080</string>
        <key>Theme</key>
        <string>tonymacx86</string>
    </dict>
    <key>Graphics</key>
    <dict>
        <key>Inject</key>
        <dict>
            <key>ATI</key>
            <false/>
            <key>Intel</key>
            <true/>
            <key>NVidia</key>
            <false/>
        </dict>
    </dict>
    <key>KernelAndKextPatches</key>
    <dict>
        <key>#FakeCPUID</key>
        <string>0x010676</string>
        <key>AppleIntelCPUPM</key>
        <true/>
        <key>AppleRTC</key>
        <true/>
        <key>KernelCpu</key>
        <false/>
        <key>KernelLapic</key>
        <false/>
        <key>KernelPm</key>
        <true/>
        <key>KextsToPatch</key>
        <array>
            <dict>
                <key>Comment</key>
                <string>External icons patch</string>
                <key>Find</key>
                <data>
                RXh0ZXJuYWw=
                </data>
                <key>Name</key>
                <string>AppleAHCIPort</string>
                <key>Replace</key>
                <data>
                SW50ZXJuYWw=
                </data>
            </dict>
        </array>
    </dict>
    <key>RtVariables</key>
    <dict>
        <key>BooterConfig</key>
        <string>0x28</string>
        <key>CsrActiveConfig</key>
        <string>0x3</string>
    </dict>
    <key>SMBIOS</key>
    <dict>
        <key>BiosVersion</key>
        <string>IM142.88Z.0123.B00.1708211454</string>
        <key>ProductName</key>
        <string>iMac14,2</string>
        <key>SerialNumber</key>
        <string>C02NJOMWFLHH</string>
        <key>Trust</key>
        <false/>
    </dict>
    <key>SystemParameters</key>
    <dict>
        <key>InjectKexts</key>
        <string>Detect</string>
        <key>InjectSystemID</key>
        <true/>
        <key>NvidiaWeb</key>
        <true/>
    </dict>
</dict>
</plist>

(Note aside that I got "Yes" from here: https://www.tonymacx86.com/threads/...s-high-sierra-10-13-6-387-10-10-10-40.255913/ )
 

Attachments

  • config.plist
    5.2 KB · Views: 290
Many thanks for taking a look!

Sadly much the same thing happens. The only visible difference is that now I get a black screen for a second, with some stuff printed out. Of which I took a video, and attach a screenshot of the text. (This is at the login screen, after clicking on my icon; it returns to the same screen after a second.)

I also attach a log file from EFI/CLOVER/misc/debug.log although I don't know if this is of any use. The last few reboots (using this config.plist) are as follows:

11:30:4 (GMT) booting normally, maybe then installed config, certainly I installed Nvidia driver.
11:34:58 (GMT) attempt which freezes, as in video
11:35:32 (GMT) safe mode, to uninstall Nvidia drivers
11:39:45 (GMT) booting normally, to mount EFI
 

Attachments

  • Screen Shot 2018-07-26 at 1.49.33 PM.JPG
    Screen Shot 2018-07-26 at 1.49.33 PM.JPG
    80.6 KB · Views: 290
  • debug.log.txt
    1 MB · Views: 260
In case this is a clue: the above is all with a DVI cable.

I just borrowed a Displayport cable, since both screen & card support this. And it doesn't work at all, completely black screen, not even the bios shows up. WTF?

However, despite this, I can still see what's going on by screen sharing (to my laptop on the same network). And the problem persists: as soon as I click anything on the login screen (with blurry sierra background) then it goes black for a second, and then goes back to the same state.
 
I've just built my first hackintosh, following the buyer's guide and installation instructions here. It's an i7-8700 in a Gigabyte Z370P D3, pretending to be an iMac14,2 with High Sierra 10.13.6 (17G65). And it basically works.

I have a graphics problem which I can't find on the list, for a 1060 card.

I can install the Nvidia drivers no problem. I have edited EFI/CLOVER/clover.plist <key>InjectKexts</key> <string>YES</string>. When I restart, I get to the login screen (where, instead of grey background, I now have a blurry high sierra picture) and move the mouse, but as soon as I click my name, it freezes & then puts the cursor top-left & does nothing.

Restarting in safe mode (via -x in clover) gets me back in (although with some weird graphics artefacts). I can then re-install or un-install the Nvidia driver. (In safe mode I can't access the prefpane to uninstall until I run the installer again first.)

I tried adding nvda_drv=1 in clover but nothing changed.

I tried Nvidia Graphics Fixup option in multibeast (Lilu.kext and NvidiaGraphicsFixup.kex) but nothing changed. This was item 4 of https://www.tonymacx86.com/threads/solving-nvidia-driver-install-loading-problems.161256/

In case this is a clue: the above is all with a DVI cable.
However, despite this, I can still see what's going on by screen sharing (to my laptop on the same network). And the problem persists: as soon as I click anything on the login screen (with blurry sierra background) then it goes black for a second, and then goes back to the same state.

Hi everyone !

A small reply for both of you to say that I'm currently in the exact same situation ! The graphics seem to be working after many reinstalls of the driver, kexts, etc. But now it's impossible to log in ! Infinite loop in login screen as soon as I click somewhere one time or press just one key.
I have a quite similar setup than you.
Gigabyte Z370 Gaming 5
i7 8700
Gigabyte GTX 1060 6G
I'm a new one in Hackintosh making. I've been trying everything for several weeks now, following all topics about drivers and graphic issues. I have choosen "iMac14,2" in System Definitions, and tried with a newer "17,1". I didn't try anyone else (such as "18,3" which I don't think it'll be better). I'm on High Sierra 10.13.6 and the Nvidia driver is matching for this. Cuda is installed too.

Of course, switching by nv_disable=1 make High Sierra work but I don't have my card recognized in this case. At least I can edit things in this mode.

Any help would be really appreciated. Thanks for all your knowledges sharing !
Greetings
 
Last edited:
That sounds exactly like my machine right now -- I can boot fine without Nvidia, but with it, I'm stuck at the login screen.

I succeeded exactly once to get past this, and have fully working graphics for a day, with help from this thread:
https://www.tonymacx86.com/threads/...-build-w-i7-8700k-amd-vega-56.239969/page-286
But the day after I was again unable to find the magic combination... and got sick of rebooting & got on with work since then.

My current understanding is that there's some issue around nvram. I do not understand exactly whether this is being emulated, or whether instead some kext is rather enabling the physical nvram. While I can write random tests to nvram myself, and these persist, writing nvda_drv=1 does not persist. (And my magic boot involved setting this by hand just before rebooting.) When I have time I will dig into this a bit more.

If you do succeed, please let me know! And post a copy of your EFI folder.
 
Last edited:
Thanks for the sharing. I checked the topic you just shared, when you re-try using nvda_drv=1.
I still can't pass the login screen.
I re-installed RC script on target volume with Clover 2.4k r4674 installer.
I noticed that my Clover has been upgraded (grey screen with littles icons for the drives, instead of black screen with big icons before), so I had maybe an old version.
Anyway it has not fixed it and my login screen is still in loop with nvda_drv=1. With nv_disable=1, I can manage to boot but without the GPU detected.
Headaches are more and more strong ! ;)
Which version of driver Nvidia, and Cuda, do you have ?
 
Status
Not open for further replies.
Back
Top