Skip to content

Instantly share code, notes, and snippets.

@andir
Last active August 29, 2015 13:57
Show Gist options
  • Save andir/9570611 to your computer and use it in GitHub Desktop.
Save andir/9570611 to your computer and use it in GitHub Desktop.
nvidia enable SLI Mosaic
# python
Python 2.7.5 (default, Feb 19 2014, 13:47:28)
[GCC 4.8.2 20131212 (Red Hat 4.8.2-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> f = open('nvidia_drv.so', 'r+b') # version 330.4Xsomething...
>>> f.seek(0xb3e87)
>>> f.read(1)
'\x85'
>>> f.seek(0xb3e87)
>>> f.write('\x84')
>>> f.seek(0xb3e87)
>>> f.read(1)
'\x84'
>>> f.flush()
>>>
# X &
@andir
Copy link
Author

andir commented Mar 15, 2014

The code that needs to be patched basically looks like:

.text:00000000000B3E80 check_if_nvs4000?: ; CODE XREF: sub_B2B00+5C2�j
.text:00000000000B3E80 8B 45 00 mov eax, [rbp+0]
.text:00000000000B3E83 F6 C4 40 test ah, 40h
.text:00000000000B3E86 0F 84 45 F2 FF FF jz loc_B30D1 ; this is normally a jnz, we just change the 2nd byte (x85) with x84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment