#!/bin/bash # Rename this script to i915.sh and make it executable ( chmod +x i915.sh ) # # This script will load the i915 driver in the 3.2.6 kernel # for Backtrack 5 R2 without adding unsupported PPA's. # Adding unsupported PPAs to any Backtrack Distro is considered # an unacceptable practice that could compromise the stability and # more importantly, security of your operating system. # Script Author: Landon Mayo # E-Mail landon.mayo[at]OWASP[dot]org # License: GNU General Public Ver. 2 (the ``GPL``). # A big thanks goes to James2k for his guide on this: # Guide URL: backtrack-linux.org/forums/showthread.php?t=48904 # This should get your startx up and running, but you must read his guide # to ensure everything is running properly. # changing to grub's directory cd /etc/default # backing up orginal grub to grub.bk cp grub {,.bk} # Replacing: Orginal String: GRUB_CMDLINE_LINUX_DEFAULT="text splash vga=791" # With: GRUB_CMDLINE_LINUX_DEFAULT="text i915.i915_enable_rc6=1 i915.lvds_downclock=1 i915.i915_enable_fbc=1 pcie_aspm=force" sed -i -e 's/"text splash vga=791"/"text i915.i915_enable_rc6=1 i915.lvds_downclock=1 i915.i915_enable_fbc=1 pcie_aspm=force"/g' `find . -iname 'grub'` # running update-grub to finalize our change update-grub # this rc.local startup script runs on next reboot to remove that pesky nouveau driver then load the i915 driver echo -e "#!/bin/bash\nmodprobe -r nouveau \nmodprobe i915 modeset=1\nexit 0" > /etc/rc.local chmod +x /etc/rc.local # Rebooting shutdown -r now