Skip site navigation (1)Skip section navigation (2)


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

--->This is all correct except you shouldn't edit files under
/usr/local/share. Instead you should create a new config file in
/usr/local/etc and override values you want there.

I'm not sure if I have understood well,but what I've just done has been to
create the following files under /usr/local/etc,please correct me if I'm
wrong...

$ cat /usr/local/etc/20-intel-outputclass.conf
Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915kms"
    Driver "modesetting"
    Option "PrimaryGPU" "yes"
EndSection

$ cat /usr/local/etc/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

Have I missed anything ? thanks.

On Thu, Nov 14, 2024 at 5:03=E2=80=AFPM Mario Marietto <marietto2008@gmail.=
com>
wrote:

> ok. So you're telling me that there is a bug to fix and not an error
> within my configuration settings.  I don't know if this info is useful fo=
r
> you,but KDE 6 under wayland crashes totally everytime I press in a random
> point of the screen with the right mouse button. So the crashes are not
> randomic.
>
> On Thu, Nov 14, 2024 at 4:10=E2=80=AFPM Gleb Popov <arrowd@freebsd.org> w=
rote:
>
>> On Thu, Nov 14, 2024 at 5:37=E2=80=AFPM Mohammad Noureldin
>> <mohammad@thelightbird.com> wrote:
>> >
>> > 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 sha=
red
>> 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.
>> >
>>
>> This is all correct except you shouldn't edit files under
>> /usr/local/share. Instead you should create a new config file in
>> /usr/local/etc and override values you want there.
>>
>> Speaking of the consolekit problem, it tries to mimic systemd's login1
>> API, but it doesn't provide 100% compatibility yet. Some Wayland stuff
>> may call into that and bump into these incompatibilities. I'm slowly
>> working on consolekit in my free time, so maybe this will get fixed in
>> the near future.
>>
>>
>
> --
> Mario.
>


--=20
Mario.

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

<div dir=3D"ltr"><div>---&gt;This is all correct except you shouldn&#39;t e=
dit files under /usr/local/share. Instead you should create a new config fi=
le in
/usr/local/etc and override values you want there.</div><div><br></div><div=
>I&#39;m not sure if I have understood well,but what I&#39;ve just done has=
 been to create the following files under /usr/local/etc,please correct me =
if I&#39;m wrong...</div><div><br></div><div><div>$ cat /usr/local/etc/20-i=
ntel-outputclass.conf<br>Section &quot;OutputClass&quot;<br>=C2=A0 =C2=A0 I=
dentifier &quot;intel&quot;<br>=C2=A0 =C2=A0 MatchDriver &quot;i915kms&quot=
;<br>=C2=A0 =C2=A0 Driver &quot;modesetting&quot;<br>=C2=A0 =C2=A0 Option &=
quot;PrimaryGPU&quot; &quot;yes&quot;<br>EndSection</div><div><br></div><di=
v>$ cat /usr/local/etc/20-nvidia-drm-outputclass.conf<br>Section &quot;Outp=
utClass&quot;<br>=C2=A0 =C2=A0 Identifier &quot;nvidia&quot;<br>=C2=A0 =C2=
=A0 MatchDriver &quot;nvidia-drm&quot;<br>=C2=A0 =C2=A0 Driver &quot;nvidia=
&quot;<br>=C2=A0 =C2=A0 ModulePath &quot;/usr/local/lib/nvidia/xorg&quot;<b=
r>=C2=A0 =C2=A0 ModulePath &quot;/usr/local/lib/xorg/modules&quot;<br>EndSe=
ction</div><div><br></div><div>Have I missed anything ? thanks.<br></div></=
div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_at=
tr">On Thu, Nov 14, 2024 at 5:03=E2=80=AFPM Mario Marietto &lt;<a href=3D"m=
ailto:marietto2008@gmail.com">marietto2008@gmail.com</a>&gt; wrote:<br></di=
v><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;borde=
r-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">ok. So=
 you&#39;re telling me that there is a bug to fix and not an error within m=
y configuration settings.=C2=A0 I don&#39;t know if this info is useful for=
 you,but KDE 6 under wayland crashes totally everytime I press in a random =
point of the screen with the right mouse button. So the crashes are not ran=
domic.<br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gm=
ail_attr">On Thu, Nov 14, 2024 at 4:10=E2=80=AFPM Gleb Popov &lt;<a href=3D=
"mailto:arrowd@freebsd.org" target=3D"_blank">arrowd@freebsd.org</a>&gt; wr=
ote:<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">On Thu, Nov=
 14, 2024 at 5:37=E2=80=AFPM Mohammad Noureldin<br>
&lt;<a href=3D"mailto:mohammad@thelightbird.com" target=3D"_blank">mohammad=
@thelightbird.com</a>&gt; wrote:<br>
&gt;<br>
&gt; This is the whole idea behind auto-configuration, that you don&#39;t n=
eed this anymore. When you follow the explanations from the article I&#39;v=
e shared in my previous email, you should end up with configurations simila=
r to these:<br>
&gt;<br>
&gt; $ cat /usr/local/share/X11/xorg.conf.d/20-intel-outputclass.conf<br>
&gt; Section &quot;OutputClass&quot;<br>
&gt;=C2=A0 =C2=A0 =C2=A0Identifier &quot;intel&quot;<br>
&gt;=C2=A0 =C2=A0 =C2=A0MatchDriver &quot;i915kms&quot;<br>
&gt;=C2=A0 =C2=A0 =C2=A0Driver &quot;modesetting&quot;<br>
&gt;=C2=A0 =C2=A0 =C2=A0Option &quot;PrimaryGPU&quot; &quot;yes&quot;<br>
&gt; EndSection<br>
&gt;<br>
&gt; $ cat /usr/local/share/X11/xorg.conf.d/20-nvidia-drm-outputclass.conf<=
br>
&gt; Section &quot;OutputClass&quot;<br>
&gt;=C2=A0 =C2=A0 =C2=A0Identifier &quot;nvidia&quot;<br>
&gt;=C2=A0 =C2=A0 =C2=A0MatchDriver &quot;nvidia-drm&quot;<br>
&gt;=C2=A0 =C2=A0 =C2=A0Driver &quot;nvidia&quot;<br>
&gt;=C2=A0 =C2=A0 =C2=A0ModulePath &quot;/usr/local/lib/nvidia/xorg&quot;<b=
r>
&gt;=C2=A0 =C2=A0 =C2=A0ModulePath &quot;/usr/local/lib/xorg/modules&quot;<=
br>
&gt; EndSection<br>
&gt;<br>
&gt; In this case I have set the iGPU, from Intel, as the Primary GPU.<br>
&gt;<br>
<br>
This is all correct except you shouldn&#39;t edit files under<br>
/usr/local/share. Instead you should create a new config file in<br>
/usr/local/etc and override values you want there.<br>
<br>
Speaking of the consolekit problem, it tries to mimic systemd&#39;s login1<=
br>
API, but it doesn&#39;t provide 100% compatibility yet. Some Wayland stuff<=
br>
may call into that and bump into these incompatibilities. I&#39;m slowly<br=
>
working on consolekit in my free time, so maybe this will get fixed in<br>
the near future.<br>
<br>
</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">Ma=
rio.<br></div>

--000000000000cd1a1b0626e1c3a5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>