I have solved my problem.
I first write the potential source of my problem, and in the next paragraph I explain my solution. I recall my specs here :
Motherboard : GIGABYTE z170a
CPU : i7 6700k
GPU : NVIDIA GTX 970 (the one I am trying to install)
OS : Ubuntu 16.04
Source of the problem : I had the graphic card running before, and an issue forced me to re-install the OS. This caused my BIOS to set the graphic card chosen for display during POST to be my NVIDIA card, which had no drivers anymore because I re-installed the OS. Therefore I would get a black screen and could not run my computer with the graphic card plugged in. Because I didn't recall how I setup my graphic card the first time, this lead me to think that I needed to plug in the graphic card AFTER installing the driver, but it goes the other way around ; you cannot install the driver without the graphic card plugged in.
Solution : I went into the BIOS, and indeed the graphic card selected for POST was the PCI slot I was using before for the graphic card. If this is the case, unplug the graphic card, for it will cause your monitor to get no video output, even if your monitor is plugged in your motherboard. In the BIOS of my motherboard (GIGABYTE GA-z170 Gaming K3), one must select "IGFX" instead of "PCI Slot 1" (or whatever slot was set there) as the graphic card selected for POST ; for a different motherboard, find the option which enables the integrated graphics of the motherboard, not the GPU's. Complete the boot, shutdown, plug in the graphic card and reboot. Your monitor should display nomrally.
I ran the following commands after a fresh install of my OS, but I assume they could also work if no NVIDIA drivers have been previously installed or if old NVIDIA drivers have been purged (via sudo apt remove --purge nvidia*
)
In a terminal, enter the following commands :
sudo apt update && sudo apt dist-upgrade
(this is always good to do whether you're installing drivers or not, keeps your computer up to date)
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo reboot
(might not be necessary, but I didn't take any chances)
After logging in again, open a terminal (Ctrl+Alt+T
) and enter the following command, where ***
must be replaced by the version of the driver you want to install :
sudo apt install nvidia-***
In my case, I installed the latest (28/06/2016) driver, which is nvidia-367. So the command looked like this :
sudo apt install nvidia-367
To check that your graphic card is indeed being used to display graphics, go in the "About this computer" section (or System Settings -> Details
) which should display "Graphics GeForce (...)" instead of "Graphics Intel (...)".
I have not tested other drivers. I have spent five days on this, so I guess I became a sort of medium expert on these issues...
Remark : I did not disable anything in the file /etc/modprobe.d/blacklist.conf and did not add any extra file in there. I am guessing that the script installing nvidia-367
takes care of disabling nouveau
, whereas when installing directly from the .run
installer from nvidia.com, one must do this manually.
Hope that helps,
Best Answer
I also tried out Hyper-V on Windows 10 Pro with Ubuntu Desktop 64-bit 16.04 LTS as guest system. I am not satisfied with the graphics performance. I do not know if i missed out a setting. If anybody finds a good solution i would be happy to know about it too.
But this is what i did. I read and followed the information from the Microsoft documentation on TechNet. There is a table with features of Hyper-V. Most interestingly in this case is the row mentioning "Hyper-V specific video device". But it does not mention anything about Windows 10. Only about Windows Server host systems.
I did not change anything in
/etc/initramfs-tools/modules
. However, i followed the instructions and installed:Then reboot. After reboot i found this:
So it seems to me that something worked out. But the graphics performance still seems to be poor. I am not sure if it improved maybe a little. Maybe you try it out and tell me if it helps?