Archives For Nvidia Linux

Nvidia Linux driver

The Nvidia driver for Linux has reached the 370 series by releasing the 370.23 beta driver. TITAN X (Pascal) and GTX 1060 6GB are officially supported. Over- and under-clock GPUs feature added for GTX 1000 series and later.

Nvidia 370.23 also brings the “PixelShiftMode” MetaMode option, enabling support for 4K and 8K pixel shift displays.

TITAN X support

Other changes include:

  • a Vulkan bug fix revolving around X11 swap chains
  • fix a mode-setting regression from 367.35
  • fix OpennGL / OpenGL ES driver crash and CUDA device querying crash
  • enable persistence mode by default for all GPUs when the daemon is started
  • See the official announcement for more details.

How to install Nvidia 370.23 in Ubuntu 16.04, 14.04:

The Graphics Driver Team has made the new 370 driver series into PPA, available for Ubuntu 16.04, Ubuntu 14.04, Ubuntu 12.04, and also the next Ubuntu 16.10.

1. Open terminal (Ctrl+Alt+T) and run command to add PPA:

sudo add-apt-repository ppa:graphics-drivers/ppa

Type in password when it asks and hit Enter.

graphics driver ppa

2. Update system package index via:

sudo apt update

3. Finally launch Additional Drivers utility, select the nvidia-370 driver and click Apply changes.

install nvidia 370 driver

After installing the new driver, restart your computer to take effect.

Nvidia 346.35

NVIDIA 346.35, the first stable release of the 346.xx series driver, has been released with new features, improvements, and numerous bug fixes.

Instead of NVIDIA 340.xx series, the new driver becomes the Latest Long Lived Branch version of NVIDIA Linux drivers.

The 346.35 driver brings:

  • new GPUs support: GeForce 800A, GeForce 800M, GeForce GTX 970M, GeForce GTX 980M.
  • support for X.Org xserver ABI 19 (xorg-server 1.17)
  • support for decoding VP8 video streams using the NVCUVID API on GPUs with VP8 hardware decode support.
  • new EGL extensions support: EGL_EXT_device_base, EGL_EXT_platform_device, EGL_EXT_output_base
  • support for NVENC on GeForce GPUs.
  • the ability to increase the operating voltage on certain GeForce GPUs in the GeForce GTX 400 series and later. Voltage adjustments are done at the user’s own risk.
  • accelerated support for r8g8b8a8, r8g8b8x8, b8g8r8a8 and b8g8r8x8 RENDER formats.
  • support in nvidia-settings for a GTK+ 3 user interface on x86 and x86_64.
  • added the nvidia-settings option –use-gtk2 to force the use of the GTK+ 2 UI library

There are also numerous fixes and improvements, see the release highlight.

How to Install NVIDIA 346.35 in Ubuntu:

Before the xorg-edgers PPA updates for this driver, you can download & install the official NVIDIA package by following below steps:

1. Select download the official installer from links below:

32-bit Linux | 64-bit Linux | 32-bit ARM Linux

32-bit or 64-bit? Check your OS type by going to top-right corner shutdown menu (gear button) and clicking ‘About This Computer’

2. To be able to install the new driver, you have to remove the previous driver by running below command in a terminal window (Open terminal from the Dash or by pressing Ctrl+Alt+T on keyboard):

sudo apt-get remove nvidia* && sudo apt-get autoremove

3. You should also blacklist the open source nouveau driver by running below command to edit the config file:

gksudo gedit /etc/modprobe.d/blacklist-nouveau.conf

Add below lines to the end and click save.

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off

Disable Nouveau Driver

4. You can also disable the Kernel Nouveau by running below commands one by one:

echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf

sudo update-initramfs -u

5. Finally reboot your computer and when you’re at the login prompt press Ctrl+Alt+F1 (or F2 ~ F6) to switch to command console. Login with your username and password.

6. When you’re at the black & white text console, the graphics session is still there and you can switch back by pressing Ctrl+Alt+F7. You have to kill the graphics session by running below command:

sudo stop lightdm

Replace lightdm with gdm, mdm, or kdm for GNOME, Linux Mint, or KUbuntu.

7. At last give permission to the downloaded package and run it:

cd ~/Downloads && chmod +x NVIDIA-Linux-*-346.35.run && sudo sh NVIDIA-Linux-*-346.35.run

Follow the on screen prompts and when everything’s done reboot your computer. In next boot after log in, run sudo nvidia-xconfig to save your new nvidia configuration.

(Optional) To remove the driver, re-do step 5 & 6 and run:

cd ~/Downloads && sudo sh NVIDIA-Linux-*-346.35.run --uninstall

Also undo the step 3 & 4 by removing the

cd /etc/modprobe.d/ && sudo rm blacklist-nouveau.conf nouveau-kms.conf && sudo update-initramfs -u

Good luck!

Nvidia 340.65

NVIDIA has announced the 340.65 release of its Linux graphics driver (long lived branch version) with latest Kernel (3.18) support and various bug fixes.

Here’s the release highlight for NVIDIA 340.65:

  • Added support for X.Org xserver ABI 19 (xorg-server 1.17).
  • Improved compatibility with recent Linux kernels.
  • Fixed a bug that prevented internal 4K panels on some laptops from being driven at a sufficient bandwidth to support their native resolutions.
  • Fixed a regression that prevented the NVIDIA kernel module from loading in some virtualized environments such as Amazon Web Services.
  • Fixed a regression that caused displays to be detected incorrectly on some notebook systems.
  • Fixed a bug that could cause X to freeze when using Base Mosaic.
  • Fixed a regression that prevented the NVIDIA X driver from recognizing Base Mosaic layouts generated by the nvidia-settings control panel.

NVIDIA Linux Graphics Driver

Install / Upgrade NVIDIA Driver in Ubuntu:

If you’re running with NVIDIA’s proprietary driver in Ubuntu, you can upgrade to this driver release by following below steps:

1. Press Ctrl+Alt+T to open terminal. When it opens, run the command below to add the xorg-edgers fresh X crack PPA repository:

sudo add-apt-repository -y ppa:xorg-edgers/ppa

Type in your user password when it asks.

2. After added the PPA, refresh your system cache via command:

sudo apt-get update

3. Finally install the 340.65 driver:

sudo apt-get install nvidia-340

The repository also provides the NVIDIA 343 driver (short lived branch version) and NVIDIA 346 driver (still in beta). If need, you can replace nvidia-340 in the previous code with nvidia-343 or nvidia-346 to install the driver.

Nvidia 343.36

While Nvidia’s Linux Graphics Driver 346 series is still in beta, the latest 343.36 stable driver has been released this Friday, which brings support for the latest Linux kernels (up through Linux 3.18), various bug fixes (including an Unreal Engine 4 fix), support for disabling indirect GLX, and more.

Release Highlight in Nvidia Graphics Driver 343.36:

  • Added support for X.Org xserver ABI 19 (xorg-server 1.17).
  • Improved compatibility with recent Linux kernels.
  • Fixed a bug that rendered very bright garbage data onto some textures in UnrealEngine 4 applications. This issue is known as the “disco bug” by the UnrealEngine 4 Linux community.
  • Added option UseSysmemPixmapAccel to control the use of GPU acceleration for X drawing operations on pixmaps allocated in system memory.
  • Fixed a regression that prevented the NVIDIA X driver from recognizing Base Mosaic layouts generated by the nvidia-settings control panel.
  • Fixed a bug that could cause VT-switching to fail following a suspend, resume, and driver reload sequence.
  • Fixed a bug that caused incorrect colors to be displayed on X screens running at depth 8 on some GPUs.
  • Fixed a bug that prevented GPUs from being correctly recognized in MetaMode strings when identified by UUID.
  • Implemented support for disabling indirect GLX context creation using the -iglx option available on X.Org server release 1.16 and newer. Note that future X.Org server releases may make the -iglx option the default. To re-enable support for indirect GLX on such servers, use the +iglx option.
  • Added the “AllowIndirectGLXProtocol” X config option. This option can be used to disallow use of GLX protocol. See “Appendix B. X Config Options” in the README for more details.
  • Fixed a crash with UnrealEngine 4 when the application was started with the -opengl4 commandline switch.
  • Fixed an OpenGL issue that could cause glReadPixels() operations to be improperly clipped when resizing composited application windows, potentially leading to momentary X freezes.
  • Fixed a bug that could prevent the GLSL compiler from correctly evaluating some expressions when compiling shaders.
  • Fixed a bug that could cause nvidia-installer to crash while attempting to run nvidia-xconfig on systems where that utility is missing.
  • Fixed a bug that could prevent 32-bit GPU-based applications from running correctly on 64-bit systems when using GPUs with very large memory-mapped I/O regions.
  • Fixed a bug that could cause the CUDA debugger to fail after exiting X on systems with persistence mode enabled.
  • Fixed a bug that could cause silent and intermittent failures when a CUDA application writes to a peer device’s memory with GPUDirect.
  • Updated nvidia-installer to avoid writing to non-zero offsets of sysctl files in /proc/sys/kernel.

How to Install / Upgrade to Nvidia 343.36 Driver in Ubuntu:

To make the installation easy, you can install/upgrade the driver from PPA. But at the moment of writing this tutorial, the PPA does not yet update with the 346.36 binaries.

Check out the package version of “nvidia-graphics-drivers-343” from the PPA page below:

xorg-edgers fresh X crack PPA

Once the PPA updated, run the commands below one by one in terminal to add the PPA and install the 346.36 driver:

sudo add-apt-repository -y ppa:xorg-edgers/ppa

sudo apt-get update

sudo apt-get install nvidia-343

(Optional) To uninstall the driver as well as the PPA, run:

sudo add-apt-repository -r ppa:xorg-edgers/ppa && sudo apt-get remove nvidia-343 && sudo apt-get update

If you don’t want to add the PPA, follow the steps below to install the 346.36 driver via the official package from Nvidia website.

1. Select download the 346.36 driver that matches your OS type:

64-bit Linux | 32-bit Linux | 32-bit Linux ARM

2. IMPORTANT: You have to switch to the black & white text console (press Ctrl+Alt+F1 ~ F6), then log in with current username & password.

3. When you’re in the text console, run the command below to stop the graphics session (The graphics session is still there, and you can press Ctrl+Alt+F7 to switch back).

sudo service lightdm stop

Replace lightdm with gdm or mdm in the code if you’re running with Gnome GDM or Linux Mint’s MDM display manager.

4. Once the graphics session is closed, you are able to run the downloaded package by running the commands below:

cd ~/Downloads/

chmod +x NVIDIA-Linux-*-343.36.run

sudo sh NVIDIA-Linux-*-343.36.run

Above commands will navigate current directory to /Downloads/, then give executable permission to the 346.36 driver package, and finally run the installer.

5. After the last command, follow the onscreen prompt until done. Finally restart your computer.

(Optional) To uninstall the 346.36 driver, get into the text console and run:

sudo sh ~/Downloads/NVIDIA-Linux-*-343.36.run --uninstall

Nvidia 346.16

NVIDIA recently introduced the 346.xx graphics driver series for Linux with the release of the 346.16 beta driver. Xorg-Edgers PPA has made the binary packages available for Ubuntu 14.10 and Ubuntu 14.04

According to the release highlights, the new driver added below new features:

  • Added support for GeForce GTX 970M and GeForce GTX 980M GPUs.
  • Added support for decoding VP8 video streams using the NVCUVID API on GPUs with VP8 hardware decode support.
  • Added the ability to increase the operating voltage on certain GeForce GPUs in the GeForce GTX 400 series and later. Voltage adjustments are done at the user’s own risk.
  • Added accelerated support for r8g8b8a8, r8g8b8x8, b8g8r8a8 and b8g8r8x8 RENDER formats.
  • Added support for the EGL_EXT_device_base, EGL_EXT_platform_device, and EGL_EXT_output_base extensions.
  • Added support in nvidia-settings for GTK+3 UI, an option --use-gtk2 available to force the use of GTK+2 library.
  • Support for the latest Linux Kernel 3.17 / 3.18 series.
  • Performance improvements and various bug fixes.

For more changes and supported products, see the Nvidia page.

How to Install Nvidia 346.16 in Ubuntu:

Besides using the official installer package, you can install the new driver in Ubuntu 14.10, Ubuntu 14.04, or Linux Mint 17 from the xorg-edgers fresh X crack ppa.

1. Press Ctrl+Alt+T on keyboard to open terminal. When it opens, paste the command below and hit run to add the PPA:

sudo add-apt-repository -y ppa:xorg-edgers/ppa

2. Update the package lists and install the new driver:

sudo apt-get update

sudo apt-get install nvidia-346 nvidia-settings

(Optional) To purge the PPA:

sudo apt-get install ppa-purge && sudo ppa-purge ppa:xorg-edgers/ppa

To remove the Nvidia 346 driver:

sudo apt-get remove nvidia-346