From nobody Thu Nov 14 16:21: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 4Xq5536vx4z5crtp; Thu, 14 Nov 2024 16:21:43 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) (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 4Xq55272qZz4qw3; Thu, 14 Nov 2024 16:21:42 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-7ea8c4ce232so794549a12.0; Thu, 14 Nov 2024 08:21:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731601302; x=1732206102; 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=1QmLtwOoydG4L074CF90symAqYg6da85EbPIcqEZwto=; b=BcdUzdLzVES11Jz92r45b0O7MB5lPhtnV56C3UXbYuZy26gqrNY4XmGX5ImxHTmp4Y wJS9ozQ54cs+kbp65IobkuFjOr1gywgvTMIv4R4WNs4jxpyYs5HiSLglxjlYBCzrtp1h 2kvmAlqWqqpkakItrXQoNumzVuBVsaTmOLuY2jt7z36v3EqKgufRo46QBi2T9AHEmHYV Tc/SgPJIqOoGy0XaPHx0uVP0i41vwzHj+goTPJtLYFB/ZmgjOSYIhfHXPtkJdoNgbCd5 dDbFanhpeFdvO4dLYFLOnkLWZ7FCMXg/NT1Wp9eweM95jt/oMD6q60qZNHFEWhlejTZT uwpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731601302; x=1732206102; 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=1QmLtwOoydG4L074CF90symAqYg6da85EbPIcqEZwto=; b=NdIN4H0WwsETjiEIwUmr8iLzWQcAzzD1q885BySQKENw9XqHDMRxNdt5RbPg0sFSz6 PFx3TqUxpCdj5dECprk6GOXzyhgP9RRRBylD37xIWKysunIjz9MTzFV/lEaaQHb2vxl/ EddNvETYGaSAgD/HqZw6QKbDe62dwht44oCfzAyLYtMTaRHIqVJw0RjO0phK1qgiTIDq 5wrpuj1DX79CLrhwP35wK8XXMxrwmjtRZ0VCXj+4l+7Zs0NKBebk+idCQxArXlCS4hRi te8Wq2NXe44vJ+3Ktv2EahJhwSYJqvwxBd7xjw8aXDOrawbXog2fjtBN8SpbUOL053Tk pOkQ== X-Forwarded-Encrypted: i=1; AJvYcCVUi942u/0e3V17i9O+5sxAz8JBzVdF9r8K0E1pFEl7bxZ9BbJEuOPT7bF7CU5TQupbXA97kbr9@freebsd.org, AJvYcCVtCike5tGAPVnrrebQJpQYYMUX6Y6QPpvRzShHV4ckyrLbfP0OtDizvELGpaRLS38NvZE9f+sRHR/+P5LUQF1uTw==@freebsd.org X-Gm-Message-State: AOJu0YzCAD93obox1psdKmgtxvpKRUK1hoP6aYOn401u3qPK9ZeuTMrF 21smBBI44RMYIUU/9rgRcK48/dGhDUboVMq5XlTq5kJTVpgu50urOgm2TZQCgMW55QNWrswqRgx UDuCrRn+JRSqIYfm9Efg7zYmmFMrVIzUPbN0= X-Google-Smtp-Source: AGHT+IHJQiM9qS9cGmpbfgx0mKtPTQBqlkZcpnqtQbY+bkvHV+R5WXxNGKmRhA4eGLFWHCR7vUtmMH4+q0FqWuQ1PSY= X-Received: by 2002:a17:90b:4c04:b0:2e2:bd7a:71ec with SMTP id 98e67ed59e1d1-2ea062e1574mr2856591a91.2.1731601301654; Thu, 14 Nov 2024 08:21:41 -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:21:05 +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: Mohammad Noureldin Cc: freebsd-desktop@freebsd.org, FreeBSD Mailing List , Jan Beich Content-Type: multipart/alternative; boundary="0000000000007a56b20626e1d81b" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4Xq55272qZz4qw3 X-Spamd-Bar: ---- --0000000000007a56b20626e1d81b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable >Worth mentioning I do also have this set at the end of my .xinitrc: >$ cat .xinitrc > ># PRIME configuration >xrandr --setprovideroutputsource modesetting NVIDIA-0 >xrandr --auto >exec /usr/local/bin/i3 In my case,this is how I have modified my .xinitrc,according with your : nano /home/marietto/.xinitrc setxkbmap it xrandr --setprovideroutputsource modesetting NVIDIA-0 xrandr --auto daemon -f pipewire daemon -f wireplumber exec dbus-launch --exit-with-session ck-launch-session startplasma-wayland On Thu, Nov 14, 2024 at 3:37=E2=80=AFPM Mohammad Noureldin < mohammad@thelightbird.com> wrote: > Hi Mario, > > On Thu, Nov 14, 2024 at 2:10=E2=80=AFPM Mario Marietto > wrote: > >> ---> I am not sure if this is directly related, but this doesn't look >> 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 >> 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" ? = or >> maybe I should not create xorg.conf at all ? In this way I suppose wayla= nd >> 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 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" > 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 >> the 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 > > kld_list=3D"i915kms nvidia-drm" > > > Worth mentioning I do also have this set at the end of my .xinitrc: > > $ cat .xinitrc > > # 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 >>> wrote: >>> >>>> Hello bro. >>>> >>>> > > > >> >> >> -- >> Mario. >> > > > -- > Thanks > - Mohammad Noureldin > -- > "Life is like riding a bicycle. To keep your balance you must keep moving= " > - Albert Einstein > > --=20 Mario. --0000000000007a56b20626e1d81b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>Worth mentioning I do also have this set at = the end of my .xinitrc:

>$ cat .xinitrc
><snip>
># PRIME configuration
>xrandr --set= provideroutputsource modesetting NVIDIA-0
>xrandr --auto
>exec = /usr/local/bin/i3

In my case,this is how I have mo= dified my .xinitrc,according with your :

nan= o /home/marietto/.xinitrc

setxkbmap it
xr= andr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
dae= mon -f pipewire
daemon -f wireplumber
exec dbus-launch --exit-with-se= ssion ck-launch-session startplasma-wayland

On Thu, Nov 14, 2024 at 3:37= =E2=80=AFPM Mohammad Noureldin <mohammad@thelightbird.com> wrote:
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=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).

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.

Anyway my xorg.conf file has been gene= rated automatically by Xorg -configure

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:

$ cat /usr/local/sh= are/X11/xorg.conf.d/20-intel-outputclass.conf
Section "OutputClass&= quot;
=C2=A0 =C2=A0 Identifier "intel"
=C2=A0 =C2=A0 MatchD= river "i915kms"
=C2=A0 =C2=A0 Driver "modesetting"=C2=A0 =C2=A0 Option "PrimaryGPU" "yes"
EndSection=

$ cat /usr/local/share/X11/xorg.conf.d/20-nvidia-= drm-outputclass.conf
Section "OutputClass"
=C2=A0 =C2=A0 Id= entifier "nvidia"
=C2=A0 =C2=A0 MatchDriver "nvidia-drm&q= uot;
=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

In = this case I have set the iGPU, from Intel, as the Primary GPU.


----> When it comes t= o graphics kernel modules, I only have i915kms and nvidia-drm set in kld_li= st

So,if you have nvidia-drm in kld_list,It = means that you have installed the nvidia-driver. Infact :
[root@marietto /usr/home/marietto/Desktop]=3D=3D> pkg instal= l nvidia-drm-515-kmod
Updating FreeBSD repository catalogue...
Free= BSD repository is up to date.
All repositories are up to date.
The fo= llowing 3 package(s) will be affected (of 0 checked):

New packages t= o be INSTALLED:
nvidia-driver: 550.127.05
nvidia-drm-515-kmod: 550.= 127.05_1

This is what I have in m= y rc.conf:
$ cat /etc/rc.conf
<snip>
kld_list=3D"i915kms nvidia-drm"
<snip>
=C2=A0
Worth mentioning I do also have this set at the end= of my .xinitrc:

$ cat .xinitrc
<snip= >
# PRIME configuration
xrandr --setprovideroutputsource mo= desetting NVIDIA-0
xrandr --auto

exec /usr/local/bin/i3


On Thu, Nov 14, 2024 at 1:44=E2=80=AFPM Mohammad Noureldin <mohammad@thelig= htbird.com> wrote:
Hi Mario,

On Thu, Nov 14, 2024 at 11:45=E2= =80=AFAM Mario Marietto <marietto2008@gmail.com> wrote:
Hello bro.


<snip>
=C2=A0


--
Ma= rio.


--
Thank= s
- Mohammad Noureldin
--
"Life is like riding a bicycle. To = keep your balance you must keep moving"
- Albert Einstein

<= /div>


--
Ma= rio.
--0000000000007a56b20626e1d81b--