Bash file for switching between NVIDIA and Intel video cards and fixing video/screen tearing on Intel video cards
prime-select query
command for the detection of the active GPU thus dropping off the requirement of mesa-utils
(Still needs to be tested before merged).Ubuntu 16.04 LTS
Nvidia binary driver - version 375.66 from nvidia-375 (proprietary, tested) (*)
glxinfo
Tested on: Ubuntu 16.04 LTS - GeForce GT 735m + Intel Mesa - SonyVAIO FIT 15
(*) It might work with older or newer versions of the driver.
Assuming that you have an internet connection and you have fresh installed your ubuntu 16.04 LTS, follow the instructions below:
Open terminal and type: sudo apt-get update
Install the latest (375.66) Nvidia binary driver by following these steps:
1 - Open the Ubuntu's 'System Settings' from ubuntu's left bar.
2 - Click on the 'Software & Updates' icon.
3 - Select the tab 'Additional Drivers'.
4 - Check 'Using NVIDIA binary driver - version 375.66 from nvidia-375 (proprietary, tested).
5 - Click on 'Apply Changes', wait until the installation is complete.
6 - Reboot
Install 'glxinfo' by opening terminal and typing: sudo apt-get install mesa-utils
Download or Clone the graphics-switch script.
Open a terminal within the folder where graphics-switch bash file is located and type: chmod a+x Graphics-Switcher
Run the script by typing: ./Graphics-Switcher.