Trying to install Nvidia Driver

64 views
Skip to first unread message

Aly Abdellatif

unread,
Feb 3, 2019, 8:07:05 AM2/3/19
to qubes-users
Hi everyone,

I'm actually using Qubes 4.0.1 on my Lenovo Thinkpad p52 in UEFI.
To make it work I had to disable nouveau in the xen.cfg
Now I'm trying to install NVIDIA Driver and I have several errors.

I'm following https://www.qubes-os.org/doc/install-nvidia-driver/

first I run ./NVIDIA-Linux-<MY VERSION for Quadra p2000>.run --ui=none --no-x-check --keep --no-nouveau-check --no-kernel-module.

I get an Installation interface and everything is fine.
I can ask for a Xorg.conf .

The problem is when I try to use "make" in NVIDIA/Kernels:

make IGNORE_XEN_PRESENCE=1 CC="gcc -DNV_VMAP_4_PRESENT -DNV_SIGNAL_STRUCT_RLIM"
I get this error :

"Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"

then when I try to install one of them libelf-dev, libelf-devel or elfutils-libelf-devel and I can only find elfutils-libelf-devel with(enablerepo=unstable)

When I execute again the "make"
after executing for several seconds : A lot of files are not found(object files -> *.o).

I read about the CONFIG_UNWINDER_ORC=y and that there's a way to make it work without the elfutils-libelf-devel by rebuilding the kernel with CONFIG_UNWINDER_FRAME_POINTER=y
But I don't know how and if it's a good idea.


Of course I tried to reboot with the Xorg.conf(nvidia-xconfig) but knowing that it will not work and after entering my luks password , I have a black screen so I can't log in into X, but I can login to a text console (press Ctrl-Alt-F2). So in the text console I uninstalled Nvidia and when I reboot it everything went to normal without Nvidia driver and of course with nouveau disabled(from the beginning).

P.S: the HDMI is connected to the NVDIA GPU so I can't use it.


Thanks in advance

Best Regards
Aly Abdellatif


Aly Abdellatif

unread,
Feb 3, 2019, 9:24:09 AM2/3/19
to qubes-users
What if I have a usb C to hdmi ?

I activated thunderbolt in the BIOS and the usb C works perfectly in sys-usb ,

On the otherhand hdmi is not recognized in sys-usb(xrandr). I tried to attach the PCI to dom0 but I didn't succeed.

I don't mind if it's possible to assign the usb c to an appvm and then the hdmi works for this appvm. I don't need to have the dom0 on another monitor , just an appvm will be perfect for me

Frédéric Pierret

unread,
Feb 3, 2019, 9:27:01 AM2/3/19
to Aly Abdellatif, qubes-users
Hi,

I already went through all these problems. Even with rebuilding the
kernel with the proper option, it leads to other problems related to Xen
itself.

While NVIDIA is not working on the problem of using their drivers under
Xen, it is currently impossible (about 6 months I tried again and again)
to make it working.

Frédéric
signature.asc

Aly Abdellatif

unread,
Feb 3, 2019, 9:52:52 AM2/3/19
to qubes-users
Thanks for your response @frederic


Did you manage to make nouveau work ? By default I don't have a xorg.conf so I don't know how to do it even when I close the X session and then in the text console I write Xorg --configure --> I have a seg fault error and the xorg.conf.new is not created.

Any idea to make the hdmi with an adapter(usb,usbC) work so it doesn't connect to nvidia ?

I need the hdmi only for an appvm so I don't mind if it doesn't work on dom0 .

P.S I forgot to mention : I'm on hybrid graphics

Best regards
Aly Abdellatif

Aly Abdellatif

unread,
Feb 3, 2019, 9:58:32 AM2/3/19
to qubes-users
Even When I disable sys-usb and all usb ports are in dom0(removing the usb-hide line in xen.cfg ) I can manage all my usbs in dom0 but unfortunately the usbC to HDMI adapter is not recognized(xrandr). The usbC adapter have also a usb2.0 and it worked so I know the probem is not in the adapter.

Frédéric Pierret

unread,
Feb 3, 2019, 10:49:16 AM2/3/19
to Aly Abdellatif, qubes-users
On 2/3/19 3:52 PM, Aly Abdellatif wrote:
> Thanks for your response @frederic
>
>
> Did you manage to make nouveau work ? By default I don't have a xorg.conf so I don't know how to do it even when I close the X session and then in the text console I write Xorg --configure --> I have a seg fault error and the xorg.conf.new is not created.

Nouveau "should" work but over a lot of recent laptops with hybrid
graphics with NVIDIA, I always have to disable it (in grub add at the
end of the line containing 'rhgb quiet',  'nouveau.modeset=0').
Normally, you don't need any xorg.conf.

> Any idea to make the hdmi with an adapter(usb,usbC) work so it doesn't connect to nvidia ?
I also tried to use an USB dock station with embedded HDMI port like
'IcyBox' but with sys-usb it is not possible. Without it, under a
classical Fedora, too much trouble with kernel module to load etc.
> I need the hdmi only for an appvm so I don't mind if it doesn't work on dom0 .

You could try GPU passthrough by attaching your discrete card to your VM
(there is a lot of topics on the qubes lists about it...good luck...)

I'm sorry for you that it is not easy. I had all these troubles and I
sold my previous laptop because I could not disable any GPU (integrated
or discrete), and my HDMI was only linked to my NVIDIA card. After
months of fighting, trying to debug upstream, building all the newer
kernels with related nouveau drivers commits, I just gave up and bought
a new one.

>
> P.S I forgot to mention : I'm on hybrid graphics
>
> Best regards
> Aly Abdellatif
>
Best,

Frédéric


signature.asc

Aly Abdellatif

unread,
Feb 3, 2019, 1:08:23 PM2/3/19
to qubes-users
Well like you said nouveau doesn't work for me on hybrid: After entering my luks password I have a blackscreen .

On discrete mode nouveau works(hdmi works too) but if I close the lid I have to force shutdown.

That's why I switched to hybrid with nouveau disabled.

Whenever I try to create a new xorg.conf(Xorg -configure after stoppin the X session I have an error.You will find attached the output of Xorg.0.log

This error is produced in Hybrid and Discrete mode


I think if I manage to create a proper Xorg.conf I will be able to have nouveau working in hybrid but I can't create one with Xorg -configure(attached image) and by default there isn't one in /etc/X11/

Best regards
Aly Abdellatif

Xorg0log.JPG
Reply all
Reply to author
Forward
0 new messages