Vga Compatible Controller Cirrus Logic Gd 5446 And Opengl
DOWNLOAD ===== https://urllio.com/2tvwNt
How to use OpenGL on Amazon EC2 with Cirrus Logic GD 5446 and NVIDIA GRID K520
If you want to run OpenGL applications on a remote computer on Amazon EC2, you may encounter some challenges with the graphics drivers and the X server. In this article, we will show you how to set up and use OpenGL on an EC2 instance with Ubuntu 14.04 and two VGA devices: Cirrus Logic GD 5446 and NVIDIA GRID K520.
Prerequisites
Before you start, you need to have an EC2 instance with Ubuntu 14.04 and the following VGA devices:
lspci grep VGA
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 VGA compatible controller: NVIDIA Corporation GK104GL [GRID K520] (rev a1)
You also need to install the following packages:
gcc and make for compiling the kernel
linux-generic for updating the kernel
xserver-xorg and mesa-utils for installing the X server and OpenGL tools
NVIDIA drivers for enabling the GPU
VirtualGL and TurboVNC for running OpenGL applications remotely
You can use the following commands to install these packages:
# setup kernel
sudo apt-get update
sudo apt-get install -y gcc make linux-generic
# install X server and OpenGL tools
sudo apt-get install -y xserver-xorg mesa-utils
# download NVIDIA drivers
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/340.46/NVIDIA-Linux-x86_64-340.46.run
# download VirtualGL
wget https://sourceforge.net/projects/virtualgl/files/2.5.2/virtualgl_2.5.2_amd64.deb/download -O virtualgl_2.5.2_amd64.deb
# download TurboVNC
wget https://sourceforge.net/projects/turbovnc/files/2.1.1/turbovnc_2.1.1_amd64.deb/download -O turbovnc_2.1.1_amd64.deb
Step 1: Disable Nouveau
Nouveau is an open source driver for NVIDIA cards that may interfere with the installation of the official NVIDIA drivers. To disable it, you need to add some lines to the /etc/modprobe.d/blacklist.conf and /etc/modprobe.d/nouveau-kms.conf files:
# disable Nouveau
sudo echo 'blacklist nouveau' >> /etc/modprobe.d/blacklist.conf
sudo echo 'options nouveau modeset=0' >> /etc/modprobe.d/blacklist.conf
echo options nouveau modeset=0 sudo tee -a /etc/modprobe.d/nouveau-kms.conf
sudo update-initramfs -u
Then, you need to reboot the instance to apply the changes:
# reboot to get kernel update and nouveau disabling activated
sudo reboot now
Step 2: Install NVIDIA drivers
After rebooting, you can install the NVIDIA drivers by running the downloaded file with some options:
# install NVIDIA drivers
sudo /bin/bash ./NVIDIA-Linux-x86_64-340.46.run --accept-license --no-questions --ui=none
sudo reboot now
This will install the drivers and reboot the instance again.
Step 3: Setup xorg.conf
The next step is to configure the X server to use the NVIDIA device and not the Cirrus device. To do this, you need to run the nvidia-xconfig command with some options:
# setup xorg.conf
sudo nvidia-xconfig -a --use-display-device=None --virtual=1280x1024
# add missing BusID
sudo sed -i 's/ BoardName \\\"GRID K520\\\"/ BoardName \\\"GRID K520\\\"\\\\n BusID \\\"0:3:0\\\"/g' /etc/X11/xorg.conf aa16f39245