From nobody Thu Nov 14 16:15:18 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 4Xq4yP61QRz5crTf; Thu, 14 Nov 2024 16:15:57 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xq4yN75bvz4pgn; Thu, 14 Nov 2024 16:15:56 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=V0lbRm+V; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::52f as permitted sender) smtp.mailfrom=marietto2008@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-7f8b37edeb7so673197a12.0; Thu, 14 Nov 2024 08:15:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731600955; x=1732205755; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LdSj3G0cuGCFbPWZAvn2AmLIM7zC0rJ7RQMI0GdwZy4=; b=V0lbRm+VY/s4tl4+gd/5OisHu5+PwPnPWNJdr7JokOJESx8PDY5xV/qq1R/kPubAC1 EWuTvsyehUKvDuNJX7cIFwglWzK1s6JYnLjinPy39SDaf6G3LkCF3XtJ8Brj5Ca8BUda nIPTT5onpCBD1svMvD7t12LA1nlwFj24HZhNvBG4/KTvDdr6Z7rol8e8kJx3mNldRfcK 0Hj+YnUQjvC82wEdxCjlNS4eECgWalc6Ao1EkSgfQAaLd9DCZ61oEONgMEp9GpZipng2 TBTy5YvM6qfuQmMrvMYEDHWE3ZtEg/wtIFNaZInjeAggPNCmKs7H4TGen3bf2GNnUqQy Oe/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731600955; x=1732205755; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LdSj3G0cuGCFbPWZAvn2AmLIM7zC0rJ7RQMI0GdwZy4=; b=kqDK6gS7WiZPIMV2yOMsWHpCvvef1QdT5SDm/Tsa0HExrCERb4ZfwI7HjerWamCOpD 8elD+zvc4FLagZKofuebYIJtNTHKJOVjK2N2uEf+Vhg0ZBkJHdd9qM/NvgWxoEQodvJH yx3CQ4mrbVDOsXCDpoZW86AYKD723EQdBWhDccYAblxcst5A0Fnjn3Te1OPojizKB24Z Oh4sQk3v/JZMdVU+U9S1ZHKONw10gHgxrH8JPWEJ8HxOuncaxCzqsWvBL4LJJxZ7+3Tw htfUC7womGvSPmlyHojKqQzKLQhVu9Rk77DHSd65YnI8e6E7348poSJM3WrPS//Wo6Av Ljkw== X-Forwarded-Encrypted: i=1; AJvYcCVM/AOxX33J/8b1LgjqQ/7oDMuIOnk1PTNVdLtPBaPNaG0IY3UhHvQld3pKtUtgu8lFf2b/Gw4gEW4BJAGgCPU=@freebsd.org, AJvYcCXxq8aecgQMTSCrbOOuuRMouxRmFkR71miSzqDfDzBAw8OfyWhELGMjtzmxcHJx0FaC+cWKcY5hFmaGT0JZJJ3F9uw=@freebsd.org X-Gm-Message-State: AOJu0YydI9Wcq8LXG4B5QsH+K1s694VMsyk0byS4tfGqbBeFWlGHOZ72 gBUnpAaAcMU0zCRwXUWbNQv/ntLxtV3gMK89fY9WW73bsPzGw/iEPI9ZWxGMkgOueYEtgjOY4AF dlBmpCvtnnXyIl3Gyz89XMw3i6M8yfG1WLxQ= X-Google-Smtp-Source: AGHT+IF80HyiCUlU6zHHGXzFOY1gRhlOKRHKw8yg9OvhUdAPqIvIwFtna+K3yrG31JuT05rw3D7aDHVJRArL7thZ8mU= X-Received: by 2002:a17:90b:3e8c:b0:2e0:cac6:15f7 with SMTP id 98e67ed59e1d1-2e9e4930710mr14760773a91.0.1731600954757; Thu, 14 Nov 2024 08:15:54 -0800 (PST) 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 References: In-Reply-To: From: Mario Marietto Date: Thu, 14 Nov 2024 17:15:18 +0100 Message-ID: Subject: Re: console-kit-daemon[5142]: GLib-GIO-CRITICAL: g_dbus_message_new_signal: assertion 'g_variant_is_object_path (path)' failed To: Gleb Popov Cc: Mohammad Noureldin , freebsd-desktop@freebsd.org, FreeBSD Mailing List Content-Type: multipart/alternative; boundary="000000000000cd1a1b0626e1c3a5" X-Spamd-Result: default: False [-3.87 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.87)[-0.871]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::52f:from]; MLMMJ_DEST(0.00)[freebsd-desktop@freebsd.org,freebsd-questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+] X-Rspamd-Queue-Id: 4Xq4yN75bvz4pgn X-Spamd-Bar: --- --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 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 w= rote: > >> 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 >> 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
--->This is all correct except you shouldn'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.

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-i= ntel-outputclass.conf
Section "OutputClass"
=C2=A0 =C2=A0 I= dentifier "intel"
=C2=A0 =C2=A0 MatchDriver "i915kms"= ;
=C2=A0 =C2=A0 Driver "modesetting"
=C2=A0 =C2=A0 Option &= quot;PrimaryGPU" "yes"
EndSection

$ cat /usr/local/etc/20-nvidia-drm-outputclass.conf
Section "Outp= utClass"
=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"
EndSe= ction

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 m= y configuration settings.=C2=A0 I don'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.

On Thu, Nov 14, 2024 at 4:10=E2=80=AFPM Gleb Popov <arrowd@freebsd.org> wr= ote:
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 n= eed this anymore. When you follow the explanations from the article I'v= e shared in my previous email, you should end up with configurations simila= r 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<= br> > 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"<= br> > 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<= br> API, but it doesn't provide 100% compatibility yet. Some Wayland stuff<= br> 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.



--
Ma= rio.


--
Ma= rio.
--000000000000cd1a1b0626e1c3a5--