"GLX" missing on display ":0"


#1

I’ve recently switched to TrueOS from FreeBSD and ran into an issue concerning the support of the GLX extensions. I’m running TrueOS with the “nv” driver but have run into the same issue when using the default vesa driver. I was wondering if anyone else has encountered this problem with X not being able to find the GLX libraries. I’ve included my dmesg, xorg.conf files. I can provide the log for X too if needed.

--------- DMESG --------

Copyright © 1992-2017 The FreeBSD Project.
Copyright © 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 12.0-CURRENT #66 ac2f0aa3b(trueos-stable)-dirty: Wed Jun 21 01:09:23 UTC 2017
root@gauntlet:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0)
VT(efifb): resolution 1024x768
CPU: AMD FX™-8150 Eight-Core Processor (3600.15-MHz K8-class CPU)
Origin=“AuthenticAMD” Id=0x600f12 Family=0x15 Model=0x1 Stepping=2
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=0x1e98220b<SSE3,PCLMULQDQ,MON,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,AESNI,XSAVE,OSXSAVE,AVX>
AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
AMD Features2=0x1c9bfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,NodeId,Topology,PCXC,PNXC>
SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=65536
TSC: P-state invariant, performance statistics
real memory = 34359738368 (32768 MB)
avail memory = 33251024896 (31710 MB)
Event timer “LAPIC” quality 100
ACPI APIC Table:
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
FreeBSD/SMP: 1 package(s) x 8 core(s)
random: unblocking device.
WARNING: VIMAGE (virtualized network stack) is a highly experimental feature.
ACPI BIOS Warning (bug): Optional FADT field Pm2ControlBlock has valid Length but zero Address: 0x0000000000000000/0x1 (20170303/tbfadt-796)
ioapic0 <Version 2.1> irqs 0-23 on motherboard
ioapic1 <Version 2.1> irqs 24-55 on motherboard
SMP: AP CPU #1 Launched!
SMP: AP CPU #4 Launched!
SMP: AP CPU #5 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #7 Launched!
SMP: AP CPU #6 Launched!
Timecounter “TSC-low” frequency 1800075509 Hz quality 1000
random: entropy device external interface
netmap: loaded module
module_register_init: MOD_LOAD (vesa, 0xffffffff80f55210, 0) error 19
kbd1 at kbdmux0
nexus0
cryptosoft0: on motherboard
aesni0: <AES-CBC,AES-XTS,AES-GCM,AES-ICM> on motherboard
acpi0: on motherboard
acpi0: Power Button (fixed)
cpu0: on acpi0
cpu1: on acpi0
cpu2: on acpi0
cpu3: on acpi0
cpu4: on acpi0
cpu5: on acpi0
cpu6: on acpi0
cpu7: on acpi0
attimer0: port 0x40-0x43 irq 0 on acpi0
Timecounter “i8254” frequency 1193182 Hz quality 0
Event timer “i8254” frequency 1193182 Hz quality 100
atrtc0: port 0x70-0x71 irq 8 on acpi0
Event timer “RTC” frequency 32768 Hz quality 0
hpet0: iomem 0xfed00000-0xfed003ff 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-safe” frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
pcib0: port 0xcf8-0xcff on acpi0
pci0: on pcib0
pci0: <base peripheral, IOMMU> at device 0.2 (no driver attached)
pcib1: irq 52 at device 3.0 on pci0
pci1: on pcib1
vgapci0: port 0xe000-0xe07f mem 0xfd000000-0xfdffffff,0xc0000000-0xcfffffff,0xd0000000-0xd1ffffff irq 28 at device 0.0 on pci1
vgapci0: Boot video device
hdac0: <NVIDIA (0x0be3) HDA Controller> mem 0xfe080000-0xfe083fff irq 29 at device 0.1 on pci1
pcib2: irq 52 at device 4.0 on pci0
pci2: on pcib2
xhci0: <XHCI (generic) USB 3.0 controller> mem 0xfe400000-0xfe400fff irq 44 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
pcib3: irq 53 at device 6.0 on pci0
pci3: on pcib3
xhci1: <XHCI (generic) USB 3.0 controller> mem 0xfe300000-0xfe300fff irq 51 at device 0.0 on pci3
xhci1: 32 bytes context size, 64-bit DMA
usbus1 on xhci1
usbus1: 5.0Gbps Super Speed USB v3.0
ahci0: <AMD SB7x0/SB8x0/SB9x0 AHCI SATA controller> port 0xf040-0xf047,0xf030-0xf033,0xf020-0xf027,0xf010-0xf013,0xf000-0xf00f mem 0xfe50b000-0xfe50b3ff irq 19 at device 17.0 on pci0
ahci0: AHCI v1.20 with 6 6Gbps ports, Port Multiplier supported
ahci0: quirks=0x22000<ATI_PMP_BUG,1MSI>
ahcich0: at channel 0 on ahci0
ahcich1: at channel 1 on ahci0
ahcich2: at channel 2 on ahci0
ahcich3: at channel 3 on ahci0
ahcich4: at channel 4 on ahci0
ahcich5: at channel 5 on ahci0
ohci0: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfe50a000-0xfe50afff irq 18 at device 18.0 on pci0
usbus2 on ohci0
usbus2: 12Mbps Full Speed USB v1.0
ehci0: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xfe509000-0xfe5090ff irq 17 at device 18.2 on pci0
usbus3: EHCI version 1.0
usbus3 on ehci0
usbus3: 480Mbps High Speed USB v2.0
ohci1: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfe508000-0xfe508fff irq 18 at device 19.0 on pci0
usbus4 on ohci1
usbus4: 12Mbps Full Speed USB v1.0
ehci1: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xfe507000-0xfe5070ff irq 17 at device 19.2 on pci0
usbus5: EHCI version 1.0
usbus5 on ehci1
usbus5: 480Mbps High Speed USB v2.0
hdac1: mem 0xfe500000-0xfe503fff irq 16 at device 20.2 on pci0
isab0: at device 20.3 on pci0
isa0: on isab0
pcib4: at device 20.4 on pci0
pci4: on pcib4
ohci2: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfe506000-0xfe506fff irq 18 at device 20.5 on pci0
usbus6 on ohci2
usbus6: 12Mbps Full Speed USB v1.0
pcib5: at device 21.0 on pci0
pci5: on pcib5
alc0: port 0xd000-0xd07f mem 0xfe200000-0xfe23ffff irq 16 at device 0.0 on pci5
alc0: 11776 Tx FIFO, 12032 Rx FIFO
alc0: Using 1 MSIX message(s).
miibus0: on alc0
atphy0: <Atheros F1 10/100/1000 PHY> PHY 0 on miibus0
atphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
alc0: Using defaults for TSO: 65518/35/2048
alc0: Ethernet address: d8:cb:8a:71:05:5a
pcib6: at device 21.1 on pci0
pci6: on pcib6
ral0: mem 0xfe100000-0xfe10ffff irq 17 at device 0.0 on pci6
ral0: MAC/BBP RT2872 (rev 0x0202), RF RT2720 (MIMO 1T2R), address e0:69:95:22:f6:69
ohci3: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfe505000-0xfe505fff irq 18 at device 22.0 on pci0
usbus7 on ohci3
usbus7: 12Mbps Full Speed USB v1.0
ehci2: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xfe504000-0xfe5040ff irq 17 at device 22.2 on pci0
usbus8: EHCI version 1.0
usbus8 on ehci2
usbus8: 480Mbps High Speed USB v2.0
acpi_button0: 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: irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
ppc0: cannot reserve I/O port range
hwpstate0: <Cool`n’Quiet 2.0> on cpu0
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
Timecounters tick every 1.000 msec
hdacc0: at cad 0 on hdac0
hdaa0: at nid 1 on hdacc0
pcm0: <NVIDIA GT21x (HDMI/DP 8ch)> at nid 5 on hdaa0
hdacc1: at cad 1 on hdac0
hdaa1: at nid 1 on hdacc1
pcm1: <NVIDIA GT21x (HDMI/DP 8ch)> at nid 5 on hdaa1
hdacc2: at cad 2 on hdac0
hdaa2: at nid 1 on hdacc2
pcm2: <NVIDIA GT21x (HDMI/DP 8ch)> at nid 5 on hdaa2
hdacc3: at cad 3 on hdac0
hdaa3: at nid 1 on hdacc3
pcm3: <NVIDIA GT21x (HDMI/DP 8ch)> at nid 5 on hdaa3
hdacc4: at cad 0 on hdac1
hdaa4: at nid 1 on hdacc4
pcm4: <Realtek ALC1150 (Rear Analog 7.1/2.0)> at nid 20,22,21,23 and 24,26 on hdaa4
pcm5: <Realtek ALC1150 (Front Analog)> at nid 27 and 25 on hdaa4
pcm6: <Realtek ALC1150 (Internal Digital)> at nid 17 on hdaa4
pcm7: <Realtek ALC1150 (Rear Digital)> at nid 30 on hdaa4
ugen5.1: at usbus5
ugen4.1: at usbus4
ugen1.1: <0x1106 XHCI root HUB> at usbus1
ugen7.1: at usbus7
ugen0.1: <0x1106 XHCI root HUB> at usbus0
ugen8.1: at usbus8
ugen6.1: at usbus6
ugen2.1: at usbus2
uhub0: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus5
uhub1: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus6
uhub2: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus8
uhub3: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
ugen3.1: at usbus3
uhub6: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
uhub4: <0x1106 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
uhub7: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus7
uhub5: <0x1106 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1
uhub8: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
uhub1: 2 ports with 2 removable, self powered
uhub7: 4 ports with 4 removable, self powered
uhub3: 5 ports with 5 removable, self powered
uhub6: 5 ports with 5 removable, self powered
uhub5: 5 ports with 4 removable, self powered
uhub4: 5 ports with 4 removable, self powered
ugen0.2: <vendor 0x2109 USB2.0 Hub> at usbus0
uhub9 on uhub4
uhub9: <vendor 0x2109 USB2.0 Hub, class 9/0, rev 2.10/4.20, addr 1> on usbus0
ugen1.2: <vendor 0x2109 USB2.0 Hub> at usbus1
uhub10 on uhub5
uhub10: <vendor 0x2109 USB2.0 Hub, class 9/0, rev 2.10/4.20, addr 1> on usbus1
uhub10: 4 ports with 4 removable, self powered
uhub9: 4 ports with 4 removable, self powered
uhub2: 4 ports with 4 removable, self powered
uhub0: 5 ports with 5 removable, self powered
uhub8: 5 ports with 5 removable, self powered
ugen5.2: at usbus5
ugen2.2: <Razer Razer DeathAdder 2013> at usbus2
ukbd0 on uhub6
ukbd0: <Razer Razer DeathAdder 2013, class 0/0, rev 2.00/2.00, addr 2> on usbus2
kbd2 at ukbd0
ukbd1 on uhub6
ukbd1: <Razer Razer DeathAdder 2013, class 0/0, rev 2.00/2.00, addr 2> on usbus2
kbd3 at ukbd1
ugen2.3: <Razer Razer BlackWidow Ultimate 2013> at usbus2
ukbd2 on uhub6
ukbd2: <Razer Razer BlackWidow Ultimate 2013, class 0/0, rev 2.00/2.00, addr 3> on usbus2
kbd4 at ukbd2
ukbd3 on uhub6
ukbd3: <Razer Razer BlackWidow Ultimate 2013, class 0/0, rev 2.00/2.00, addr 3> on usbus2
kbd5 at ukbd3
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <WDC WD40PURX-64GVNY0 80.00A80> ACS-2 ATA SATA 3.x device
ada0: Serial Number WD-WCC4E7SSJ21N
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 3815447MB (7814037168 512 byte sectors)
ada0: quirks=0x1<4K>
cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
cd0: Removable CD-ROM SCSI device
cd0: Serial Number KU0160F01111906BF0F3
cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)
cd0: Attempt
ada1 at ahcich3 bus 0 scbus3 target 0 lun 0
ada1: <WDC WD40PURX-64GVNY0 80.00A80> ACS-2 ATA SATA 3.x device
ada1: Serial Number WD-WCC4E0TZSAH4
ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 3815447MB (7814037168 512 byte sectors)
ada1: quirks=0x1<4K>
ada2 at ahcich5 bus 0 scbus5 target 0 lun 0
ada2: ATA8-ACS SATA 2.x device
ada2: Serial Number 9QJ56D7G
ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada2: Command Queueing enabled
ada2: 953869MB (1953525168 512 byte sectors)
Trying to mount root from zfs:tank/ROOT/12.0-CURRENT-up-20170706_003154 []…
GEOM_MIRROR: Device mirror/swapmirror launched (2/2).
Cuse v0.1.34 @ /dev/cuse
fuse-freebsd: version 0.4.4, FUSE ABI 7.8
ums0 on uhub6
ums0: <Razer Razer DeathAdder 2013, class 0/0, rev 2.00/2.00, addr 2> on usbus2
ums0: 5 buttons and [XYZ] coordinates ID=0
ums1 on uhub6
ums1: <Razer Razer BlackWidow Ultimate 2013, class 0/0, rev 2.00/2.00, addr 3> on usbus2
ums1: 3 buttons and [XYZ] coordinates ID=0
NVRM: The NVIDIA GeForce 210 GPU installed in this system is
NVRM: supported through the NVIDIA 340.xx Legacy drivers. Please
NVRM: visit http://www.nvidia.com/object/unix.html for more
NVRM: information. The 375.39 NVIDIA driver will ignore
NVRM: this GPU. Continuing probe…
nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 375.39 Tue Jan 31 19:13:49 PST 2017
GEOM_ELI: Device label/swap0.eli created.
GEOM_ELI: Encryption: AES-XTS 128
GEOM_ELI: Crypto: hardware
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, default to accept, logging disabled
wlan0: Ethernet address: e0:69:95:22:f6:69
alc0: link state changed to DOWN
ipheth0 on uhub0
ipheth0: <Apple Inc. iPhone, class 0/0, rev 2.00/5.20, addr 2> on usbus5
ue0: on ipheth0
ue0: Ethernet address: 6a:96:7b:60:8b:26

-------X.log------------

XFree86 configuration file for RoFreeSBIE

Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 “Screen0” 0 0
EndSection

Section "Files"
ModulePath "/usr/local/lib/modules"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/share/fonts/cyrillic/"
FontPath "/usr/local/share/fonts/TrueType/"
FontPath "/usr/local/share/fonts/illinoy/"
FontPath "/usr/local/share/fonts/webfonts/"
FontPath "/usr/local/share/fonts/misc/"
FontPath "/usr/local/share/fonts/TTF/"
FontPath "/usr/local/share/fonts/Speedo/"
FontPath "/usr/local/share/fonts/Type1/"
FontPath "/usr/local/share/fonts/CID/"
FontPath "/usr/local/share/fonts/75dpi/"
FontPath "/usr/local/share/fonts/100dpi/"
FontPath "/usr/local/share/fonts/dejavu/"
FontPath "/usr/local/share/fonts/cyrillic/"
FontPath "/usr/local/share/fonts/hebrew/"
FontPath "/usr/local/share/fonts/vietnamese/"
FontPath "/usr/local/share/fonts/indic/"
FontPath "/usr/local/share/fonts/fonts-indic/"
FontPath "/usr/local/share/fonts/ae_fonts1/AAHS"
FontPath "/usr/local/share/fonts/ae_fonts1/AGA"
FontPath "/usr/local/share/fonts/ae_fonts1/FS"
FontPath "/usr/local/share/fonts/ae_fonts1/Kasr"
FontPath "/usr/local/share/fonts/ae_fonts1/MCS"
FontPath "/usr/local/share/fonts/ae_fonts1/Shmookh"
FontPath "/usr/local/share/fonts/local/"
EndSection

Section "Module"
Load "extmod"
Load "record"
Load "dbe"
Load "glx"
Load "dri"
Load "dri2"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
EndSection

Section "Device"
Identifier "Card0"
Driver "nv"
BusID "1:0:0"
EndSection

Section "DRI"
Mode 0666
EndSection


#2

nv is the X “Noveau” driver, correct? You have Nvidia hardware? Use the AppCafe to install the nvidia-driver that is correct for your hardware and give that a shot.


#3

I did try to install the actual nvidia drivers before trying the nouveau
when doing the initial install but the nvidia drivers wouldn’t configure
properly. The screen goes black for a few seconds before TrueOS comes
back and suggests that I use the VESA drivers. Which would be fine for
me personally but even the VESA drivers don’t seem to be loading the
Mesa modules. I’ll get the same error message when I load up a program
like emacs under X with VESA. For most programs it isn’t a big deal but
I need to do some opengl programming and need to have at least software
emulation of the libraries running. The nouveau drivers to seem to
install properly and with them I do notice an improvement in the speed
of graphics rendering, it’s just that I run into the same problem of the
system not finding the GLX extension. GLUT does seem to be installed
correctly as I can link to the library and compile things fine. I
believe the X system just isn’t being configured properly to use the
MESA extension.

roger


#4

You’re using the wrong Nvidia driver. :wink:


#5

I missed that. @rmidmore if you look in AppCafe there are at least three nvidia-driver packages. Uninstall whatever you have installed and install the nvidia-driver-340 package (that may not be the exact name)


#6

Dana & Mike,
Thank you for your help. Driver-340 did the trick. TrueOS for some
reason still wouldn’t auto install the driver but just switching “nv” to
"nvidia" in xorg.conf got things running. Also nvidia-xconfig worked
without any errors.

roger