?
I have a box I want qubes on, but it has GTX 1070. I can temporarily swap the card out for a less obnoxious one (like, some Northern Islands Radeon, which I have lying around somewhere), but I'd prefer to put the 1070 back in eventually.
Since nouveau support for this GPU is in its infancy (and frankly nouveau is not very good) I'd like to install Nvidia's proprietary drivers.
Has anyone succeeded in using the "official" procedure from link above (the RpmFusion packages version of procedure specifically) on Qubes 3.2 ?
Are there any things beyond what is in that link that I should keep in mind?
P.S.:
For the purpose of this discussion, folks at rpmfusion and Nvidia are considered trustworthy ;-)
Well, playing videos at ~1080p max, on a ~1080p screen. 1080p on a 2160p screen is quite laggy already, never even mind 2160p@2160p. :)
I am currently running Nvidia drivers without a issue.
dom0 Kernel: 4.4.31-11
Nvidia: 375.20
Kernel-module: compiled in dom0;
Quick Guide:
1. dom0: qubes-dom0-update install gcc devel-kernel ksmod linux-headers
2. appvm: download NVIDIA-Linux-375.20-install.run (any appvm)
3. dom0: qvm-run --pass-io <APPVM> 'cat /PATH/TO/NVIDIA.run' > NVIDIA.run
4. dom0: ./NVIDIA.run --ui=none --no-x-check --keep --extract-only
5: dom0: cp NVIDIA-*/kernel/; IGNORE_XEN_PRESENCE=y CC="gcc -DNV_VMAP_4_PRESENT -DNV_SIGNAL_STRUCT_RLIM" make module;
6: dom0: cp nvidia.ko /lib/modules/4.4.31-11.pvops.qubes.x86_64/extra/.
7: dom0: depmod -a; modinfo nvidia (all working will show up fine)
8: dom0: EDIT GRUB or EFI; add rd.driver.blacklist=nouveau
9: dom0; reboot and enjoy nvidia support.
additional: you can install nvidia extra apps etc.. if you so wish just run ./nvidia.run --no-kernel-module -a
Hopefully this will help those of you wanting Nvidia driver instead of Nouveau.
Please note this is a ruff write up and guide not a perfect solution, and assumptions are made that you are always fimilar enough with *nix operating systems to figure out that parts i've missed out or aint put in detail.
Thanks. Corrected a few typos / improved readability:
1. dom0: qubes-dom0-update gcc kernel-devel kmod kernel-headers; (qubes-dom0-update --enablerepo=qubes-dom0-unstable if using newer kernel)
2. appvm: download NVIDIA-Linux-375.20-install.run (any appvm)
3. dom0: qvm-run --pass-io <APPVM> 'cat /PATH/TO/NVIDIA.run' > NVIDIA.run; chmod +x NVIDIA.run;
4. dom0: ./NVIDIA.run --ui=none --no-x-check --keep --extract-only
5: dom0: cd NVIDIA-*/kernel/; make module IGNORE_XEN_PRESENCE=y CC="gcc -DNV_VMAP_4_PRESENT -DNV_SIGNAL_STRUCT_RLIM";
6: dom0: sudo cp nvidia.ko /lib/modules/4.4.31-11.pvops.qubes.x86_64/extra/.
7: dom0: sudo depmod -a; modinfo nvidia (all working will show up fine)
8: dom0: EDIT GRUB or EFI; add rd.driver.blacklist=nouveau (to kernel options)
9: dom0; reboot and enjoy nvidia support. (First boot will likely take a while.)
Thanks a lot!
I will try this out as soon as I gather some much needed bravery.
So far I have bought a new mobo (asus Hero VIII) and was getting some very ... curious behavior on it (making a writeup right now) that I was able to reproduce on a different box with same model of motherboard and CPU.
Frankly, I am very looking forward to using proprietary drivers and the GPU (IGFx on Skylake Core i7 is ... weird.)
Once again, thank you very much!
Attempt to extract the driver results in "extraction failed TERMINATED"
No further info.
Where do I go from here ?
Found out the reason - had too little free space out there in dom0 land (dumb nvidia installer could have at least said something about not having enough space in /tmp/). Built the module in a special folder I made in /var/... Installing now... wish me luck
Poor thing just stopped after I entered my LUKS password (I pressed escape to see if there are any errors there - nope), switched to a black screen and that's ... all.
Nothing more happens.
Should I like, wait more? It's been at least 10 minutes...
That's about as far as I got myself a month ago
Maybe some Xorg driver is needed or some other magic.
P.S.
Also, for me, despite all my efforts nouveau still was present and probed for some device or other during boot, and I'm very certain I've edited grub allright. I then created a blacklist.conf to "off nouveau for good" but that did not solve my weird lightdm issues.
Okay, this is indeed lightdm dying (also, xorg doesn't start, so I guess the reason for lightdm's death is that xorg is not starting)
I tried to install nvidia's xorg stuff by running:
./nvidia.run --no-kernel-module -a
the results ended up very dubious (xorg died again and rebooting with Intel graphics did not "resurrect" it)
Managed to restore "intel compatible" xorg.conf with some trial and error (note to self: Backups!) and am writing this from qubes running with IGfx.
Foppe de Haan, Mathew Evans, could you please share your xorg.confs for Nvidia driver ?
Did you run into a fatal xorg crash when trying to get xorg use nvidia driver?
If yes, how did you beat it?
I get a "Failed to allocate sofware rendering cache surface: out of memory" error which, according to Google, is pretty damn bad
https://www.google.se/search?q=NVIDIA+xorg+Failed+to+allocate+sofware+rendering+cache+surface:+out+of+memory.
Full log of my Xorg's sad demise when using Nvidia driver
P.S.:
If I may ask, what nvidia card are you using?
I got (to) the same (point). Have not managed to get it to work so far. Same error, too, though I got multiple (depending on how I tried to initialize X). gtx 950.
I hope Mathew Evans has the secret (he said he is running the driver "without an issue" ... (intense finger crossing)
Having the same issue. It's very clear that NVIDIA is not supporting Xen according to this chat https://devtalk.nvidia.com/default/topic/691565/linux/geforce-driver-problem-on-centos-6-4-with-xen-installed/2/?offset=26#5197554