Solved Black screen when exiting DE

Hi,

System: 13.2-release-p2
DE: xfce
Graphics driver: nvidia-driver 535.86.05

startx works fine, but when log out from DE to console, I got completely black screen, no keyboard cursor, no mouse pointer. The NumLock light can be turned on and off though. Switching between consoles doesn't make a difference. The only thing I can do is to log into system using ssh and reboot the system. Reading Xorg.log doesn't give me any clue, looks normal there.

Thanks for any help.
 
Was a long time ago this happened on my box, AFAIR also with an Nvidia card onboard. There was something with the X server not releasing the display, and the solution was pretty simple.

Try the things in this thread and using vt instead of sc console.

 
Was a long time ago this happened on my box, AFAIR also with an Nvidia card onboard. There was something with the X server not releasing the display, and the solution was pretty simple.

Try the things in this thread and using vt instead of sc console.

I don't need to add the kern.vty=vt in /boot/loader.conf, because the vt is the default setting in my case.
 
Try adding the following to /boot/loader.conf. You will have to reboot.

hw.vga.textmode="1"

I assume you are loading nvidia-modeset.ko and nvidia.ko from rc.conf? You may not need to explicitly add nvidia.ko (it may be a dependency of nvidia-modeset).
 
Try adding the following to /boot/loader.conf. You will have to reboot.

hw.vga.textmode="1"
Doesn't work.

I assume you are loading nvidia-modeset.ko and nvidia.ko from rc.conf? You may not need to explicitly add nvidia.ko (it may be a dependency of nvidia-modeset).
In my case, only nvidia-modeset is specified in /etc/rc.conf.
 
Do you have a login manager? When you log out it goes back to login display.

Are you switching to a virtual console through the F1 keys?
 
Have you tried other DEs or a plain window manager? That would rule out anything hanging up and stopping the exit process.
You say you can ssh in; have you run top or something to see what is running, perhaps the xfce process is still running and you can kill -9 as root?
 
I don't know if this will help or not...
I also get a black screen (albeit with a banner : "set monitor resolution ..."). My monitor resolution - 3840x2160. I have GTX 1650. It didn't happen before (with my old GTX 950, even with the same Nvidia's driver). Because of this, I could not turn off the computer right way. And couldn't switch to another tty (even if I could, I could not type anything there from the keyboard). I did not solve the problem, but I found a workaround (suitable for me).
I did the following in /boot/loader.conf
kern.vty=vt
hw.vga.textmode=0
efi_max_resolution="1280x1024"
# efi_max_resolution="3840x2160" - it doesn't work

After this, I could switch between ttys (and use the keyboard there).
Now, before exiting DE, I switch to another tty (Ctrl-Alt-F3), run shutdown -p +1m there, return to DE (Alt-F9) and exit DE, get a black screen (at this point I can't switch to another tty) and wait for the system shutdown...(but it's not necessary, of course, I could run shutdown from DE without switching ttys)

Edit: I run DE with startx
Edit 2: In my case it does not depend on DE (I tried Gnome, CDE, xfce) the result is the same
Edit 3: I'm getting the same behavior on Debian 11 (where I'm using X / Gnome, and Nvidia's driver). But on Debian 12 everything works fine (there I'm using Wayland / Gnome, and nouveau/NV166). On Debian, I don't use startx, and I don't need to run shutdown manually , since there is a "PowerOff" button in Gnome.
 
Last edited:
Have you tried other DEs or a plain window manager? That would rule out anything hanging up and stopping the exit process.
You say you can ssh in; have you run top or something to see what is running, perhaps the xfce process is still running and you can kill -9 as root?
Thanks for the tip. From top I can see xfce not running when log out X.
Maybe I'll try other DEs if the issue gives troubles me too much.
 
  • Like
Reactions: mer
If you look at top while xfce is running you do see xfce?
Double check "save session on logout"; it's been a while since I've run xfce, but I thought it asked about saving session. Maybe "don't save session"?
I've also run into issues where you have things in the autostart and then save session you get multiple instances of the same thing running which could cause issues.
 
If you look at top while xfce is running you do see xfce?
Yes, xfce and others app running under X.

Double check "save session on logout"; it's been a while since I've run xfce, but I thought it asked about saving session. Maybe "don't save session"?
I've also run into issues where you have things in the autostart and then save session you get multiple instances of the same thing running which could cause issues.
Doesn't help. The issue persists.
 
Another thing you can try is that it could possibly be on twm as with my experience it is a black screen i believe you need to open the terminal by using a keyboard shortcut or left click on the screen.

I recommend if you have check demsg or message log to see if there's anything there.
 
Could it be the "Module tmpfs failed to register: 17"?
In /var/log/messages, there are these lines highlighted:
Code:
Module tmpfs failed to register: 17
module_register_init: MOD_LOAD (tmpfs, 0xffffffff80cd4380, 0xffffffff82e57b40) error 17
sysctl_unregister_oid: failed(22) to unregister sysctl(tmpfs)
Here is dmesg output:
Code:
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.2-RELEASE-p2 GENERIC amd64
FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)
VT(efifb): resolution 1920x1080
module_register: cannot register tmpfs from kernel; already loaded from tmpfs.ko
Module tmpfs failed to register: 17
CPU: AMD Ryzen 7 5800X 8-Core Processor              (3800.08-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0xa20f10  Family=0x19  Model=0x21  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=0x219c97a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,PQE,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA>
  Structured Extended Features2=0x40069c<UMIP,PKU,OSPKE,VAES,VPCLMULQDQ,RDPID>
  Structured Extended Features3=0x10<FSRM>
  XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
  AMD Extended Feature Extensions ID EBX=0x111ef657<CLZERO,IRPerf,XSaveErPtr,RDPRU,WBNOINVD,IBPB,IBRS,STIBP,STIBP_ALWAYSON,PREFER_IBRS,SSBD>
  SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768
  TSC: P-state invariant, performance statistics
real memory  = 34359738368 (32768 MB)
avail memory = 33278283776 (31736 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <ALASKA A M I >
FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs
FreeBSD/SMP: 1 package(s) x 8 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: 1 11 15 2 8 7 5 12 10 9 6 14 4 3 13
random: entropy device external interface
kbd1 at kbdmux0
efirtc0: <EFI Realtime Clock>
efirtc0: registered as a time-of-day clock, resolution 1.000000s
smbios0: <System Management BIOS> at iomem 0xcda05000-0xcda0501e
smbios0: Version: 2.8, BCD Revision: 2.8
aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS,SHA1,SHA256>
acpi0: <ALASKA A M I >
acpi0: Power Button (fixed)
AMD-Vi: IVRS Info VAsize = 64 PAsize = 48 GVAsize = 2 flags:0
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
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
amdiommu0 at device 0.2 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.1 on pci0
pci1: <ACPI PCI bus> on pcib1
nvme0: <Generic NVMe Device> mem 0xfc900000-0xfc903fff,0xfc904000-0xfc9040ff at device 0.0 on pci1
pcib2: <ACPI PCI-PCI bridge> at device 1.2 on pci0
pci2: <ACPI PCI bus> on pcib2
xhci0: <XHCI (generic) USB 3.0 controller> mem 0xfc5a0000-0xfc5a7fff 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 0xfc580000-0xfc59ffff at device 0.1 on pci2
ahci0: AHCI v1.31 with 6 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
pcib3: <ACPI PCI-PCI bridge> at device 0.2 on pci2
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 0.0 on pci3
pci4: <ACPI PCI bus> on pcib4
nvme1: <Generic NVMe Device> mem 0xfc400000-0xfc403fff at device 0.0 on pci4
pcib5: <ACPI PCI-PCI bridge> at device 7.0 on pci3
pci5: <ACPI PCI bus> on pcib5
re0: <RealTek 8168 Gigabit Ethernet> port 0xe000-0xe0ff mem 0xfc304000-0xfc304fff,0xfc300000-0xfc303fff at device 0.0 on pci5
re0: Using 1 MSI-X message
re0: turning off MSI enable bit.
re0: Chip rev. 0x54000000
re0: MAC rev. 0x00100000
miibus0: <MII bus> on re0
rgephy0: <RTL8251/8153 1000BASE-T media interface> PHY 1 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re0: Using defaults for TSO: 65518/35/2048
re0: Ethernet address: 34:f7:16:9d:79:f6
re0: netmap queues/slots: TX 1/256, RX 1/256
pcib6: <ACPI PCI-PCI bridge> at device 9.0 on pci3
pci6: <ACPI PCI bus> on pcib6
re1: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xd000-0xd0ff mem 0xfc204000-0xfc204fff,0xfc200000-0xfc203fff at device 0.0 on pci6
re1: Using 1 MSI-X message
re1: turning off MSI enable bit.
re1: Chip rev. 0x54000000
re1: MAC rev. 0x00100000
miibus1: <MII bus> on re1
rgephy1: <RTL8251/8153 1000BASE-T media interface> PHY 1 on miibus1
rgephy1:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re1: Using defaults for TSO: 65518/35/2048
re1: Ethernet address: 2c:f0:5d:59:8d:d3
re1: netmap queues/slots: TX 1/256, RX 1/256
pcib7: <ACPI PCI-PCI bridge> at device 3.1 on pci0
pci7: <ACPI PCI bus> on pcib7
vgapci0: <VGA-compatible display> port 0xf000-0xf07f mem 0xfb000000-0xfbffffff,0xd0000000-0xdfffffff,0xe0000000-0xe1ffffff at device 0.0 on pci7
hdac0: <NVIDIA (0x22bc) HDA Controller> mem 0xfc080000-0xfc083fff at device 0.1 on pci7
pcib8: <ACPI PCI-PCI bridge> at device 7.1 on pci0
pci8: <ACPI PCI bus> on pcib8
pci8: <unknown> at device 0.0 (no driver attached)
pcib9: <ACPI PCI-PCI bridge> at device 8.1 on pci0
pci9: <ACPI PCI bus> on pcib9
pci9: <unknown> at device 0.0 (no driver attached)
pci9: <encrypt/decrypt> at device 0.1 (no driver attached)
xhci1: <AMD Matisse USB 3.0 controller> mem 0xfc600000-0xfc6fffff at device 0.3 on pci9
xhci1: 64 bytes context size, 64-bit DMA
usbus1 on xhci1
usbus1: 5.0Gbps Super Speed USB v3.0
hdac1: <AMD X570 HDA Controller> mem 0xfc800000-0xfc807fff at device 0.4 on pci9
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
acpi_button0: <Power Button> on acpi0
acpi_syscontainer0: <System Container> on acpi0
cpu0: <ACPI CPU> on acpi0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
ivhd0: <AMD-Vi/IOMMU ivhd with EFR> on acpi0
ivhd0: Flag:b0<IotlbSup,Coherent>
ivhd0: Features(type:0x11) MsiNumPPR = 0 PNBanks= 2 PNCounters= 0
ivhd0: Extended features[31:0]:22294ade<PPRSup,<b2>,NXSup,GTSup,IASup,GASup,PCSup> HATS = 0x2 GATS = 0x0 GLXSup = 0x1 SmiFSup = 0x1 SmiFRC = 0x2 GAMSup = 0x1 DualPortLogSup = 0x2 DualEventLogSup = 0x2
ivhd0: Extended features[62:32]:58f77ef<USSup,PprOvrflwEarlySup,PPRAutoRspSup,BlKStopMrkSup,PerfOptSup,MsiCapMmioSup,GIOSup,HASup,EPHSup,AttrFWSup> Max PASID: 0x2f DevTblSegSup = 0x3 MarcSup = 0x1
ivhd0: supported paging level:7, will use only: 4
ivhd0: device [0x8 - 0xfffe] config:0
ivhd0: device [0xff00 - 0xffff] config:0
ivhd0: PCI cap 0x190b640f@0x40 feature:19<IOTLB,EFR,CapExt>
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
module_register_init: MOD_LOAD (tmpfs, 0xffffffff80cd4380, 0xffffffff82e57b40) error 17
Timecounter "TSC-low" frequency 1899999544 Hz quality 1000
Timecounters tick every 1.000 msec
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
[nl_generic] genl_register_family: Registered family nlctrl id 16
[nl_generic] genl_register_cmds: Adding cmd GETFAMILY(3) to family nlctrl
ugen0.1: <AMD XHCI root HUB> at usbus0
ugen1.1: <AMD XHCI root HUB> at usbus1
nvme0: Allocated 200MB host memory buffer
uhub0 on usbus0
uhub0: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
uhub1 on usbus1
uhub1: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1
nvd0: <WDC WDS100T2B0C-00PXH0> NVMe namespace
nvd0: 953869MB (1953525168 512 byte sectors)
nvme1: Allocated 200MB host memory buffer
nvd1: <WD_BLACK SN770 1TB> NVMe namespace
nvd1: 953869MB (1953525168 512 byte sectors)
hdacc0: <NVIDIA (0x00a5) HDA CODEC> at cad 0 on hdac0
hdaa0: <NVIDIA (0x00a5) Audio Function Group> at nid 1 on hdacc0
pcm0: <NVIDIA (0x00a5) (HDMI/DP 8ch)> at nid 4 on hdaa0
pcm1: <NVIDIA (0x00a5) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm2: <NVIDIA (0x00a5) (HDMI/DP 8ch)> at nid 6 on hdaa0
pcm3: <NVIDIA (0x00a5) (HDMI/DP 8ch)> at nid 7 on hdaa0
hdacc1: <Realtek ALC892 HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek ALC892 Audio Function Group> at nid 1 on hdacc1
pcm4: <Realtek ALC892 (Rear Analog 5.1/2.0)> at nid 20,22,21 and 24,26 on hdaa1
pcm5: <Realtek ALC892 (Front Analog)> at nid 27 and 25 on hdaa1
pcm6: <Realtek ALC892 (Rear Digital)> at nid 30 on hdaa1
ada0 at ahcich1 bus 0 scbus1 target 0 lun 0
ada0: <ST500DM002-1BD142 KC45> ATA8-ACS SATA 3.x device
ada0: Serial Number Z3TA98JJ
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 476940MB (976773168 512 byte sectors)
ada0: quirks=0x1<4K>
sysctl_unregister_oid: failed(22) to unregister sysctl(tmpfs)
Trying to mount root from zfs:zamd/ROOT/default []...
uhub1: 8 ports with 8 removable, self powered
uhub0: 14 ports with 14 removable, self powered
ugen1.2: <Apple Inc. iPhone> at usbus1
ugen0.2: <vendor 0x05e3 USB2.0 Hub> at usbus0
uhub2 on uhub0
uhub2: <vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/88.32, addr 1> on usbus0
ugen1.3: <GenesysLogic USB2.1 Hub> at usbus1
uhub3 on uhub1
uhub3: <GenesysLogic USB2.1 Hub, class 9/0, rev 2.10/63.00, addr 2> on usbus1
uhub3: MTT enabled
Root mount waiting for: usbus0 usbus1
uhub2: 4 ports with 4 removable, self powered
uhub3: 4 ports with 4 removable, self powered
Root mount waiting for: usbus0 usbus1
ugen1.4: <vendor 0x413c Dell KB216 Wired Keyboard> at usbus1
ukbd0 on uhub3
ukbd0: <vendor 0x413c Dell KB216 Wired Keyboard, class 0/0, rev 2.00/33.08, addr 3> on usbus1
kbd2 at ukbd0
ugen0.3: <MSI MYSTIC LIGHT> at usbus0
ugen1.5: <Logitech USB Optical Mouse> at usbus1
ugen1.6: <GenesysLogic USB3.2 Hub> at usbus1
uhub4 on uhub1
uhub4: <GenesysLogic USB3.2 Hub, class 9/0, rev 3.20/63.00, addr 5> on usbus1
Root mount waiting for: usbus1
uhub4: 4 ports with 4 removable, self powered
nvidia0: <NVIDIA GeForce RTX 4070> 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  535.86.05  Fri Jul 14 20:11:40 UTC 2023
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: cannot find EC device
acpi_wmi0: 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_wmi1: <ACPI-WMI mapping> on acpi0
acpi_wmi1: cannot find EC device
acpi_wmi2: <ACPI-WMI mapping> on acpi0
acpi_wmi2: cannot find EC device
acpi_wmi2: Embedded MOF found
ACPI: \134_SB.WMIC.WQBA: 1 arguments were passed to a non-method ACPI object (Buffer) (20201113/nsarguments-361)
bridge0: Ethernet address: 58:9c:fc:10:ff:8c
tap0: Ethernet address: 58:9c:fc:10:ff:dd
bridge0: changing name to 're1bridge'
lo0: link state changed to UP
re1: link state changed to DOWN
re1: promiscuous mode enabled
re1bridge: link state changed to DOWN
tap0: promiscuous mode enabled
re1: link state changed to UP
re1bridge: link state changed to UP
re0: link state changed to DOWN
ipheth0 on uhub1
ipheth0: <AppleUSBEthernet> on usbus1
ue0: <USB Ethernet> on ipheth0
ue0: Ethernet address: 2a:ea:2d:e7:b2:a9
uhid0 on uhub3
uhid0: <vendor 0x413c Dell KB216 Wired Keyboard, class 0/0, rev 2.00/33.08, addr 3> on usbus1
uhid1 on uhub0
uhid1: <MSI MYSTIC LIGHT, class 0/0, rev 1.10/0.01, addr 2> on usbus0
ums0 on uhub3
ums0: <Logitech USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 4> on usbus1
ums0: 3 buttons and [XYZ] coordinates ID=0
Security policy loaded: MAC/ntpd (mac_ntpd)
pid 51809 (Plex Media Server), jid 1, uid 972: exited on signal 6
 
Could it be the "Module tmpfs failed to register: 17"?
In /var/log/messages, there are these lines highlighted:
Code:
Module tmpfs failed to register: 17
module_register_init: MOD_LOAD (tmpfs, 0xffffffff80cd4380, 0xffffffff82e57b40) error 17
sysctl_unregister_oid: failed(22) to unregister sysctl(tmpfs)
Here is dmesg output:
Code:
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.2-RELEASE-p2 GENERIC amd64
FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)
VT(efifb): resolution 1920x1080
module_register: cannot register tmpfs from kernel; already loaded from tmpfs.ko
Module tmpfs failed to register: 17
CPU: AMD Ryzen 7 5800X 8-Core Processor              (3800.08-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0xa20f10  Family=0x19  Model=0x21  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=0x219c97a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,PQE,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA>
  Structured Extended Features2=0x40069c<UMIP,PKU,OSPKE,VAES,VPCLMULQDQ,RDPID>
  Structured Extended Features3=0x10<FSRM>
  XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
  AMD Extended Feature Extensions ID EBX=0x111ef657<CLZERO,IRPerf,XSaveErPtr,RDPRU,WBNOINVD,IBPB,IBRS,STIBP,STIBP_ALWAYSON,PREFER_IBRS,SSBD>
  SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768
  TSC: P-state invariant, performance statistics
real memory  = 34359738368 (32768 MB)
avail memory = 33278283776 (31736 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <ALASKA A M I >
FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs
FreeBSD/SMP: 1 package(s) x 8 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: 1 11 15 2 8 7 5 12 10 9 6 14 4 3 13
random: entropy device external interface
kbd1 at kbdmux0
efirtc0: <EFI Realtime Clock>
efirtc0: registered as a time-of-day clock, resolution 1.000000s
smbios0: <System Management BIOS> at iomem 0xcda05000-0xcda0501e
smbios0: Version: 2.8, BCD Revision: 2.8
aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS,SHA1,SHA256>
acpi0: <ALASKA A M I >
acpi0: Power Button (fixed)
AMD-Vi: IVRS Info VAsize = 64 PAsize = 48 GVAsize = 2 flags:0
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
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
amdiommu0 at device 0.2 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.1 on pci0
pci1: <ACPI PCI bus> on pcib1
nvme0: <Generic NVMe Device> mem 0xfc900000-0xfc903fff,0xfc904000-0xfc9040ff at device 0.0 on pci1
pcib2: <ACPI PCI-PCI bridge> at device 1.2 on pci0
pci2: <ACPI PCI bus> on pcib2
xhci0: <XHCI (generic) USB 3.0 controller> mem 0xfc5a0000-0xfc5a7fff 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 0xfc580000-0xfc59ffff at device 0.1 on pci2
ahci0: AHCI v1.31 with 6 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
pcib3: <ACPI PCI-PCI bridge> at device 0.2 on pci2
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 0.0 on pci3
pci4: <ACPI PCI bus> on pcib4
nvme1: <Generic NVMe Device> mem 0xfc400000-0xfc403fff at device 0.0 on pci4
pcib5: <ACPI PCI-PCI bridge> at device 7.0 on pci3
pci5: <ACPI PCI bus> on pcib5
re0: <RealTek 8168 Gigabit Ethernet> port 0xe000-0xe0ff mem 0xfc304000-0xfc304fff,0xfc300000-0xfc303fff at device 0.0 on pci5
re0: Using 1 MSI-X message
re0: turning off MSI enable bit.
re0: Chip rev. 0x54000000
re0: MAC rev. 0x00100000
miibus0: <MII bus> on re0
rgephy0: <RTL8251/8153 1000BASE-T media interface> PHY 1 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re0: Using defaults for TSO: 65518/35/2048
re0: Ethernet address: 34:f7:16:9d:79:f6
re0: netmap queues/slots: TX 1/256, RX 1/256
pcib6: <ACPI PCI-PCI bridge> at device 9.0 on pci3
pci6: <ACPI PCI bus> on pcib6
re1: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xd000-0xd0ff mem 0xfc204000-0xfc204fff,0xfc200000-0xfc203fff at device 0.0 on pci6
re1: Using 1 MSI-X message
re1: turning off MSI enable bit.
re1: Chip rev. 0x54000000
re1: MAC rev. 0x00100000
miibus1: <MII bus> on re1
rgephy1: <RTL8251/8153 1000BASE-T media interface> PHY 1 on miibus1
rgephy1:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re1: Using defaults for TSO: 65518/35/2048
re1: Ethernet address: 2c:f0:5d:59:8d:d3
re1: netmap queues/slots: TX 1/256, RX 1/256
pcib7: <ACPI PCI-PCI bridge> at device 3.1 on pci0
pci7: <ACPI PCI bus> on pcib7
vgapci0: <VGA-compatible display> port 0xf000-0xf07f mem 0xfb000000-0xfbffffff,0xd0000000-0xdfffffff,0xe0000000-0xe1ffffff at device 0.0 on pci7
hdac0: <NVIDIA (0x22bc) HDA Controller> mem 0xfc080000-0xfc083fff at device 0.1 on pci7
pcib8: <ACPI PCI-PCI bridge> at device 7.1 on pci0
pci8: <ACPI PCI bus> on pcib8
pci8: <unknown> at device 0.0 (no driver attached)
pcib9: <ACPI PCI-PCI bridge> at device 8.1 on pci0
pci9: <ACPI PCI bus> on pcib9
pci9: <unknown> at device 0.0 (no driver attached)
pci9: <encrypt/decrypt> at device 0.1 (no driver attached)
xhci1: <AMD Matisse USB 3.0 controller> mem 0xfc600000-0xfc6fffff at device 0.3 on pci9
xhci1: 64 bytes context size, 64-bit DMA
usbus1 on xhci1
usbus1: 5.0Gbps Super Speed USB v3.0
hdac1: <AMD X570 HDA Controller> mem 0xfc800000-0xfc807fff at device 0.4 on pci9
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
acpi_button0: <Power Button> on acpi0
acpi_syscontainer0: <System Container> on acpi0
cpu0: <ACPI CPU> on acpi0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
ivhd0: <AMD-Vi/IOMMU ivhd with EFR> on acpi0
ivhd0: Flag:b0<IotlbSup,Coherent>
ivhd0: Features(type:0x11) MsiNumPPR = 0 PNBanks= 2 PNCounters= 0
ivhd0: Extended features[31:0]:22294ade<PPRSup,<b2>,NXSup,GTSup,IASup,GASup,PCSup> HATS = 0x2 GATS = 0x0 GLXSup = 0x1 SmiFSup = 0x1 SmiFRC = 0x2 GAMSup = 0x1 DualPortLogSup = 0x2 DualEventLogSup = 0x2
ivhd0: Extended features[62:32]:58f77ef<USSup,PprOvrflwEarlySup,PPRAutoRspSup,BlKStopMrkSup,PerfOptSup,MsiCapMmioSup,GIOSup,HASup,EPHSup,AttrFWSup> Max PASID: 0x2f DevTblSegSup = 0x3 MarcSup = 0x1
ivhd0: supported paging level:7, will use only: 4
ivhd0: device [0x8 - 0xfffe] config:0
ivhd0: device [0xff00 - 0xffff] config:0
ivhd0: PCI cap 0x190b640f@0x40 feature:19<IOTLB,EFR,CapExt>
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
module_register_init: MOD_LOAD (tmpfs, 0xffffffff80cd4380, 0xffffffff82e57b40) error 17
Timecounter "TSC-low" frequency 1899999544 Hz quality 1000
Timecounters tick every 1.000 msec
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
[nl_generic] genl_register_family: Registered family nlctrl id 16
[nl_generic] genl_register_cmds: Adding cmd GETFAMILY(3) to family nlctrl
ugen0.1: <AMD XHCI root HUB> at usbus0
ugen1.1: <AMD XHCI root HUB> at usbus1
nvme0: Allocated 200MB host memory buffer
uhub0 on usbus0
uhub0: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
uhub1 on usbus1
uhub1: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1
nvd0: <WDC WDS100T2B0C-00PXH0> NVMe namespace
nvd0: 953869MB (1953525168 512 byte sectors)
nvme1: Allocated 200MB host memory buffer
nvd1: <WD_BLACK SN770 1TB> NVMe namespace
nvd1: 953869MB (1953525168 512 byte sectors)
hdacc0: <NVIDIA (0x00a5) HDA CODEC> at cad 0 on hdac0
hdaa0: <NVIDIA (0x00a5) Audio Function Group> at nid 1 on hdacc0
pcm0: <NVIDIA (0x00a5) (HDMI/DP 8ch)> at nid 4 on hdaa0
pcm1: <NVIDIA (0x00a5) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm2: <NVIDIA (0x00a5) (HDMI/DP 8ch)> at nid 6 on hdaa0
pcm3: <NVIDIA (0x00a5) (HDMI/DP 8ch)> at nid 7 on hdaa0
hdacc1: <Realtek ALC892 HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek ALC892 Audio Function Group> at nid 1 on hdacc1
pcm4: <Realtek ALC892 (Rear Analog 5.1/2.0)> at nid 20,22,21 and 24,26 on hdaa1
pcm5: <Realtek ALC892 (Front Analog)> at nid 27 and 25 on hdaa1
pcm6: <Realtek ALC892 (Rear Digital)> at nid 30 on hdaa1
ada0 at ahcich1 bus 0 scbus1 target 0 lun 0
ada0: <ST500DM002-1BD142 KC45> ATA8-ACS SATA 3.x device
ada0: Serial Number Z3TA98JJ
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 476940MB (976773168 512 byte sectors)
ada0: quirks=0x1<4K>
sysctl_unregister_oid: failed(22) to unregister sysctl(tmpfs)
Trying to mount root from zfs:zamd/ROOT/default []...
uhub1: 8 ports with 8 removable, self powered
uhub0: 14 ports with 14 removable, self powered
ugen1.2: <Apple Inc. iPhone> at usbus1
ugen0.2: <vendor 0x05e3 USB2.0 Hub> at usbus0
uhub2 on uhub0
uhub2: <vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/88.32, addr 1> on usbus0
ugen1.3: <GenesysLogic USB2.1 Hub> at usbus1
uhub3 on uhub1
uhub3: <GenesysLogic USB2.1 Hub, class 9/0, rev 2.10/63.00, addr 2> on usbus1
uhub3: MTT enabled
Root mount waiting for: usbus0 usbus1
uhub2: 4 ports with 4 removable, self powered
uhub3: 4 ports with 4 removable, self powered
Root mount waiting for: usbus0 usbus1
ugen1.4: <vendor 0x413c Dell KB216 Wired Keyboard> at usbus1
ukbd0 on uhub3
ukbd0: <vendor 0x413c Dell KB216 Wired Keyboard, class 0/0, rev 2.00/33.08, addr 3> on usbus1
kbd2 at ukbd0
ugen0.3: <MSI MYSTIC LIGHT> at usbus0
ugen1.5: <Logitech USB Optical Mouse> at usbus1
ugen1.6: <GenesysLogic USB3.2 Hub> at usbus1
uhub4 on uhub1
uhub4: <GenesysLogic USB3.2 Hub, class 9/0, rev 3.20/63.00, addr 5> on usbus1
Root mount waiting for: usbus1
uhub4: 4 ports with 4 removable, self powered
nvidia0: <NVIDIA GeForce RTX 4070> 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  535.86.05  Fri Jul 14 20:11:40 UTC 2023
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: cannot find EC device
acpi_wmi0: 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_wmi1: <ACPI-WMI mapping> on acpi0
acpi_wmi1: cannot find EC device
acpi_wmi2: <ACPI-WMI mapping> on acpi0
acpi_wmi2: cannot find EC device
acpi_wmi2: Embedded MOF found
ACPI: \134_SB.WMIC.WQBA: 1 arguments were passed to a non-method ACPI object (Buffer) (20201113/nsarguments-361)
bridge0: Ethernet address: 58:9c:fc:10:ff:8c
tap0: Ethernet address: 58:9c:fc:10:ff:dd
bridge0: changing name to 're1bridge'
lo0: link state changed to UP
re1: link state changed to DOWN
re1: promiscuous mode enabled
re1bridge: link state changed to DOWN
tap0: promiscuous mode enabled
re1: link state changed to UP
re1bridge: link state changed to UP
re0: link state changed to DOWN
ipheth0 on uhub1
ipheth0: <AppleUSBEthernet> on usbus1
ue0: <USB Ethernet> on ipheth0
ue0: Ethernet address: 2a:ea:2d:e7:b2:a9
uhid0 on uhub3
uhid0: <vendor 0x413c Dell KB216 Wired Keyboard, class 0/0, rev 2.00/33.08, addr 3> on usbus1
uhid1 on uhub0
uhid1: <MSI MYSTIC LIGHT, class 0/0, rev 1.10/0.01, addr 2> on usbus0
ums0 on uhub3
ums0: <Logitech USB Optical Mouse, class 0/0, rev 2.00/72.00, addr 4> on usbus1
ums0: 3 buttons and [XYZ] coordinates ID=0
Security policy loaded: MAC/ntpd (mac_ntpd)
pid 51809 (Plex Media Server), jid 1, uid 972: exited on signal 6
If you are running GENERIC [1] kernel on amd64, you already have tmpfs functionality in the kernel itself.
So kldload'ing tmpfs.ko via /boot/loader.conf or /etc/rc.conf[.local], it should fail. It is quite normal.

But if you are using MINIMAL built yourself (or custem kernel config including /usr/src/sys/amd64/conf/MINIMAL with minimum modifications), failing to kldload tmpfs.ko is abnormal.

[1] https://cgit.freebsd.org/src/tree/sys/amd64/conf/GENERIC?h=releng/13.2

[2] https://cgit.freebsd.org/src/tree/sys/amd64/conf/MINIMAL?h=releng/13.2
 
If you are running GENERIC [1] kernel on amd64, you already have tmpfs functionality in the kernel itself.
So kldload'ing tmpfs.ko via /boot/loader.conf or /etc/rc.conf[.local], it should fail. It is quite normal.

But if you are using MINIMAL built yourself (or custem kernel config including /usr/src/sys/amd64/conf/MINIMAL with minimum modifications), failing to kldload tmpfs.ko is abnormal.

[1] https://cgit.freebsd.org/src/tree/sys/amd64/conf/GENERIC?h=releng/13.2

[2] https://cgit.freebsd.org/src/tree/sys/amd64/conf/MINIMAL?h=releng/13.2
I'm running generic kernel, but I have no settings in /etc/rc.conf or /boot/loader.conf to load tmpfs.ko. I mount tmpfs via /etc/fstab.
 
For your info:
I have the line below in my /etc/fstab.
Limiting size mount option below 5G caused build failure of lang/gcc12 with OPTION LTO_BOOTSTRAP (default for amd64), so I have stopped limiting.
And with this configuration, I never saw tmpfs.ko kldload'ed.

Code:
tmpfs    /tmp    tmpfs    rw,mode=1777    0    0


Note that /etc/defaults/rc.conf has the line below. So if, for example, you have any script which configures mfs (or tmpfs itself directly) with explicit kldload, you could be bitten by it (just a warning each, though),

Code:
mfs_type="auto"    # "md", "tmpfs", "auto" to prefer tmpfs with md as fallback

For me, searching "tmpfs" on /etc/rc.d/ and /usr/local/etc/rc.d/, as examples, resulted as below.

Code:
% rg "tmpfs" /etc/rc.d/
/etc/rc.d/linux
79:             linux_mount tmpfs "${_emul_path}/dev/shm" -o nocover,mode=1777

/etc/rc.d/dhclient
53:     # e.g. if /var/run is a tmpfs

/etc/rc.d/tmp
35:desc="Configure tmpfs"

/etc/rc.d/var_run
38:     df -ttmpfs /var/run > /dev/null 2>&1 &&
43:     df -ttmpfs /var/run > /dev/null 2>&1 &&
% rg "tmpfs" /usr/local/etc/rc.d/ 
/usr/local/etc/rc.d/samba_server
54:    # Make sure we have our RUNDIR, even if it's on a tmpfs

No explicit kldload tmpfs found.
 
tmpfs(5) is included with the GENERIC kernel.


Besides already being included, many modules will auto-load if accessed. In other words, calling tmpfs in fstab automagically loads the module if it's not already loaded.
Exactly. :)
So as bxbzq alrealy stated using GENERIC, any errors related with kldload/kldunload of tmpfs logged in /var/log/messages should be the results of explicit (not implicit) kldload / kldunload.
 
I overlooked the line of tmpfs_load="YES" in /boot/loader.conf. Now it is removed. Rebooting the system and the message "Module tmpfs failed to register: 17" goes away.

But, the black screen issue still persists.

For your info: I have the line below in my /etc/fstab. Limiting size mount option below 5G caused build failure of lang/gcc12 with OPTION LTO_BOOTSTRAP (default for amd64), so I have stopped limiting. And with this configuration, I never saw tmpfs.ko kldload'ed.
Code:
tmpfs /tmp tmpfs rw,mode=1777 0 0
Note that /etc/defaults/rc.conf has the line below. So if, for example, you have any script which configures mfs (or tmpfs itself directly) with explicit kldload, you could be bitten by it (just a warning each, though),
Code:
mfs_type="auto" # "md", "tmpfs", "auto" to prefer tmpfs with md as fallback
For me, searching "tmpfs" on /etc/rc.d/ and /usr/local/etc/rc.d/, as examples, resulted as below.
Code:
% rg "tmpfs" /etc/rc.d/ /etc/rc.d/linux 79: linux_mount tmpfs "${_emul_path}/dev/shm" -o nocover,mode=1777 /etc/rc.d/dhclient 53: # e.g. if /var/run is a tmpfs /etc/rc.d/tmp 35:desc="Configure tmpfs" /etc/rc.d/var_run 38: df -ttmpfs /var/run > /dev/null 2>&1 && 43: df -ttmpfs /var/run > /dev/null 2>&1 && % rg "tmpfs" /usr/local/etc/rc.d/ /usr/local/etc/rc.d/samba_server 54: # Make sure we have our RUNDIR, even if it's on a tmpfs
No explicit kldload tmpfs found.
 
I overlooked the line of tmpfs_load="YES" in /boot/loader.conf. Now it is removed. Rebooting the system and the message "Module tmpfs failed to register: 17" goes away.

But, the black screen issue still persists.
How do you start Xfce in your .xinitrc or something equivalent?
I'm not using Xfce for a long time, but last time I tried it, I had lines below in my .xinitrc for startx.

export WINDOWMANAGER=XFce4 exec startxfce4 --with-ck-launch

And previously to the above, used below.

export WINDOWMANAGER=XFce4 exec ck-launch-session startxfce4

I've never encountered such a black screen on exit at the moments.

Currently, I'm using MATE as my desktop environment.

export WINDOWMANAGER=Mate LIBOVERLAY_SCROLLBAR=0 exec dbus-launch --exit-with-session ck-launch-session mate-session

Never encountering black screen on exit issues.

Note that all non-DE-specific lines are ommitted above.
 
How do you start Xfce in your .xinitrc or something equivalent?
I'm not using Xfce for a long time, but last time I tried it, I had lines below in my .xinitrc for startx.

export WINDOWMANAGER=XFce4 exec startxfce4 --with-ck-launch
Just tried. No magic.
I used to have an old amd graphics card on this machine and xfce worked just fine. If I remember it correctly, ever since I replaced it with a new nvidia RTX4070, the black screen issue has been around. I suspect it is the nvidia driver related. But a nvidia-driver re-installation or upgrade didn't make a difference.
 
Are you UEFI booting or using CSM to boot the machine? The reason I ask is because they use different graphics calls for the console (UEFI GOP vs. VBE).

I have a system EUFI booting with an RTX3080 and I can switch between X and console without issues.

If you don't know how the system booted, look at the machdep.bootmethod sysctl, it will say "UEFI" or "BIOS".
 
I don't have an answer for you, just a little bit more evidence I can add.

I had been using a very old Apple Cinema Display with no issues. I recently switched to a Samsung UR59C and have been seeing the exact same behavior you describe.

I have no idea what's causing it. Maybe it's 1080p vs 4k. Maybe it's that the Apple display had a USB bus, and the Samsung doesn't. Maybe it's something completely unrelated.
 
Are you UEFI booting or using CSM to boot the machine? The reason I ask is because they use different graphics calls for the console (UEFI GOP vs. VBE). I have a system EUFI booting with an RTX3080 and I can switch between X and console without issues. If you don't know how the system booted, look at the machdep.bootmethod sysctl, it will say "UEFI" or "BIOS".
It's UEFI booting.
 
Back
Top