Date: Thu, 14 Nov 2024 16:39:45 +0100 From: Mohammad Noureldin <mohammad@thelightbird.com> To: Mario Marietto <marietto2008@gmail.com> Cc: freebsd-desktop@freebsd.org, FreeBSD Mailing List <freebsd-questions@freebsd.org>, Jan Beich <jbeich@freebsd.org> Subject: Re: console-kit-daemon[5142]: GLib-GIO-CRITICAL: g_dbus_message_new_signal: assertion 'g_variant_is_object_path (path)' failed Message-ID: <CAAQ96DxEGUqUVSWXuZuczDpfPUV9xORQH4vXZYjUpZFuB1t-dQ@mail.gmail.com> In-Reply-To: <CA%2B1FSiikp%2BGDUEqziQX=_Oz=NMMRfZ4iJZnRa0t=kpEpU%2B0JcA@mail.gmail.com> References: <CA%2B1FSig=N4omX0KTWuCmTYOzYvpVk7de1xqZT6DvWLwWaLcYtw@mail.gmail.com> <CAAQ96DzOR=WDYUwY_snvdtCdi2%2BFuuPmXXExh03XGTAWN9bvbw@mail.gmail.com> <CA%2B1FSiikp%2BGDUEqziQX=_Oz=NMMRfZ4iJZnRa0t=kpEpU%2B0JcA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000005b21c20626e0645f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Mario, On Thu, Nov 14, 2024 at 2:10=E2=80=AFPM Mario Marietto <marietto2008@gmail.= com> wrote: > ---> I am not sure if this is directly related, but this doesn't look lik= e > the recommended way to leverage the auto-configuration features in X serv= er > explained in [1] and especially in the context of having to work with > systems equipped with 2 GPU(s). > > Can you copy and paste here your xorg.conf file,please ? I didn't > understand if I should not use modesetting,but maybe driver "i915kms" ? o= r > maybe I should not create xorg.conf at all ? In this way I suppose waylan= d > will work,but if I want to use X,does it work even without xorg.conf ? I > have some doubts. > > Anyway my xorg.conf file has been generated automatically by Xorg > -configure > This is the whole idea behind auto-configuration, that you don't need this anymore. When you follow the explanations from the article I've shared in my previous email, you should end up with configurations similar to these: $ cat /usr/local/share/X11/xorg.conf.d/20-intel-outputclass.conf Section "OutputClass" Identifier "intel" MatchDriver "i915kms" Driver "modesetting" Option "PrimaryGPU" "yes" EndSection $ cat /usr/local/share/X11/xorg.conf.d/20-nvidia-drm-outputclass.conf Section "OutputClass" Identifier "nvidia" MatchDriver "nvidia-drm" Driver "nvidia" ModulePath "/usr/local/lib/nvidia/xorg" ModulePath "/usr/local/lib/xorg/modules" EndSection In this case I have set the iGPU, from Intel, as the Primary GPU. > ----> When it comes to graphics kernel modules, I only have i915kms and > nvidia-drm set in kld_list > > So,if you have nvidia-drm in kld_list,It means that you have installed th= e > nvidia-driver. Infact : > > [root@marietto /usr/home/marietto/Desktop]=3D=3D> pkg install > nvidia-drm-515-kmod > Updating FreeBSD repository catalogue... > FreeBSD repository is up to date. > All repositories are up to date. > The following 3 package(s) will be affected (of 0 checked): > > New packages to be INSTALLED: > nvidia-driver: 550.127.05 > nvidia-drm-515-kmod: 550.127.05_1 > This is what I have in my rc.conf: $ cat /etc/rc.conf <snip> kld_list=3D"i915kms nvidia-drm" <snip> Worth mentioning I do also have this set at the end of my .xinitrc: $ cat .xinitrc <snip> # PRIME configuration xrandr --setprovideroutputsource modesetting NVIDIA-0 xrandr --auto exec /usr/local/bin/i3 > On Thu, Nov 14, 2024 at 1:44=E2=80=AFPM Mohammad Noureldin < > mohammad@thelightbird.com> wrote: > >> Hi Mario, >> >> On Thu, Nov 14, 2024 at 11:45=E2=80=AFAM Mario Marietto <marietto2008@gm= ail.com> >> wrote: >> >>> Hello bro. >>> >>> <snip> > > > -- > Mario. > --=20 Thanks - Mohammad Noureldin -- "Life is like riding a bicycle. To keep your balance you must keep moving" - Albert Einstein --0000000000005b21c20626e0645f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr">Hi Mari= o,<br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_= attr">On Thu, Nov 14, 2024 at 2:10=E2=80=AFPM Mario Marietto <<a href=3D= "mailto:marietto2008@gmail.com" target=3D"_blank">marietto2008@gmail.com</a= >> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px= 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><di= v dir=3D"ltr"><div><div><div>---> I am not sure if this is directly rela= ted, but this doesn't look=20 like the recommended way to leverage the auto-configuration features in X server explained in [1] and especially in the context of having to work=20 with systems equipped with 2 GPU(s).</div><div><br></div><div>Can you copy = and paste here your xorg.conf file,please ? I didn't understand if I sh= ould not use modesetting,but maybe driver "i915kms" ? or maybe I = should not create xorg.conf at all ? In this way I suppose wayland will wor= k,but if I want to use X,does it work even without xorg.conf ? I have some = doubts.<br></div><div><br></div><div>Anyway my xorg.conf file has been gene= rated automatically by Xorg -configure<br></div></div></div></div></blockqu= ote><div><br></div><div>This is the whole idea behind auto-configuration, t= hat you don't need this anymore. When you follow the explanations from = the article I've shared in my previous email, you should end up with co= nfigurations similar to these:</div><div><br></div><div>$ cat /usr/local/sh= are/X11/xorg.conf.d/20-intel-outputclass.conf<br>Section "OutputClass&= quot;<br>=C2=A0 =C2=A0 Identifier "intel"<br>=C2=A0 =C2=A0 MatchD= river "i915kms"<br>=C2=A0 =C2=A0 Driver "modesetting"<b= r>=C2=A0 =C2=A0 Option "PrimaryGPU" "yes"<br>EndSection= </div><div><br></div><div>$ cat /usr/local/share/X11/xorg.conf.d/20-nvidia-= drm-outputclass.conf<br>Section "OutputClass"<br>=C2=A0 =C2=A0 Id= entifier "nvidia"<br>=C2=A0 =C2=A0 MatchDriver "nvidia-drm&q= uot;<br>=C2=A0 =C2=A0 Driver "nvidia"<br>=C2=A0 =C2=A0 ModulePath= "/usr/local/lib/nvidia/xorg"<br>=C2=A0 =C2=A0 ModulePath "/= usr/local/lib/xorg/modules"<br>EndSection</div><div><br></div><div>In = this case I have set the iGPU, from Intel, as the Primary GPU.<br></div><di= v><br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0= .8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"l= tr"><div><div><div></div><div><br></div></div><div>----> When it comes t= o graphics kernel modules, I only have i915kms and nvidia-drm set in kld_li= st</div></div><div><br></div><div>So,if you have nvidia-drm in kld_list,It = means that you have installed the nvidia-driver. Infact :<br></div><div><br= ></div><div>[root@marietto /usr/home/marietto/Desktop]=3D=3D> pkg instal= l nvidia-drm-515-kmod</div>Updating FreeBSD repository catalogue...<br>Free= BSD repository is up to date.<br>All repositories are up to date.<br>The fo= llowing 3 package(s) will be affected (of 0 checked):<br><br>New packages t= o be INSTALLED:<br> nvidia-driver: 550.127.05<br> nvidia-drm-515-kmod: 550.= 127.05_1<br></div></blockquote><div><br></div><div>This is what I have in m= y rc.conf:</div><div><div>$ cat /etc/rc.conf</div><div><snip></div><d= iv>kld_list=3D"i915kms nvidia-drm"</div><div><snip><br></di= v><div>=C2=A0</div><div>Worth mentioning I do also have this set at the end= of my .xinitrc:</div><div><br></div><div>$ cat .xinitrc</div><div><snip= ></div><div># PRIME configuration<br>xrandr --setprovideroutputsource mo= desetting NVIDIA-0<br>xrandr --auto<br><br>exec /usr/local/bin/i3</div><div= ><br></div></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px = 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir= =3D"ltr"></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gma= il_attr">On Thu, Nov 14, 2024 at 1:44=E2=80=AFPM Mohammad Noureldin <<a = href=3D"mailto:mohammad@thelightbird.com" target=3D"_blank">mohammad@thelig= htbird.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex"><div dir=3D"ltr"><div>Hi Mario,</div><br><div class=3D"gmail_quo= te"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Nov 14, 2024 at 11:45=E2= =80=AFAM Mario Marietto <<a href=3D"mailto:marietto2008@gmail.com" targe= t=3D"_blank">marietto2008@gmail.com</a>> wrote:<br></div><blockquote cla= ss=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid = rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>Hello bro.<br> <br></div></div></blockquote></div></div></blockquote></div></blockquote><d= iv><br></div><div><snip><br></div><div>=C2=A0</div><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex"><div class=3D"gmail_quote"><blockquote cla= ss=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid = rgb(204,204,204);padding-left:1ex"> </blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si= gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Ma= rio.<br></div> </blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si= gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d= iv dir=3D"ltr"><div><div dir=3D"ltr" style=3D"color:rgb(136,136,136)">Thank= s<br>- Mohammad Noureldin<br>--<br>"Life is like riding a bicycle. To = keep your balance you must keep moving"<br>- Albert Einstein</div></di= v><div dir=3D"ltr" style=3D"color:rgb(136,136,136)"><br></div></div></div><= /div></div> </div> --0000000000005b21c20626e0645f--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAQ96DxEGUqUVSWXuZuczDpfPUV9xORQH4vXZYjUpZFuB1t-dQ>