Skip to content

Instantly share code, notes, and snippets.

@alexsleat
Created January 12, 2012 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexsleat/1601436 to your computer and use it in GitHub Desktop.
Save alexsleat/1601436 to your computer and use it in GitHub Desktop.
AMD Unsupported hardware watermark
#!/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
@adren
Copy link

adren commented Mar 11, 2012

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)

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