Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 May 2023 11:10:23 +0200
From:      Mario Marietto <marietto2008@gmail.com>
To:        Theron <theron.tarigo@gmail.com>
Cc:        freebsd-hackers <freebsd-hackers@freebsd.org>
Subject:   Re: How to blacklist the nouveau driver on FreeBSD....
Message-ID:  <CA%2B1FSihEwaq2jDsrPrd-65-44gMB_6YLhQBFw3AtMBp7ebKusQ@mail.gmail.com>
In-Reply-To: <46f1653a-89ba-6df3-6e3a-bd4a6c692be1@gmail.com>
References:  <CA%2B1FSii7cX_pdvi_mioAist1tps-mOCyRPw-Gy-mZ-u-8YH1pQ@mail.gmail.com> <46f1653a-89ba-6df3-6e3a-bd4a6c692be1@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000b4157f05fc80fffc
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Smplayer behaves the same as blender. I think this is a general behavior.
Check below what happens when I run it within the linuxulator :

root@marietto:/mnt/zroot2/zroot2 # chroot /compat/ubuntulunar /bin/bash

root@marietto:/# smplayer

QStandardPaths: error creating runtime directory '/var/run/user/1001' (No
such file or directory)
This is SMPlayer v. 22.7.0 (revision 10091) running on Linux
libGL error: glx: failed to create dri2 screen
*libGL error: failed to load driver: nouveau*



On Thu, May 25, 2023 at 2:56=E2=80=AFAM Theron <theron.tarigo@gmail.com> wr=
ote:

> On 5/24/23 04:43, Mario Marietto wrote:
> > since the nouveau driver can't be blacklisted within the Linuxulator
> > because it's impossible to run "sudo update-initramfs -u" inside of
> > it. For this reason,I would ask if in your opinion the nouveau driver
> > can be blacklisted directly in FreeBSD or in some other way. Thanks.
> >
> FreeBSD does not contain the nouveau kernel module so there is nothing
> to blacklist.
>
> > He says that he created a Python script for updating Nvidia drivers on
> > CentOS 7 and Ubuntu. That's nice,but it can't work. Why ? please give
> > a look to an old post created by me some time ago and you will see :
> >
> >
> https://www.reddit.com/r/freebsd/comments/11431bi/how_to_blacklist_the_no=
uveau_driver_within_the/
> >
> These libGL errors are from Mesa libGL, which is trying to use the
> userspace part of nouveau (which is part of the Mesa project),
> presumably based on Nvidia GPU's PCI ID being known to Mesa, despite
> there being no nouveau kernel interface available.
>
> Since you are trying to use Nvidia's binary driver (the only one which
> works on FreeBSD), Blender should have never loaded Mesa's libGL in the
> first place - there is most likely a configuration problem here with
> libglvnd, the component responsible for choosing the correct libGL
> implementation.
>
> When Blender fails to detect CUDA this has nothing to do with libGL and
> absolutely nothing to do with nouveau - have you found any other CUDA
> program to work in linux compat?
>
> Theron
>


--=20
Mario.

--000000000000b4157f05fc80fffc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Smplayer behaves the same as blender. I think this is=
 a general behavior. Check below what happens when I run it within the linu=
xulator :<br></div><div><br></div><div><span style=3D"color:rgb(0,0,0);back=
ground-color:rgb(255,255,255);font-family:arial,sans-serif">root@marietto:/=
mnt/zroot2/zroot2 # chroot /compat/ubuntulunar /bin/bash</span></div><div><=
span style=3D"font-family:arial,sans-serif"><br>root@marietto:/# smplayer=
=C2=A0</span></div><div><span style=3D"font-family:arial,sans-serif"><br></=
span></div><div><span style=3D"font-family:arial,sans-serif">QStandardPaths=
: error creating runtime directory &#39;/var/run/user/1001&#39; (No such fi=
le or directory)
<br>This is SMPlayer v. 22.7.0 (revision 10091) running on Linux
<br>libGL error: glx: failed to create dri2 screen
<br><b>libGL error: failed to load driver: nouveau</b></span><span style=3D=
"font-family:monospace"><br></span></div><div><span style=3D"font-family:mo=
nospace"><br></span></div><div><span style=3D"font-family:monospace"><br></=
span></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"g=
mail_attr">On Thu, May 25, 2023 at 2:56=E2=80=AFAM Theron &lt;<a href=3D"ma=
ilto:theron.tarigo@gmail.com">theron.tarigo@gmail.com</a>&gt; wrote:<br></d=
iv><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bord=
er-left:1px solid rgb(204,204,204);padding-left:1ex">On 5/24/23 04:43, Mari=
o Marietto wrote:<br>
&gt; since the nouveau driver can&#39;t be blacklisted within the Linuxulat=
or <br>
&gt; because it&#39;s impossible to run &quot;sudo update-initramfs -u&quot=
; inside of <br>
&gt; it. For this reason,I would ask if in your opinion the nouveau driver =
<br>
&gt; can be blacklisted directly in FreeBSD or in some other way. Thanks.<b=
r>
&gt;<br>
FreeBSD does not contain the nouveau kernel module so there is nothing <br>
to blacklist.<br>
<br>
&gt; He says that he created a Python script for updating Nvidia drivers on=
 <br>
&gt; CentOS 7 and Ubuntu. That&#39;s nice,but it can&#39;t work. Why ? plea=
se give <br>
&gt; a look to an old post created by me some time ago and you will see :<b=
r>
&gt;<br>
&gt; <a href=3D"https://www.reddit.com/r/freebsd/comments/11431bi/how_to_bl=
acklist_the_nouveau_driver_within_the/" rel=3D"noreferrer" target=3D"_blank=
">https://www.reddit.com/r/freebsd/comments/11431bi/how_to_blacklist_the_no=
uveau_driver_within_the/</a><br>
&gt;<br>
These libGL errors are from Mesa libGL, which is trying to use the <br>
userspace part of nouveau (which is part of the Mesa project), <br>
presumably based on Nvidia GPU&#39;s PCI ID being known to Mesa, despite <b=
r>
there being no nouveau kernel interface available.<br>
<br>
Since you are trying to use Nvidia&#39;s binary driver (the only one which =
<br>
works on FreeBSD), Blender should have never loaded Mesa&#39;s libGL in the=
 <br>
first place - there is most likely a configuration problem here with <br>
libglvnd, the component responsible for choosing the correct libGL <br>
implementation.<br>
<br>
When Blender fails to detect CUDA this has nothing to do with libGL and <br=
>
absolutely nothing to do with nouveau - have you found any other CUDA <br>
program to work in linux compat?<br>
<br>
Theron<br>
</blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Mario.<br></d=
iv>

--000000000000b4157f05fc80fffc--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSihEwaq2jDsrPrd-65-44gMB_6YLhQBFw3AtMBp7ebKusQ>