nvidia module without nvidia card

Oliver Grawert ogra at ubuntu.com
Wed Sep 5 09:55:18 UTC 2018


hi,
Am Dienstag, den 04.09.2018, 09:04 +0200 schrieb Christoph Pleger:
...
> PS: Before someone asks why I do not just simply remove the nvidia 
> packages, that is because I want to create a generic package list
> that 
> also supports computers WITH nvidia graphics hardware.

you will likely run into another issue when shipping the nvidia driver
... it actually replaces all the GL/GLES libraries with its own:

$ ls -l /etc/alternatives/|grep gl_
lrwxrwxrwx 1 root root  34 Okt 24  2017 i386-linux-gnu_egl_conf ->
/usr/lib/nvidia-384/alt_ld.so.conf
lrwxrwxrwx 1 root root  34 Okt 24  2017 i386-linux-gnu_gl_conf ->
/usr/lib/nvidia-384/alt_ld.so.conf
lrwxrwxrwx 1 root root  30 Okt 24  2017 x86_64-linux-gnu_egl_conf ->
/usr/lib/nvidia-384/ld.so.conf
lrwxrwxrwx 1 root root  30 Jul  7 12:18 x86_64-linux-gnu_gl_conf ->
/usr/lib/nvidia-384/ld.so.conf

you might need some hackery here to adjust the alternatives dynamically
based on if there is a nvidia card in the system or not ...

you might want to take a look at the postinst/postrm scripts of the
nvidia package how they are set/unset

ciao
	oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20180905/c4e1d647/attachment.sig>


More information about the ubuntu-users mailing list