From nobody Thu Sep 9 06:08:52 2021 X-Original-To: freebsd-x11@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 F216E17ADCCF for ; Thu, 9 Sep 2021 06:08:54 +0000 (UTC) (envelope-from kiri@truefc.org) Received: from kx.truefc.org (1.212.52.36.ap.yournet.ne.jp [36.52.212.1]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp", Issuer "smtp" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H4pVG4PgYz3kKS for ; Thu, 9 Sep 2021 06:08:54 +0000 (UTC) (envelope-from kiri@truefc.org) Received: from kx.truefc.org (kx.truefc.org [36.52.212.1]) by kx.truefc.org (8.16.1/8.16.1) with ESMTP id 18968q68099381; Thu, 9 Sep 2021 15:08:52 +0900 (JST) (envelope-from kiri@kx.truefc.org) Message-Id: <202109090608.18968q68099381@kx.truefc.org> Date: Thu, 09 Sep 2021 15:08:52 +0900 From: KIRIYAMA Kazuhiko To: John Kennedy Cc: KIRIYAMA Kazuhiko , freebsd-x11@freebsd.org Subject: Re: GTX 1650 could not work on nvidia-driver-470.63.01_1 In-Reply-To: References: <202109090223.1892N2b7096212@kx.truefc.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 MULE XEmacs/21.4 (patch 24) (Standard C) (amd64--freebsd) List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 4H4pVG4PgYz3kKS X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, 09 Sep 2021 11:48:32 +0900, John Kennedy wrote: > > On Thu, Sep 09, 2021 at 11:23:02AM +0900, KIRIYAMA Kazuhiko wrote: > ... > > [ 4575.765] (==) ServerLayout "X.org Configured" > > [ 4575.766] (**) |-->Screen "Screen0" (0) > > [ 4575.766] (**) | |-->Monitor "Monitor0" > > [ 4575.766] (**) | |-->Device "Card0" > > [ 4575.766] (**) |-->Screen "Screen1" (1) > > [ 4575.766] (**) | |-->Monitor "Monitor1" > > [ 4575.766] (**) | |-->Device "Card1" > > [ 4575.766] (**) |-->Input Device "Mouse0" > > [ 4575.766] (**) |-->Input Device "Keyboard0" > .... > > [ 4575.767] (!!) More than one possible primary device found > > [ 4575.767] (--) PCI: (3@0:0:0) 1a03:2000:15d9:095d rev 65, Mem @ 0xa9000000/16777216, 0xaa000000/131072, I/O @ 0x00003000/128, BIOS @ 0x????????/65536 > > [ 4575.767] (--) PCI: (23@0:0:0) 10de:1f82:19da:1596 rev 161, Mem @ 0xc4000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x00007000/128, BIOS @ 0x????????/65536 > ... > > [ 4576.038] (EE) No devices detected. > > [ 4576.038] (EE) > > Fatal server error: > > [ 4576.038] (EE) no screens found(EE) > > [ 4576.039] (EE) > ... > > I don't have a dual-card Nvidia, but I do have some experience (not always > good) with a different dual-card setup. My experience with a single-card > Nvidia system is that I only got it working with nvidia-xconfig's help. > > If that behaves like my radeons did, you won't be able to drag windows > between two cards without extra Nvidia-specific glue (options), which > nvidia-xconfig will probably help out with. > > Based on my other system, this might be your base issue: > > Section "Device" > Identifier "Card0" > Driver "nvidia" > --> BusID "PCI:101:0:0" > EndSection > > Section "Device" > ... > Identifier "Card1" > Driver "nvidia" > BusID "PCI:3:0:0" > EndSection > > Up above, the two cards were detected as PCI: (3@0:0:0) and PCI: (23@0:0:0). I modified above as follows : root@smtp:~ # diff -u /etc/X11/xorg.conf.org /etc/X11/xorg.conf --- /etc/X11/xorg.conf.org 2021-09-09 15:03:41.103160000 +0900 +++ /etc/X11/xorg.conf 2021-09-09 14:50:33.075173000 +0900 @@ -65,6 +65,12 @@ EndSection Section "Device" + Identifier "Card1" + Driver "nvidia" + BusID "PCI:3:0:0" +EndSection + +Section "Device" ### Available Driver options are:- ### Values: : integer, : float, : "True"/"False", root@smtp:~ # And tried to startx, failed to start : [ 21679.247] X.Org X Server 1.20.11 X Protocol Version 11, Revision 0 [ 21679.247] Build Operating System: FreeBSD 14.0-CURRENT amd64 [ 21679.247] Current Operating System: FreeBSD smtp 14.0-CURRENT FreeBSD 14.0-CURRENT #0 n248730-cc1345056b11-dirty: Wed Aug 25 17:13:09 JST 2021 root@msrvkxb:/usr/obj/usr/src/amd64.amd64/sys/XIJ amd64 [ 21679.247] Build Date: 03 September 2021 02:57:26AM [ 21679.247] [ 21679.247] Current version of pixman: 0.40.0 [ 21679.247] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 21679.247] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 21679.247] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 9 15:07:36 2021 [ 21679.248] (==) Using config file: "/etc/X11/xorg.conf" [ 21679.248] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d" [ 21679.248] (==) ServerLayout "X.org Configured" [ 21679.248] (**) |-->Screen "Screen0" (0) [ 21679.248] (**) | |-->Monitor "Monitor0" [ 21679.248] (**) | |-->Device "Card0" [ 21679.248] (**) |-->Screen "Screen1" (1) [ 21679.248] (**) | |-->Monitor "Monitor1" [ 21679.249] (**) | |-->Device "Card1" [ 21679.249] (**) |-->Input Device "Mouse0" [ 21679.249] (**) |-->Input Device "Keyboard0" [ 21679.249] (**) Option "AutoAddDevices" "false" [ 21679.249] (**) Not automatically adding devices [ 21679.249] (==) Automatically enabling devices [ 21679.249] (==) Not automatically adding GPU devices [ 21679.249] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 21679.249] (**) FontPath set to: /usr/local/share/fonts/misc/, /usr/local/share/fonts/TTF/, /usr/local/share/fonts/OTF/, /usr/local/share/fonts/Type1/, /usr/local/share/fonts/100dpi/, /usr/local/share/fonts/75dpi/, catalogue:/usr/local/etc/X11/fontpath.d, /usr/local/share/fonts/misc/, /usr/local/share/fonts/TTF/, /usr/local/share/fonts/OTF/, /usr/local/share/fonts/Type1/, /usr/local/share/fonts/100dpi/, /usr/local/share/fonts/75dpi/, catalogue:/usr/local/etc/X11/fontpath.d [ 21679.249] (**) ModulePath set to "/usr/local/lib/xorg/modules" [ 21679.249] (II) Loader magic: 0x434270 [ 21679.249] (II) Module ABI versions: [ 21679.249] X.Org ANSI C Emulation: 0.4 [ 21679.249] X.Org Video Driver: 24.1 [ 21679.249] X.Org XInput driver : 24.1 [ 21679.249] X.Org Server Extension : 10.0 [ 21679.249] (!!) More than one possible primary device found [ 21679.249] (--) PCI: (3@0:0:0) 1a03:2000:15d9:095d rev 65, Mem @ 0xa9000000/16777216, 0xaa000000/131072, I/O @ 0x00003000/128, BIOS @ 0x????????/65536 [ 21679.249] (--) PCI: (23@0:0:0) 10de:1f82:19da:1596 rev 161, Mem @ 0xc4000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x00007000/128, BIOS @ 0x????????/65536 [ 21679.249] (II) "glx" will be loaded. This was enabled by default and also specified in the config file. [ 21679.249] (II) LoadModule: "glxservernvidia" [ 21679.250] (WW) Warning, couldn't open module glxservernvidia [ 21679.250] (EE) Failed to load module "glxservernvidia" (module does not exist, 0) [ 21679.250] (II) LoadModule: "glx" [ 21679.250] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so [ 21679.251] (II) Module glx: vendor="X.Org Foundation" [ 21679.251] compiled for 1.20.11, module version = 1.0.0 [ 21679.251] ABI class: X.Org Server Extension, version 10.0 [ 21679.251] (II) LoadModule: "nvidia" [ 21679.251] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so [ 21679.251] (II) Module nvidia: vendor="NVIDIA Corporation" [ 21679.251] compiled for 1.6.99.901, module version = 1.0.0 [ 21679.252] Module class: X.Org Video Driver [ 21679.252] (II) LoadModule: "mouse" [ 21679.252] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so [ 21679.252] (II) Module mouse: vendor="X.Org Foundation" [ 21679.252] compiled for 1.20.11, module version = 1.9.3 [ 21679.252] Module class: X.Org XInput Driver [ 21679.252] ABI class: X.Org XInput driver, version 24.1 [ 21679.252] (II) LoadModule: "kbd" [ 21679.252] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so [ 21679.252] (II) Module kbd: vendor="X.Org Foundation" [ 21679.252] compiled for 1.20.11, module version = 1.9.0 [ 21679.252] Module class: X.Org XInput Driver [ 21679.252] ABI class: X.Org XInput driver, version 24.1 [ 21679.252] (II) NVIDIA dlloader X Driver 470.63.01 Tue Aug 3 20:29:31 UTC 2021 [ 21679.252] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs [ 21679.252] (--) Using syscons driver with X support (version 2.0) [ 21679.252] (--) using VT number 9 [ 21679.510] (EE) No devices detected. [ 21679.510] (EE) Fatal server error: [ 21679.510] (EE) no screens found(EE) [ 21679.510] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 21679.510] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. [ 21679.510] (EE) [ 21679.776] (EE) Server terminated with error (1). Closing log file. > > With my dual-radeon setup, I had all kinds of issues which I haven't fully > figured out with the layout of the screens cascade-failing and ending up with > that vague-but-basically-true error. Divide and conquer by just configuring > one card at a time. > > The stock advice of "Don't have a xorg.conf file, let X figure it out" > really seems to fall on it's face with multiple cards, but I'd probably take > the time to strip out the mouse and keyboard configuration unless you really > need it. >