thomas_price1 Posted May 14, 2015 Share Posted May 14, 2015 Hello !I was bored to edit kext files at each patch, so I made a small php script.https://github.com/sebastienva/thunderbolt-gpuIf you plan to use it, I will advice you to check the result (at least the first time). The script makes a backup of your kext files in the current folder. 3 Quote Link to comment Share on other sites More sharing options...
Dschijn Posted May 14, 2015 Share Posted May 14, 2015 that's a great idea Quote Link to comment Share on other sites More sharing options...
MVC Posted May 14, 2015 Share Posted May 14, 2015 Thank you, haven't tested yet but if this works, could really help the newbs who might have buggered it otherwise. Quote Link to comment Share on other sites More sharing options...
MVC Posted May 19, 2015 Share Posted May 19, 2015 Just had a look, isn't this an error:<code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; padding: 0px; margin: 0px; background-color: transparent; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: normal; border: 0px; display: inline; line-height: inherit; word-wrap: normal;">sudo nvram boot-args="kext-dev-mode=1"Would kill the Nvidia driversShould be:<code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; padding: 0px; margin: 0px; background-color: transparent; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: normal; border: 0px; display: inline; line-height: inherit; word-wrap: normal;">sudo nvram boot-args="</code>kext-dev-mode=1 nvda_drv=1"</code></pre> Quote Link to comment Share on other sites More sharing options...
seefew Posted May 19, 2015 Share Posted May 19, 2015 may a silly question:will this script do the required changes in the 3 kexts if they´re untouched?Because i´ve do a clean install with Yosemite on my MBP i´ve to change these files, but i think it´s a better way to do this by this way.Regards Quote Link to comment Share on other sites More sharing options...
euqlaog Posted May 19, 2015 Share Posted May 19, 2015 Just had a look, isn't this an error:sudo nvram boot-args="kext-dev-mode=1"Would kill the Nvidia driversShould be:sudo nvram boot-args="kext-dev-mode=1 nvda_drv=1"Yep, that switches back to OS X default driver. Adding “nvda_drv=1” is preferred so that web driver will be in use after reboot and you don’t have to manually select from the menu. Quote Link to comment Share on other sites More sharing options...
MVC Posted May 21, 2015 Share Posted May 21, 2015 Hmm, I ran the latest Nvidia update last night. I then ran this script. It noted that 2 of the files had already been patched the first time I ran it.I ran it again and it said all 3 had been patched.But when I restarted the one it patched wouldn't load. I repaired permissions but it still wouldn't load.So, if you try this, make sure to have a "get it back running" plan. The issue may be that I didn't restart and let the kexts become fully installed, etc.Will try again soon and update. Quote Link to comment Share on other sites More sharing options...
thomas_price1 Posted May 29, 2015 Author Share Posted May 29, 2015 Just had a look, isn't this an error:<code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; padding: 0px; margin: 0px; background-color: transparent; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: normal; border: 0px; display: inline; line-height: inherit; word-wrap: normal;">sudo nvram boot-args="kext-dev-mode=1"Would kill the Nvidia driversShould be:<code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; padding: 0px; margin: 0px; background-color: transparent; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: normal; border: 0px; display: inline; line-height: inherit; word-wrap: normal;">sudo nvram boot-args="</code>kext-dev-mode=1 nvda_drv=1"</code>Oh I forgot this. thx.may a silly question:will this script do the required changes in the 3 kexts if they´re untouched?Because i´ve do a clean install with Yosemite on my MBP i´ve to change these files, but i think it´s a better way to do this by this way.RegardsIt should, but I've only tested it on my macbook.Hmm, I ran the latest Nvidia update last night. I then ran this script. It noted that 2 of the files had already been patched the first time I ran it.I ran it again and it said all 3 had been patched.But when I restarted the one it patched wouldn't load. I repaired permissions but it still wouldn't load.So, if you try this, make sure to have a "get it back running" plan. The issue may be that I didn't restart and let the kexts become fully installed, etc.Will try again soon and update.Could you send me the file to check what is wrong ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.