Fixed Nvidia GPU settings for GNU/Linux Home Theater PC

Hello everyone, so I have a home theater PC I built myself that is running completely on GNU/Linux. So I ran into an issue at my Grandmothers house when I brought it with me, and xorg.conf would be deleted on each reboot. Plus the GPU would have significant tearing on video at 720p and 1080p. I had previously fixed the video tearing.

If you do not already have the nvidia drivers installed install them with the code below
NOTE: THIS IS FOR NVIDIA-361 THE LATEST CURRENT STABLE DRIVER, OLDER GPU’S (such as my prior Nvidia 240GT I upgraded this HTPC from) MAY NEED AN OLDER DRIVER

sudo apt-get update
sudo apt-get remove nvidia-*
sudo apt-get install nvidia-361 nvidia-settings

It appears there was a bug in the Xubuntu 14.04.3 LTS I use (also applies to Ubuntu, Kubuntu, Lubuntu, and Linux Mint I believe as well) that it kept deleting it. I am pretty sure this is due to the fact I had it installed prior, so the nvidia-xconfig needed to be called again. This is easily remedied in machines with an Nvidia GPU, and the proprietary Nvidia driver by running

sudo nvidia-xconfig

This will create a barebones xorg.conf that will get it to do basic functions. Now the additions to the xorg.conf to fix video tearing for my Nvidia 720GT (1GB DDR3 by Gigabyte if wondering)

Now here is where we need to start editing xorg.conf. So bring up your favorite editor as root. In my case I like nano in terminal, notepadqq and emacs for GUI, and open xorg.conf

sudo nano /etc/X11/xorg.conf

This should now bring up your xorg.conf. So there is one section that needs two options added and two sections at the bottom that need to be added

Look for the “Device” section, and it should look similar to this with your GPU model instead of my Nvidia 720GT 1GB DDR3. Each of the “Option” additions, are one line each.

Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce GT 720”
Option “RegistryDwords” “PowerMizerEnable=0x1; PerfLevelSrc=0x3322; PowerMizerDefaultAC=0x1”
Option “TripleBuffer” “True”
EndSection

Add these two sections at the bottom

Section “DRI”
Mode 0666
EndSection

Section “Extensions”
Option “Composite” “Enable”
EndSection

After this your video should be tear free. Tested on Xubuntu GNU/Linux 14.04.3 LTS w/ custom 4.1.13 amd64 kernel, Nvidia-361 drivers, to a TV with HDMI

Author: Alon Ganon

I serve as a technology research associate for DTG3D. I am a technology specialist, very focused on understanding the details and applications of new technology trends. With a background in Windows, Mac OS X, GNU/Linux, and FreeBSD operating systems, I provide practical approaches to the integration of new technology into an IT and general business environment. I am currently is involved in the analysis of augmented and virtual reality systems. I also spend my free time advocating for freedom in software, and in all facets of our life. I have been working on computers since I was 4 years old under my father's company DTG3D. I built my first computer at 7 years old, and I am primarily self taught and self trained in regards to the majority of his IT skills due to decades of being surrounded by technology everyday. My philosophy is, "You are not dead, until you stop learning."

2 thoughts on “Fixed Nvidia GPU settings for GNU/Linux Home Theater PC”

Leave a Reply

Your email address will not be published. Required fields are marked *