From nobody Fri Nov 15 20:02:05 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xqnwz1zl6z5dWcD; Fri, 15 Nov 2024 20:02:11 +0000 (UTC) (envelope-from sysadmin.lists@mailfence.com) Received: from wilbur.contactoffice.com (wilbur.contactoffice.com [212.3.242.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xqnwy0RwBz4bxw; Fri, 15 Nov 2024 20:02:09 +0000 (UTC) (envelope-from sysadmin.lists@mailfence.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mailfence.com header.s=20240605-akrp header.b=NE14OwAU; spf=pass (mx1.freebsd.org: domain of sysadmin.lists@mailfence.com designates 212.3.242.68 as permitted sender) smtp.mailfrom=sysadmin.lists@mailfence.com; dmarc=pass (policy=reject) header.from=mailfence.com Received: from fidget.co-bxl (fidget.co-bxl [10.2.0.33]) by wilbur.contactoffice.com (Postfix) with ESMTP id 5FF7A4C96; Fri, 15 Nov 2024 21:02:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1731700927; s=20240605-akrp; d=mailfence.com; i=sysadmin.lists@mailfence.com; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type; bh=OfSh8tlyTzJ1ZlAbQ07VF+tSeq8GeITKWFJY09RfPHQ=; b=NE14OwAUyoCFz0YiLfvGtEQD8ld2mp7N4JSzm6YyEunkaVsFVLX4j9Z9ps+Ws0nu 02pDe6vk/QjxVett7sXY8i46KXYx+gqK3U9lICcWekOSTujiH4Upka4kbMvZri2Ijok ieGRbIcbMIA5KSqXeeMULqnyf8PyttLaJ+dKyNOGEmMy8A7ECxyk9wz7JGiqu3Qby4S EZyJRvYoEnFaydFyv1U6NUwOBvyxfzD5bdn1bV0i5liOtknMpIE4cNgvmzmMNUy7xau DYAfXIhxSlemlGMRTo3ChVYihLOfm14sfOjio1ebmsvkTvzay77uhpLuOKf0FwZBnhO Kl3Jl2x2oQ== Date: Fri, 15 Nov 2024 21:02:05 +0100 (CET) From: Sysadmin Lists To: FreeBSD Mailing List , freebsd-desktop@freebsd.org Cc: Mario Marietto Message-ID: <1570570420.386853.1731700924991@fidget.co-bxl> In-Reply-To: References: Subject: Re: console-kit-daemon[5142]: GLib-GIO-CRITICAL: g_dbus_message_new_signal: assertion 'g_variant_is_object_path (path)' failed List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_386851_382563006.1731700924990" X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:312482426 X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[mailfence.com,reject]; R_SPF_ALLOW(-0.20)[+ip4:212.3.242.64/26]; R_DKIM_ALLOW(-0.20)[mailfence.com:s=20240605-akrp]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ONCE_RECEIVED(0.10)[]; RCVD_IN_DNSWL_LOW(-0.10)[212.3.242.68:from]; XM_UA_NO_VERSION(0.01)[]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:203, ipnet:212.3.242.64/26, country:US]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[gmail.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MLMMJ_DEST(0.00)[freebsd-desktop@freebsd.org,freebsd-questions@freebsd.org]; DKIM_TRACE(0.00)[mailfence.com:+] X-Rspamd-Queue-Id: 4Xqnwy0RwBz4bxw X-Spamd-Bar: --- ------=_Part_386851_382563006.1731700924990 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I think he means like this: cd /usr/local/share/X11/xorg.conf.d/ cp 20-intel-outputclass.conf /usr/local/etc/X11/xorg.conf.d/ cp 20-nvidia-drm-outputclass.conf /usr/local/etc/X11/xorg.conf.d/ And then edit thse files inside /usr/local/etc/X11/xorg.conf.d/ On Nov 14, 2024 at 8:15 AM, Mario Marietto wrote: --->This is all correct except you shouldn't edit files under /usr/local/sh= are. Instead you should create a new config file in/usr/local/etc and overr= ide 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 wr= ong... $ cat /usr/local/etc/20-intel-outputclass.conf Section "OutputClass" =C2=A0 =C2=A0 Identifier "intel" =C2=A0 =C2=A0 MatchDriver "i915kms" =C2=A0 =C2=A0 Driver "modesetting" =C2=A0 =C2=A0 Option "PrimaryGPU" "yes" EndSection $ cat /usr/local/etc/20-nvidia-drm-outputclass.conf Section "OutputClass" =C2=A0 =C2=A0 Identifier "nvidia" =C2=A0 =C2=A0 MatchDriver "nvidia-drm" =C2=A0 =C2=A0 Driver "nvidia" =C2=A0 =C2=A0 ModulePath "/usr/local/lib/nvidia/xorg" =C2=A0 =C2=A0 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 wrote: ok. So you're telling me that there is a bug to fix and not an error within= my configuration settings.=C2=A0 I don't know if this info is useful for y= ou,but KDE 6 under wayland crashes totally everytime I press in a random po= int of the screen with the right mouse button. So the crashes are not rando= mic. On Thu, Nov 14, 2024 at 4:10=E2=80=AFPM Gleb Popov wro= te: On Thu, Nov 14, 2024 at 5:37=E2=80=AFPM Mohammad Noureldin wrote: > > This is the whole idea behind auto-configuration, that you don't need thi= s 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" >=C2=A0 =C2=A0 =C2=A0Identifier "intel" >=C2=A0 =C2=A0 =C2=A0MatchDriver "i915kms" >=C2=A0 =C2=A0 =C2=A0Driver "modesetting" >=C2=A0 =C2=A0 =C2=A0Option "PrimaryGPU" "yes" > EndSection > > $ cat /usr/local/share/X11/xorg.conf.d/20-nvidia-drm-outputclass.conf > Section "OutputClass" >=C2=A0 =C2=A0 =C2=A0Identifier "nvidia" >=C2=A0 =C2=A0 =C2=A0MatchDriver "nvidia-drm" >=C2=A0 =C2=A0 =C2=A0Driver "nvidia" >=C2=A0 =C2=A0 =C2=A0ModulePath "/usr/local/lib/nvidia/xorg" >=C2=A0 =C2=A0 =C2=A0ModulePath "/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. --=20 Mario. --=20 Mario. --=20 Sent with https://mailfence.com =20 Secure and private email ------=_Part_386851_382563006.1731700924990 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=
I think he means like this:

cd /usr/local/share/X11= /xorg.conf.d/
cp 20-intel-outputclass.conf /usr/local/etc/X1= 1/xorg.conf.d/
cp 20-nvidia-drm-outputclass.conf /usr/local/etc/X= 11/xorg.conf.d/

And then edit thse files inside /u= sr/local/etc/X11/xorg.conf.d/

On Nov 14, 2024 at 8= :15 AM, Mario Marietto <marietto2008@gmail.com> wrote:
">
--->This is all correct except you s= houldn'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 w= rong...

$ cat /usr/local/etc/20-intel-outputc= lass.conf
Section "OutputClass"
    Identifier "intel"
&= nbsp;   MatchDriver "i915kms"
    Driver "modesetting"    Option "PrimaryGPU" "yes"
EndSection

=
$ cat /usr/local/etc/20-nvidia-drm-outputclass.conf
Section "Output= Class"
    Identifier "nvidia"
    MatchDriver "n= vidia-drm"
    Driver "nvidia"
    ModulePath "/u= sr/local/lib/nvidia/xorg"
    ModulePath "/usr/local/lib/xorg/= modules"
EndSection

Have I missed anything ? th= anks.

= 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 set= tings.  I don't know if this info is useful for you,but KDE 6 under wa= yland crashes totally everytime I press in a random point of the screen wit= h 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> wrote:
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 shared= in my previous email, you should end up with configurations similar to the= se:
>
> $ 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<= br> > 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.


--
Mario.


--
Sent with http= s://mailfence.com
Secure and private email
------=_Part_386851_382563006.1731700924990--