Disk, graphics

Help with graphics cards on GhostBSD.
Post Reply
pathiaki
Posts: 3
Joined: Tue Jan 11, 2022 3:34 pm

Disk, graphics

Post by pathiaki »

Hi all!

I've had something weird happen that I've never seen before.

I migrated a disk and graphics card to a new motherboard. It usually 'just works'.

This time, X isn't starting. :|

It's an Nvidia Geforce 1030. The disk is a Samsung NVME 960. Make of both MBs is Asus... going from X370 to X470

Uname -a

FreeBSD deborah-ghostbsd-pc 13.1-STABLE FreeBSD 13.1-STABLE GENERIC amd64

I can't get X to start the GhostBSD Mate desktop.

Dmesg is this:

Copyright (c) 1992-2021 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 13.1-STABLE GENERIC amd64
FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)
VT(vga): resolution 640x480
CPU: AMD Ryzen 5 3600X 6-Core Processor (3793.08-MHz K8-class CPU)
Origin="AuthenticAMD" Id=0x870f10 Family=0x17 Model=0x71 Stepping=0
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Features2=0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
AMD Features2=0x75c237ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX,ADMSKX>
Structured Extended Features=0x219c91a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,PQE,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA>
Structured Extended Features2=0x400004<UMIP,RDPID>
XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
AMD Extended Feature Extensions ID EBX=0x108b657<CLZERO,IRPerf,XSaveErPtr,RDPRU,WBNOINVD,IBPB,STIBP,SSBD>
SVM: (disabled in BIOS) NP,NRIP,VClean,AFlush,DAssist,NAsids=32768
TSC: P-state invariant, performance statistics
real memory = 51539607552 (49152 MB)
avail memory = 49997803520 (47681 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <ALASKA A M I >
FreeBSD/SMP: Multiprocessor System Detected: 12 CPUs
FreeBSD/SMP: 1 package(s) x 2 cache groups x 3 core(s) x 2 hardware threads
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
random: unblocking device.
ioapic0 <Version 2.1> irqs 0-23
ioapic1 <Version 2.1> irqs 24-55
Launching APs: 9 11 10 6 7 8 1 2 3 5 4
random: entropy device external interface
kbd1 at kbdmux0
vtvga0: <VT VGA driver>
smbios0: <System Management BIOS> at iomem 0xf05e0-0xf05fe
smbios0: Version: 3.3, BCD Revision: 3.3
aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS,SHA1,SHA256>
acpi0: <ALASKA A M I >
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x71 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 350
Event timer "HPET1" frequency 14318180 Hz quality 350
Event timer "HPET2" frequency 14318180 Hz quality 350
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x2> port 0x62,0x66 on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <base peripheral, IOMMU> at device 0.2 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> at device 1.1 on pci0
pci1: <ACPI PCI bus> on pcib1
nvme0: <Generic NVMe Device> mem 0xf6800000-0xf6803fff irq 24 at device 0.0 on pci1
pcib2: <ACPI PCI-PCI bridge> at device 1.3 on pci0
pci2: <ACPI PCI bus> on pcib2
xhci0: <XHCI (generic) USB 3.0 controller> mem 0xf67a0000-0xf67a7fff irq 32 at device 0.0 on pci2
xhci0: 32 bytes context size, 64-bit DMA
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
ahci0: <AHCI SATA controller> mem 0xf6780000-0xf679ffff irq 33 at device 0.1 on pci2
ahci0: AHCI v1.31 with 8 6Gbps ports, Port Multiplier supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich3: <AHCI channel> at channel 3 on ahci0
ahcich4: <AHCI channel> at channel 4 on ahci0
ahcich5: <AHCI channel> at channel 5 on ahci0
ahcich6: <AHCI channel> at channel 6 on ahci0
ahcich7: <AHCI channel> at channel 7 on ahci0
pcib3: <ACPI PCI-PCI bridge> irq 34 at device 0.2 on pci2
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> irq 32 at device 0.0 on pci3
pci4: <ACPI PCI bus> on pcib4
pcib5: <ACPI PCI-PCI bridge> irq 32 at device 4.0 on pci3
pci5: <ACPI PCI bus> on pcib5
xhci1: <XHCI (generic) USB 3.0 controller> mem 0xf6600000-0xf6607fff irq 32 at device 0.0 on pci5
xhci1: 32 bytes context size, 64-bit DMA
usbus1 on xhci1
usbus1: 5.0Gbps Super Speed USB v3.0
pcib6: <ACPI PCI-PCI bridge> irq 34 at device 6.0 on pci3
pci6: <ACPI PCI bus> on pcib6
pcib7: <ACPI PCI-PCI bridge> irq 35 at device 7.0 on pci3
pci7: <ACPI PCI bus> on pcib7
igb0: <Intel(R) I211 (Copper)> port 0xe000-0xe01f mem 0xf6500000-0xf651ffff,0xf6520000-0xf6523fff irq 35 at device 0.0 on pci7
igb0: NVM V0.6 imgtype1
igb0: Using 1024 TX descriptors and 1024 RX descriptors
igb0: Using 2 RX queues 2 TX queues
igb0: Using MSI-X interrupts with 3 vectors
igb0: Ethernet address: 0c:9d:92:82:bd:79
igb0: netmap queues/slots: TX 2/1024, RX 2/1024
pcib8: <PCI-PCI bridge> irq 33 at device 9.0 on pci3
pci8: <PCI bus> on pcib8
pcib9: <ACPI PCI-PCI bridge> at device 3.1 on pci0
pci9: <ACPI PCI bus> on pcib9
vgapci0: <VGA-compatible display> port 0xd000-0xd07f mem 0xf5000000-0xf5ffffff,0xe0000000-0xefffffff,0xf0000000-0xf1ffffff irq 54 at device 0.0 on pci9
vgapci0: Boot video device
hdac0: <NVIDIA (0x0fb8) HDA Controller> mem 0xf6080000-0xf6083fff irq 55 at device 0.1 on pci9
pcib10: <ACPI PCI-PCI bridge> at device 7.1 on pci0
pci10: <ACPI PCI bus> on pcib10
pci10: <unknown> at device 0.0 (no driver attached)
pcib11: <ACPI PCI-PCI bridge> at device 8.1 on pci0
pci11: <ACPI PCI bus> on pcib11
pci11: <unknown> at device 0.0 (no driver attached)
pci11: <encrypt/decrypt> at device 0.1 (no driver attached)
xhci2: <AMD Matisse USB 3.0 controller> mem 0xf6200000-0xf62fffff irq 39 at device 0.3 on pci11
xhci2: 64 bytes context size, 64-bit DMA
usbus2 on xhci2
usbus2: 5.0Gbps Super Speed USB v3.0
hdac1: <AMD X570 HDA Controller> mem 0xf6400000-0xf6407fff irq 36 at device 0.4 on pci11
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
acpi_button0: <Power Button> on acpi0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbdc0: non-PNP ISA device will be removed from GENERIC in FreeBSD 14.
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
Timecounter "TSC-low" frequency 1896437278 Hz quality 1000
Timecounters tick every 1.000 msec
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
ugen0.1: <AMD XHCI root HUB> at usbus0
ugen1.1: <(0x1b21) XHCI root HUB> at usbus1
uhub0 on usbus0
uhub0: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
uhub1 on usbus1
uhub1: <(0x1b21) XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1
ugen2.1: <AMD XHCI root HUB> at usbus2
uhub2 on usbus2
uhub2: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus2
nvd0: <Samsung SSD 960 EVO 500GB> NVMe namespace
nvd0: 476940MB (976773168 512 byte sectors)
hdacc0: <NVIDIA (0x0081) HDA CODEC> at cad 0 on hdac0
hdaa0: <NVIDIA (0x0081) Audio Function Group> at nid 1 on hdacc0
pcm0: <NVIDIA (0x0081) (HDMI/DP 8ch)> at nid 4 on hdaa0
pcm1: <NVIDIA (0x0081) (HDMI/DP 8ch)> at nid 5 on hdaa0
hdacc1: <Realtek ALC1220 HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek ALC1220 Audio Function Group> at nid 1 on hdacc1
pcm2: <Realtek ALC1220 (Rear Analog 5.1/2.0)> at nid 20,22,21 and 24,26 on hdaa1
pcm3: <Realtek ALC1220 (Front Analog)> at nid 27 and 25 on hdaa1
pcm4: <Realtek ALC1220 (Rear Digital)> at nid 30 on hdaa1
Trying to mount root from zfs:DB/ROOT/default []...
uhub1: 4 ports with 4 removable, self powered
uhub2: 8 ports with 8 removable, self powered
ugen1.2: <HP OfficeJet 4650 series> at usbus1
ugen2.2: <E-Signal USB Gaming Mouse> at usbus2
ukbd0 on uhub2
ukbd0: <E-Signal USB Gaming Mouse, class 0/0, rev 2.00/1.30, addr 1> on usbus2
kbd2 at ukbd0
uhub0: 22 ports with 22 removable, self powered
ugen1.3: <vendor 0x05e3 USB2.0 Hub> at usbus1
uhub3 on uhub1
uhub3: <vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/85.36, addr 2> on usbus1
ugen2.3: <Silitek Standard USB Keyboard> at usbus2
ukbd1 on uhub2
ukbd1: <Silitek Standard USB Keyboard, class 0/0, rev 1.10/1.00, addr 2> on usbus2
kbd3 at ukbd1
uhub3: 4 ports with 4 removable, self powered
Cuse v0.1.37 @ /dev/cuse
nvidia0: <NVIDIA GeForce GT 1030> on vgapci0
vgapci0: child nvidia0 requested pci_enable_io
vgapci0: child nvidia0 requested pci_enable_io
nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 510.60.02 Wed Mar 16 11:03:12 UTC 2022
intsmb0: <AMD FCH SMBus Controller> at device 20.0 on pci0
smbus0: <System Management Bus> on intsmb0
acpi_wmi0: <ACPI-WMI mapping> on acpi0
acpi_wmi0: Embedded MOF found
ACPI: \134AMW0.WQMO: 1 arguments were passed to a non-method ACPI object (Buffer) (20201113/nsarguments-361)
acpi_wmi1: <ACPI-WMI mapping> on acpi0
acpi_wmi1: Embedded MOF found
ACPI: \134ABAW.WQMO: 1 arguments were passed to a non-method ACPI object (Buffer) (20201113/nsarguments-361)
acpi_wmi2: <ACPI-WMI mapping> on acpi0
acpi_wmi2: Embedded MOF found
ACPI: \134AOD.WQBA: 1 arguments were passed to a non-method ACPI object (Buffer) (20201113/nsarguments-361)
driver bug: Unable to set devclass (class: ppc devname: (unknown))
acpi_wmi3: <ACPI-WMI mapping> on acpi0
lo0: link state changed to UP
ulpt0 on uhub1
ulpt0: <HP OfficeJet 4650 series, class 0/0, rev 2.00/1.00, addr 1> on usbus1
ulpt0: using bi-directional mode
ums0 on uhub2
ums0: <E-Signal USB Gaming Mouse, class 0/0, rev 2.00/1.30, addr 1> on usbus2
ums0: 5 buttons and [XYZT] coordinates ID=0
uhid0 on uhub2
uhid0: <E-Signal USB Gaming Mouse, class 0/0, rev 2.00/1.30, addr 1> on usbus2
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, default to accept, logging disabled
igb0: link state changed to UP
Security policy loaded: MAC/ntpd (mac_ntpd)
Waiting (max 60 seconds) for system process `vnlru' to stop... done
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining... 0 0 0 0 0 ---<<BOOT>>---


Xorg.log.0 file:

[ 7.948]
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[ 7.948] Current Operating System: FreeBSD deborah-ghostbsd-pc 13.1-STABLE FreeBSD 13.1-STABLE GENERIC amd64
[ 7.948]
[ 7.948] Current version of pixman: 0.40.0
[ 7.948] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 7.948] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 7.948] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Nov 19 11:43:53 2022
[ 7.949] (==) Using config file: "/etc/X11/xorg.conf"
[ 7.949] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[ 7.951] (==) ServerLayout "X.org Configured"
[ 7.951] (**) |-->Screen "Screen0" (0)
[ 7.951] (**) | |-->Monitor "Monitor0"
[ 7.951] (**) | |-->Device "Card0"
[ 7.951] (**) |-->Input Device "Mouse0"
[ 7.951] (**) |-->Input Device "Keyboard0"
[ 7.951] (==) Automatically adding devices
[ 7.951] (==) Automatically enabling devices
[ 7.951] (==) Not automatically adding GPU devices
[ 7.951] (==) Automatically binding GPU devices
[ 7.951] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 7.952] (WW) The directory "/usr/local/share/fonts/misc/" does not exist.
[ 7.952] Entry deleted from font path.
[ 7.953] (WW) The directory "/usr/local/share/fonts/Type1/" does not exist.
[ 7.953] Entry deleted from font path.
[ 7.953] (WW) The directory "/usr/local/share/fonts/100dpi/" does not exist.
[ 7.953] Entry deleted from font path.
[ 7.953] (WW) The directory "/usr/local/share/fonts/75dpi/" does not exist.
[ 7.953] Entry deleted from font path.
[ 7.953] (WW) The directory "/usr/local/share/fonts/misc/" does not exist.
[ 7.953] Entry deleted from font path.
[ 7.953] (WW) The directory "/usr/local/share/fonts/Type1/" does not exist.
[ 7.953] Entry deleted from font path.
[ 7.953] (WW) The directory "/usr/local/share/fonts/100dpi/" does not exist.
[ 7.953] Entry deleted from font path.
[ 7.953] (WW) The directory "/usr/local/share/fonts/75dpi/" does not exist.
[ 7.953] Entry deleted from font path.
[ 7.953] (**) FontPath set to:
/usr/local/share/fonts/TTF/,
/usr/local/share/fonts/OTF/,
catalogue:/usr/local/etc/X11/fontpath.d,
/usr/local/share/fonts/TTF/,
/usr/local/share/fonts/OTF/,
catalogue:/usr/local/etc/X11/fontpath.d
[ 7.953] (**) ModulePath set to "/usr/local/lib/xorg/modules"
[ 7.953] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 7.953] (WW) Disabling Mouse0
[ 7.953] (WW) Disabling Keyboard0
[ 7.953] (II) Module ABI versions:
[ 7.953] X.Org ANSI C Emulation: 0.4
[ 7.953] X.Org Video Driver: 25.2
[ 7.953] X.Org XInput driver : 24.4
[ 7.953] X.Org Server Extension : 10.0
[ 7.953] (--) PCI:*(9@0:0:0) 10de:1d01:196e:11c8 rev 161, Mem @ 0xf5000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000d000/128, BIOS @ 0x????????/65536
[ 7.953] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 7.953] (II) LoadModule: "glx"
[ 7.954] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[ 7.966] (II) Module glx: vendor="X.Org Foundation"
[ 7.966] compiled for 1.21.1.4, module version = 1.0.0
[ 7.966] ABI class: X.Org Server Extension, version 10.0
[ 7.966] (II) LoadModule: "glxservernvidia"
[ 7.966] (WW) Warning, couldn't open module glxservernvidia
[ 7.966] (EE) Failed to load module "glxservernvidia" (module does not exist, 0)
[ 7.966] (II) LoadModule: "nvidia"
[ 7.966] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
[ 7.973] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 7.973] compiled for 1.6.99.901, module version = 1.0.0
[ 7.973] Module class: X.Org Video Driver
[ 7.973] (II) NVIDIA dlloader X Driver 510.60.02 Wed Mar 16 11:07:20 UTC 2022
[ 7.973] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 7.973] (--) Using syscons driver with X support (version 2.0)
[ 7.973] (++) using VT number 9

[ 7.988] (EE) No devices detected.
[ 7.988] (EE)
Fatal server error:
[ 7.988] (EE) no screens found(EE)
[ 7.988] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 7.988] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 7.989] (EE)
[ 8.005] (EE) Server terminated with error (1). Closing log file.


Monitor is connected and I get CLI. I have no idea what glxservernividia module is and why it's not found now. And it states there's nothing found even though I am still using the same graphics card and the same monitor with the same HDMI interface and cable.

After a root login, I've tried:

Xorg --configure

and then the usual:

Xorg --config /root/xorg.conf.new

and got nothing.

As a user I tried the:

exec mate-session

and it just bombs.

Help me oh masters of Ghost-BSD and X
User avatar
neville
Developer
Posts: 27
Joined: Fri Aug 13, 2021 10:27 am
Location: Japan

Re: Disk, graphics

Post by neville »

You can try an older driver.

pkg install nvidia-driver-390

If it doesn't work try setting in rc.conf nvidia_load instead of nvidia-modeset_load but I'm not sure. I use amdgpu. If possible please check out the GhostBSD telegram channel
pathiaki
Posts: 3
Joined: Tue Jan 11, 2022 3:34 pm

Re: Disk, graphics

Post by pathiaki »

Ok... I found out what was wrong.

Everything was fine except for one thing.... apparently, when the system booted up on the new platform, a brand new /etc/X11/xorg.conf file came into existence... ??? No idea why. So, I moved it out of the way. I then installed the nvidia-xconfigure package. I ran nvidia-xconfig and it create a new /etc/X11/xorg.conf file. (why it's putting them in the old place... no idea) Anyhow, it found everything at that point and just needed to reconfigure the display resolution in the system pulldown.

Thank you all,

Pathiaki
Post Reply