Ok,
let me summarize the way to change/update the NVidia Kext based on the experience of this thread. All this explanation refer to a ML with update 10.8.2 already installed!!!
1) At this moment there are 3 possible set of driver, based on:
a) Apple ML 10.8 DPL3
b) NVidia Driver ver 304.00.00f20 for ML 10.8.1
c) NVidia Driver ver 304.00.05f02 for ML 10.8.2
2) Every driver must be installed with the relative version of OpenGL / OpenCL Framework to work, because the driver have some reference to the frameworks itself.
I have attached to this post 3 archive that contain the driver and the associate framework to use for the desired solution. The archive 10.8.2 also contain the original ML NVidia kext released with version 10.8.2.
3) The instruction to backup and install driver and relative framework was posted by vczilla. The instruction require that you launch some command from the Terminal application and that you have administrator right in the sistem. Here I will reassume the procedure:
a) backup of the actual installed drivers and frameworks (if desired)
Code:
sudo cp -R /System/Library/{Extensions/{GeForce*,NVDA*},Frameworks/{OpenGL.framework,OpenCL.framework},PrivateFrameworks/GPUSupport.framework} ~
This command will backup drivers and frameworks in the home folder (~). If you want to make backup in a different place, change ~ with the desired path
b) install the desired version of kext using an utilty like KextHelper, that will copy the kext in the right folder and repair the permission. Choose to install in System/Library/Extension if more option is available.
Not reboot after this step!!!
c) install the right version of the framework for the kext installed. There are a total of 6 command to launch in the terminal.
<folder_that_contain_required_frameworks> must be replaced with the right path were the 3 required frameworks was saved/downloaded.
Code:
cd /<folder_that_contain_required_frameworks>
sudo rm -r /System/Library/{Frameworks/{OpenGL.framework,OpenCL.framework},PrivateFrameworks/GPUSupport.framework}
sudo ditto --hfsCompression OpenGL.framework /System/Library/Frameworks/OpenGL.framework
sudo ditto --hfsCompression OpenCL.framework /System/Library/Frameworks/OpenCL.framework
sudo ditto --hfsCompression GPUSupport.framework /System/Library/PrivateFrameworks/GPUSupport.framework
sudo chown -R root:wheel /System/Library/{Frameworks/{OpenGL.framework,OpenCL.framework},PrivateFrameworks/GPUSupport.framework}
d) At this the installation is finish. If you want you can install the patch to enable OpenCL for all card, issuing still 1 command in the terminal. Note that the patch to use for driver ML10.8 DP3 is different from the patch to use for the other 2 version (NVidia) of the driver.
So for driver ML10.8 DP3 launch this command:
Code:
sudo perl -p -i.old -e '$c+=s/\x8b\x87\x1c\x0c\x00\x00\x89\x06\x8b\x87\x20\x0c\x00\x00\x89\x02/\x31\xc0\xff\xc0\x89\x06\xff\xc0\xff\xc0\x89\x02\x90\x90\x90\x90/; END { printf "%s: %d substitution%s made.\n",($c==1 ? "Success" : "Error"),$c,(!$c || $c>1 ? "s" : ""); $?=($c!=1); } ' /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib
For other (NVidia) driver launch this command:
Code:
sudo perl -p -i.old -e '$c+=s/\x8b\x81\x1c\x0c\x00\x00\xeb\x06\x8b\x81\x20\x0c\x00\x00/\xb8\x02\x00\x00\x00\x90\xeb\x06\xb8\x00\x00\x00\x00\x90/; END { printf "%s: %d substitution%s made.\n",($c==1 ? "Success" : "Error"),$c,(!$c || $c>1 ? "s" : ""); $?=($c!=1); } ' /System/Library/Extensions/GeForceGLDriver.bundle/Contents/MacOS/libclh.dylib
At this point you have finish, cross your finger and reboot ....
Just one more think: I suppose that best solution depend on the graphics card and on the whole system. In my configuration the only solution that works perfectly (no freeze, no problem in change resolution) is the one based on ML 10.8 DPL3. With the NVidia driver the freeze problem are not solved.
Good luck.
Attached kext and relative framework:
Apple ML 10.8 DPL3:
View attachment 33709
NVidia Driver ver
304.00.00f20: View attachment 33710
NVidia Driver ver
304.00.05f02: View attachment 33711