ak47suk1

remove annoying amd unsupported hardware logo

Nov 16th, 2011
1,228
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # In a terminal type this:
  2.  
  3. nano fixwatermark.sh
  4.  
  5. # Paste the following into it:
  6.  
  7. # fixwatermark.sh
  8. # another version from
  9. # http://forums.opensuse.org/english/get-technical-help-here/hardware/466737-ati-radeonhd-6310m-opensuse-11-4-asus-k43u-seris-laptop.html#post2396712
  10. # thanx opensuse forum.
  11.  
  12. # copy from here
  13.  
  14. #!/bin/bash
  15. DRIVER=$(find /usr/lib*/xorg/modules/drivers -name "fglrx_drv.so" | head -1)
  16. SEDCMD=$(objdump -d $DRIVER | awk '/call/&&/EnableLogo/ {printf "s|\\x%s\\x%s\\x%s\\x%s\\x%s|\\x90\\x90\\x90\\x90\\x90|;", $2, $3, $4, $5, $6}')
  17. cp $DRIVER{,.org}
  18. sed -i "$SEDCMD" ${DRIVER}
  19. done
  20.  
  21. # to here
  22.  
  23. # exit and type
  24.  
  25. chmod +x fixwatermark.sh
  26.  
  27. # Then type
  28.  
  29. sudo sh fixwatermark.sh
  30.  
  31. # Log out and back in. Ta da!
  32.  
  33.  
RAW Paste Data