Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Youtube Video URL
- Part 1: http://youtu.be/Hh3JNYBygUQ
- Part 2: http://youtu.be/cHCh-b5L1xw
- I am not liable for any damages to you or your computer if you follow these instructions
- if you need help send an email to "XsoundXhoundX@gmail.com" with the subject line "Help"
- I DID NOT make any of this and DO NOT take credit for it
- ----------------------------------------------------------------------------------------------
- Ethernet Fix
- http://ubuntuforums.org/showthread.php?t=2050126 -Source Website
- Terminal Code (copy to Terminal)
- ----------------------------------------------------------------------------------------------
- sudo apt-get install linux-headers-generic build-essential
- wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.5/compat-wireless-3.5.1-1-snpc.tar.bz2
- tar -xf compat-wireless-3.5.1-1-snpc.tar.bz2
- cd compat-wireless-3.5.1-1-snpc
- ./scripts/driver-select alx
- make
- sudo make install
- sudo modprobe alx
- ----------------------------------------------------------------------------------------------
- Ethernet Clean Up (make a new text file)
- ----------------------------------------------------------------------------------------------
- cd Desktop
- tar -xf compat-wireless-3.5.1-1-snpc.tar.bz2
- cd compat-wireless-3.5.1-1-snpc
- ./scripts/driver-select alx
- make
- sudo make install
- sudo modprobe alx
- ----------------------------------------------------------------------------------------------
- Hibernate Fix
- http://askubuntu.com/questions/94754/how-to-enable-hibernation-in-12-04 -Source Website
- ----------------------------------------------------------------------------------------------
- gksudo gedit etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
- -------------->paste:
- [Re-enable hibernate by default]
- Identity=unix-user:*
- Action=org.freedesktop.upower.hibernate
- ResultActive=yes
- -------------->SAVE!!!
- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Enable OpenGL Part 1
- http://eternalvoid.net/tutorials/linux-optimus-gt650m/ -Source Website
- ----------------------------------------------------------------------------------------------
- First, add some unofficial Ubuntu repositories:
- ----------------------------------------------------------------------------------------------
- sudo add-apt-repository ppa:bumblebee/stable
- sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
- ----------------------------------------------------------------------------------------------
- Update your system:
- ----------------------------------------------------------------------------------------------
- sudo apt-get update
- sudo apt-get upgrade
- ----------------------------------------------------------------------------------------------
- Install some software:
- ----------------------------------------------------------------------------------------------
- sudo apt-get install build-essential ia32-libs git automake autoconf libtool virtualgl virtualgl-libs virtualgl-libs-ia32 bbswitch-dkms
- sudo apt-get build-dep bumblebee bumblebee-nvidia
- ----------------------------------------------------------------------------------------------
- Download a specific version of the NVidia official Linux proprietary driver (version 304.22b or newer). Get the 64-bit driver here:
- http://www.nvidia.com/object/linux-display-amd64-304.22-driver.html
- or get the 32-bit driver here:
- http://www.nvidia.com/object/linux-display-ia32-304.22-driver.html
- If you don't know whether you need a 64-bit or 32-bit driver, you should probably learn a lot of things about computers before proceeding any further with these instructions.
- ---
- Check if the nouveau kernel module is loaded:
- ----------------------------------------------------------------------------------------------
- lsmod | grep nouveau
- ----------------------------------------------------------------------------------------------
- If you see any output from that command, blacklist the nouveau module, otherwise skip the next two lines:
- ----------------------------------------------------------------------------------------------
- sudo su -
- echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
- ----------------------------------------------------------------------------------------------
- Also blacklist the nvidia module because we don't want it starting automatically:
- ----------------------------------------------------------------------------------------------
- echo "blacklist nvidia" >> /etc/modprobe.d/blacklist.conf
- ----------------------------------------------------------------------------------------------
- If you had to blacklist nouveau, reboot to make sure nouveau doesn't get loaded on startup:
- reboot
- ---
- Once you're back on, check if the module was successfully blacklisted:
- ----------------------------------------------------------------------------------------------
- lsmod | grep nouveau
- ----------------------------------------------------------------------------------------------
- If the last command outputs nothing, you're good to continue. If instead you see some references to nouveau, then you haven't blacklisted the module properly and the method for doing so may be different on your system. Please make sure you've blacklisted nouveau before continuing past this point.
- ---
- Give the NVidia driver installer the execute permission:
- ----------------------------------------------------------------------------------------------
- chmod 755 ~/Downloads/NVIDIA-Linux-x86_64-304.22.run
- ----------------------------------------------------------------------------------------------
- Now start the NVidia driver installer with some special command line arguments. ----->The arguments are super-important, and if you do this part wrong you'll break your existing OpenGL install, possibly not fixable without reinstalling your operating system<--------!!:
- ----------------------------------------------------------------------------------------------
- sudo ~/Downloads/./NVIDIA-Linux-x86_64-304.22.run --no-recursion --no-rpms --no-distro-scripts --no-x-check --dkms --x-prefix=/usr/nvidia --x-module-path=/usr/lib/xorg/nvidia/modules --x-library-path=/usr/nvidia/lib --opengl-prefix=/usr/nvidia --utility-prefix=/usr/nvidia --documentation-prefix=/usr/nvidia -e -q
- ----------------------------------------------------------------------------------------------
- During the install some errors may be reported, but this should be okay, and so long as the install completes successfully there's nothing to worry about.
- ---
- Copy the 32-bit libraries into the right place (this only applies to 64-bit installations):
- ----------------------------------------------------------------------------------------------
- sudo mkdir -p /usr/nvidia/lib32
- sudo cp -a /usr/lib32/* /usr/nvidia/lib32
- ----------------------------------------------------------------------------------------------
- Reboot:
- ----------------------------------------------------------------------------------------------
- sudo reboot
- ----------------------------------------------------------------------------------------------
- Get the bumblebee git repository (because for the GT650M you need Bumblebee version 3.0.1 or newer):
- ----------------------------------------------------------------------------------------------
- mkdir -p ~/src
- cd src
- git clone https://github.com/Bumblebee-Project/Bumblebee.git
- ----------------------------------------------------------------------------------------------
- Configure, compile, install, and set up Bumblebee:
- ----------------------------------------------------------------------------------------------
- cd Bumblebee
- git checkout v3.0.1
- autoreconf -fi
- ./configure --prefix=/usr --sysconfdir=/etc CONF_DRIVER=nvidia CONF_DRIVER_MODULE_NVIDIA=nvidia CONF_LDPATH_NVIDIA=/usr/nvidia/lib:/usr/nvidia/lib32:/usr/lib/xorg/nvidia/modules/drivers:/usr/lib/xorg/nvidia/modules/extensions:/usr/lib/xorg/nvidia/modules:/usr/lib/xorg/modules:/usr/lib/xorg/modules/drivers:/usr/lib/xorg/modules/extensions CONF_MODPATH_NVIDIA=/usr/lib/xorg/nvidia/modules/drivers,/usr/lib/xorg/nvidia/modules,/usr/lib/xorg/modules
- make
- sudo make install
- sudo groupadd bumblebee
- sudo addgroup _your_username_here_ bumblebee
- ----------------------------------------------------------------------------------------------
- ---------------------------------->Make sure you change _your_username_here_ above to your actual Linux regular user account name.<--------------------------------------------------
- ---
- Configure your system to start bumblebeed during bootup. This procedure may need to be different on non-Debian-based Linux distributions:
- ----------------------------------------------------------------------------------------------
- sudo cp -a scripts/sysvinit/bumblebeed /etc/init.d
- sudo chmod 755 /etc/init.d/bumblebeed
- cd /etc/rc2.d
- sudo ln -s ../init.d/bumblebeed S20bumblebeed
- ----------------------------------------------------------------------------------------------
- Rename an NVidia X server module to keep it from being loaded through bumblebee, because X really needs to load the stock version instead to work properly:
- ----------------------------------------------------------------------------------------------
- sudo mv /usr/lib/xorg/nvidia/modules/libwfb.so /usr/lib/xorg/nvidia/modules/libwfb.so.bak
- ----------------------------------------------------------------------------------------------
- Reboot:
- ----------------------------------------------------------------------------------------------
- sudo reboot
- ----------------------------------------------------------------------------------------------
- You should try changing a setting in your xorg.conf.nvidia like this:
- ----------------------------------------------------------------------------------------------
- sudo gedit /etc/bumblebee/xorg.conf.nvidia
- ----------------------------------------------------------------------------------------------
- Change:
- Option "ConnectedMonitor" "DFP"
- to
- Option "ConnectedMonitor" "CRT"
- ----------------------------------------------------------------------------------------------
- ----------------------------------------------------------------------------------------------
- Enable OpenGL part 2
- https://github.com/Bumblebee-Project/bbswitch/tree/hack-lenovo -Source Website
- ----------------------------------------------------------------------------------------------
- Until this kernel bug is fixed, you need to apply an ugly hack on these laptops to make bbswitch and the driver (both nouveau and nvidia) work. For now I have decided not to put the hack in the bbswitch module since it is a very ugly hack that is comparable to writing a maximum allowable speed of 130 km/h on a traffic sign for a road where 120 km/h is allowed just because the radar gun does not work properly.
- ---
- The module has been tested on a Lenovo IdeaPad Y570 running an up-to-date version of Ubuntu 11.10 Oneiric (64-bit) with Bumblebee 3.0 (3.0-1~oneiricppa2) installed using the nvidia driver.
- ---
- To make use of it, use the hack-lenovo branch. An example using DKMS:
- ----------------------------------------------------------------------------------------------
- git clone git://github.com/Bumblebee-Project/bbswitch.git -b hack-lenovo
- cd bbswitch
- sudo mkdir /usr/src/acpi-handle-hack-0.0.1
- sudo cp Makefile acpi-handle-hack.c /usr/src/acpi-handle-hack-0.0.1
- sudo cp dkms/acpi-handle-hack.conf /usr/src/acpi-handle-hack-0.0.1/dkms.conf
- sudo dkms add acpi-handle-hack/0.0.1
- sudo dkms build acpi-handle-hack/0.0.1
- sudo dkms install acpi-handle-hack/0.0.1
- ----------------------------------------------------------------------------------------------
- If everything goes well, you now need to get the hack loaded on boot. On Ubuntu and Debian, this can be done with:
- ----------------------------------------------------------------------------------------------
- echo acpi-handle-hack | sudo tee -a /etc/modules
- sudo update-initramfs -u
- ----------------------------------------------------------------------------------------------
- Reboot:
- ----------------------------------------------------------------------------------------------
- sudo reboot
- ----------------------------------------------------------------------------------------------
- ----------------------------------------------------------------------------------------------
- OpenGL Usage
- https://github.com/Bumblebee-Project/bbswitch/tree/hack-lenovo -Source Website
- ----------------------------------------------------------------------------------------------
- Commands:
- ----------------------------------------------------------------------------------------------
- ----------------------------------------------------------------------------------------------
- Check :
- ----------------------------------------------------------------------------------------------
- sudo cat /proc/acpi/bbswitch
- ----------------------------------------------------------------------------------------------
- Turn OpenGL Hack On:
- ----------------------------------------------------------------------------------------------
- sudo tee /proc/acpi/bbswitch <<<ON
- ----------------------------------------------------------------------------------------------
- Turn OpenGL Hack Off
- ----------------------------------------------------------------------------------------------
- sudo tee /proc/acpi/bbswitch <<<OFF
- ----------------------------------------------------------------------------------------------
- ----------------------------------------------------------------------------------------------
- ----------------------------------------------------------------------------------------------
- Open GL Files To Make <Optional>
- ----------------------------------------------------------------------------------------------
- sudo cat /proc/acpi/bbswitch
- optirun glxspheres <optional>
- ----------------------------------------------------------------------------------------------
- ----------------------------------------------------------------------------------------------
- Open GL add commands to terminal
- ---
- Go to your Home folder and git Control+H double click on .bashrc open with gedit and add
- ----------------------------------------------------------------------------------------------
- alias openglcheck='sudo cat /proc/acpi/bbswitch'
- alias openglon='sudo tee /proc/acpi/bbswitch <<<ON'
- alias opengloff='sudo tee /proc/acpi/bbswitch <<<OFF'
- ----------------------------------------------------------------------------------------------
- ----------> TO THE TOP!!!<---------
- ---
- Terminal commands are
- ---
- openglcheck (check to see if hack is on)
- openglon (turn hack on)
- opengloff (turn hack off)
- ----------------------------------------------------------------------------------------------
- ----------------------------------------------------------------------------------------------
- ||||||||\\\\ ////||||||||||||||||||||||||||||||| |||||| //////
- ||||||||\\\\\ /////||||||||||||||||||||||||||||||| |||||| //////
- ||||||||\\\\\\ //////||||||| ||||||| |||||| |||||| //////
- |||||||| \\\\\\ ////// ||||||| ||||||| |||||| |||||| //////
- |||||||| \\\\\////// ||||||| ||||||| |||||| |||| ||||||//////
- |||||||| \\\//// ||||||| ||||||| |||||| |||||||| |||||||||||||||||||\\\\\\
- |||||||| \\\\\\\ ||||||| ////// ||||||| |||||||||||||||| ||||||||||||||||||| \\\\\\
- |||||||| \\\\\\\ |||||||////// ||||||| ||||||||||||||||| |||| |||||| \\\\\\
- |||||||| \\\\\\\||||||////// ||||||| ||||||| ||||||| |||| |||||| \\\\\\
- \\\\\\\ ////// ||||||| |||||| ||||||||||||||||
- \\\\\\\ ////// ||||||||
- \\\\\\\////// ||||
- \\\\/////// ||||
- \\/////// ||||||||||||||
- /////// |||||||||||||||
- ///////
- ///////
- ///////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement