Created
January 12, 2012 16:28
-
-
Save alexsleat/1601436 to your computer and use it in GitHub Desktop.
AMD Unsupported hardware watermark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DRIVER=/usr/lib/fglrx/xorg/modules/drivers/fglrx_drv.so | |
for x in $(objdump -d $DRIVER|awk '/call/&&/EnableLogo/{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6}'); do | |
sed -i "s/$x/\x90\x90\x90\x90\x90/g" $DRIVER | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After watermarking the driver, I had a problem with further update of the fglrx-driver package which would not change the file /usr/lib/xorg/modules/drivers/fglrx_drv.so which was a symlink originally (this file even "survived" a purge/reinstall).
see http://bugs.debian.org/660571
Maybe it could be better to change the file pointed by the symbolic link (in my installation, it is /usr/lib/fglrx/fglrx_drv.so)