From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A7C27158086 for ; Tue, 21 Dec 2021 23:29:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AEE99E0848; Tue, 21 Dec 2021 23:29:37 +0000 (UTC) Received: from sender11-pp-o93.zoho.eu (sender11-pp-o93.zoho.eu [31.186.226.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 050C8E0839 for ; Tue, 21 Dec 2021 23:29:35 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1640129373; cv=none; d=zohomail.eu; s=zohoarc; b=Fhmn1Bq5ylotIZznaR3ZJgLFzqB462F0TiFUxAhCG7l+7/YdV6lVR/7RwcPRkOtlDIt06Ho7Q33rvHYltAmJW+2NIHQ5r0jfkm0zHiavYwH3hNk06rHjmHwV/GUGN5PikZhmUn7DIriCK+5HRN+uqa8I0FAlhBQjhBa5oRUesbU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1640129373; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; bh=wtfGREndBHWWIXYyPJZSErT+FLcCOkKU+OYFgdjCIzk=; b=dlprzSe0J3itgK2ZqRw7CKAITOCa6dfHHVy4GcsVYu8MAg8KncgG0DYJJsjhH4pBMmz9mq7OmLE2HhknrMB1Ozxw1k5JiSi/PQ0UnQDjOPVHlfFN6dE3zxaw0uDCrxuXUcE3UvihjvyIO7TytGyTFGpECXJcvE858m/04W9L0GQ= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=zohomail.eu; spf=pass smtp.mailfrom=milivojevic_viktor@zohomail.eu; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1640129373; s=zoho; d=zohomail.eu; i=milivojevic_viktor@zohomail.eu; h=Date:From:To:Message-Id:Subject:MIME-Version:Content-Type; bh=wtfGREndBHWWIXYyPJZSErT+FLcCOkKU+OYFgdjCIzk=; b=uBf2DUZddroFkhWXCMsknOLWuMGbLVApz0f2nw7hFZ+rQ25r5V6J/UrNNxyEw/Cq NaDJRtlzxncn72FPpy+KuYnarNaqv33L4kpZA5QiT5FMORtigeiJxy2cynQ+KCiz5oJ gUi7dv4ylCOb1BnyLUYYxAQZ5tQJ5WR8X6933ql4= Received: from mail.zoho.eu by mx.zoho.eu with SMTP id 1640129371745193.56894287272985; Wed, 22 Dec 2021 00:29:31 +0100 (CET) Received: from [178.79.17.68] by mail.zoho.eu with HTTP;Wed, 22 Dec 2021 00:29:31 +0100 (CET) Date: Wed, 22 Dec 2021 00:29:31 +0100 From: Viktor Milivojevic To: "gentoo-user" Message-Id: <17ddf541e4b.bdc6653b124737.6643451034505401313@zohomail.eu> Subject: [gentoo-user] nvidia and modesettings, black screen xorg confioguration. Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_473321_2083442048.1640129371723" Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Archives-Salt: da3cf62a-1df4-4543-ad98-b3e8beb9add7 X-Archives-Hash: 160ff536a1c3731a154cf23e282551f4 ------=_Part_473321_2083442048.1640129371723 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit I've tried to follow this wiki NVIDIA/Optimus to set nvidia optimus up. I've switched from fx86-video-intel to fx86-video-modesetting by adding the following lines into my make.conf file. VIDEO_CARDS="intel i965 iris nvidia" INPUT_DEVICES="libinput synaptics" Originally after I did this X server wouldn't start so I made a post asking for help. But nvidia offloading didn't work so I removed all the files under /etc/X11/ and /usr/share/X11 and tried to write my own X config files to make it work, but I wasn't successful at my attempt on getting nvidia offloading to work so I had my friend send me his config files because they were gentoo stock config files, as I forgot to make a backup of my original config files non intentionally. I've tried to follow this guide as described here but I got a black screen and a segfault. https://forums.gentoo.org/viewtopic-p-8458394.html#8458394 I found this Xorg.0.log but I'm unsure if it's the same one from the image that I linked because I'm using modesetting right now. https://paste.gg/p/anonymous/d90708f7bcc04187a5c4bfb33920beb1/files/abf3d135c02a4cbd8cdd3db38651d8fc/raw I have an ASUS X541nc laptop, xrandr doesn't detect my nvidia card. xrandr --listproviders Providers: number : 2 Provider 0: id: 0x45 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 3 associated providers: 0 name:modesetting Provider 1: id: 0xb1 cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:modesetting But the nvidia-smi does https://paste.gg/p/anonymous/fbb4a4dc92494f7481d9817a970ed666/files/aaeb148eeaad45acae02129dba61d229/raw How to get nvidia offloading to work properly, right now I can get only intel to work with the default gentoo configuration without xorg.conf file that tries to setup nvidia, deleting that enables intel modesetting to be used by default. Regards ------=_Part_473321_2083442048.1640129371723 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =
I've tried to follow this wiki NVIDIA/Optimus to s= et nvidia optimus up. I've switched from fx86-video-intel to fx86-video-mod= esetting by adding the following lines into my make.conf file.

VIDEO_CARDS=3D"intel i965 iris nvidia"
INPU= T_DEVICES=3D"libinput synaptics"

Originally a= fter I did this X server wouldn't start so I made a post asking for help.
But nvidia offloading didn't work so I removed all the files u= nder /etc/X11/ and /usr/share/X11 and tried to write my own X config files = to make it work, but I wasn't successful at my attempt on getting nvidia of= floading to work so I had my friend send me his config files because they w= ere gentoo stock config files, as I forgot to make a backup of my original = config files non intentionally.

I've tried to = follow this guide as described here but I got a black screen and a segfault= .

I found this Xorg.0.log but= I'm unsure if it's the same one from the image that I linked because I'm u= sing modesetting right now.

I have an ASUS X541nc laptop, xrandr doesn't detect my nvid= ia card.

xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x45 cap: 0xf, Source = Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 3 assoc= iated providers: 0 name:modesetting

------=_Part_473321_2083442048.1640129371723--