do you have an .xsession file in your /home/ directory? machdep.allowaperture=1 should not be needed for xenodm to work...
I once had a similar issue where the X server would start with a black screen until I toggled either the keyboard brightness setting or the keyboard shortcut for internal / external monitor. hth Fred On Sat, 2 Mar 2019 at 23:13, Bryan Avery <wingnut...@gmail.com> wrote: > > I have been unable to start X with a new install of OpenBSD on my > laptop. I am a beginner with OpenBSD. This is a Skylake laptop with > Intel 520 QHD graphics. During boot, the console shows with underscan, > then the resolution increases (but is still less than native), then > goes black upon starting Xorg. If I disable xenodm, the console is > visible and I am able to login on the laptop. The first time I enabled > and started xenodm, the screen went black. I was able to connect > through SSH and retrieve the Xorg.0.log which told me to add > machdep.allowaperture=1 to /etc/sysctl.conf which I did, but the > screen went black again after I rebooted. I am not able to understand > what went wrong from looking at the dmesg and Xorg.0.log. I have > tested this with and without a config in /etc/X11/xorg.conf.d and get > the same result. I am currently using /etc/X11/xorg.conf.d/intel.conf > with contents: > > Section "Device" > Identifier "drm" > Driver "intel" > Option "TearFree" "true" > EndSection > > dmesg: > > OpenBSD 6.4 (GENERIC.MP) #7: Thu Feb 28 18:56:25 CET 2019 > > r...@syspatch-64-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 8433565696 (8042MB) > avail mem = 8168701952 (7790MB) > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xe0000 (94 entries) > bios0: vendor Dell Inc. version "1.9.0" date 08/31/2018 > bios0: Dell Inc. XPS 13 9350 > acpi0 at bios0: rev 2 > acpi0: sleep states S0 S3 S4 S5 > acpi0: tables DSDT FACP APIC FPDT FIDT MCFG HPET SSDT LPIT SSDT SSDT > SSDT DBGP DBG2 SSDT BOOT SSDT UEFI SSDT MSDM SSDT SLIC TCPA DMAR BGRT > ASF! > acpi0: wakeup devices PEGP(S4) PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) > PEG2(S4) PXSX(S4) RP09(S4) PXSX(S4) RP10(S4) PXSX(S4) RP11(S4) > PXSX(S4) RP12(S4) PXSX(S4) RP13(S4) [...] > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2295.40 MHz, 06-4e-03 > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN > cpu0: 256KB 64b/line 8-way L2 cache > cpu0: smt 0, core 0, package 0 > mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges > cpu0: apic clock running at 23MHz > cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE > cpu1 at mainbus0: apid 2 (application processor) > cpu1: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2294.66 MHz, 06-4e-03 > cpu1: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN > cpu1: 256KB 64b/line 8-way L2 cache > cpu1: smt 0, core 1, package 0 > cpu2 at mainbus0: apid 1 (application processor) > cpu2: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2294.65 MHz, 06-4e-03 > cpu2: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN > cpu2: 256KB 64b/line 8-way L2 cache > cpu2: smt 1, core 0, package 0 > cpu3 at mainbus0: apid 3 (application processor) > cpu3: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2294.65 MHz, 06-4e-03 > cpu3: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN > cpu3: 256KB 64b/line 8-way L2 cache > cpu3: smt 1, core 1, package 0 > ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins > acpimcfg0 at acpi0 > acpimcfg0: addr 0xe0000000, bus 0-255 > acpihpet0 at acpi0: 23999999 Hz > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus -1 (PEG0) > acpiprt2 at acpi0: bus -1 (PEG1) > acpiprt3 at acpi0: bus -1 (PEG2) > acpiprt4 at acpi0: bus 60 (RP09) > acpiprt5 at acpi0: bus -1 (RP10) > acpiprt6 at acpi0: bus -1 (RP11) > acpiprt7 at acpi0: bus -1 (RP12) > acpiprt8 at acpi0: bus -1 (RP13) > acpiprt9 at acpi0: bus 1 (RP01) > acpiprt10 at acpi0: bus -1 (RP02) > acpiprt11 at acpi0: bus -1 (RP03) > acpiprt12 at acpi0: bus -1 (RP04) > acpiprt13 at acpi0: bus 58 (RP05) > acpiprt14 at acpi0: bus 59 (RP06) > acpiprt15 at acpi0: bus -1 (RP07) > acpiprt16 at acpi0: bus -1 (RP08) > acpiprt17 at acpi0: bus -1 (RP17) > acpiprt18 at acpi0: bus -1 (RP18) > acpiprt19 at acpi0: bus -1 (RP19) > acpiprt20 at acpi0: bus -1 (RP20) > acpiprt21 at acpi0: bus -1 (RP14) > acpiprt22 at acpi0: bus -1 (RP15) > acpiprt23 at acpi0: bus -1 (RP16) > acpiec0 at acpi0 > acpiec at acpi0 not configured > acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 > mwait.1@0x33), C1(1000@1 mwait.1), PSS > acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 > mwait.1@0x33), C1(1000@1 mwait.1), PSS > acpicpu2 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 > mwait.1@0x33), C1(1000@1 mwait.1), PSS > acpicpu3 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 > mwait.1@0x33), C1(1000@1 mwait.1), PSS > acpipwrres0 at acpi0: PG00, resource for PEG0 > acpipwrres1 at acpi0: PG01, resource for PEG1 > acpipwrres2 at acpi0: PG02, resource for PEG2 > acpipwrres3 at acpi0: WRST > acpipwrres4 at acpi0: WRST > acpipwrres5 at acpi0: WRST > acpipwrres6 at acpi0: WRST > acpipwrres7 at acpi0: WRST > acpipwrres8 at acpi0: WRST > acpipwrres9 at acpi0: WRST > acpipwrres10 at acpi0: WRST > acpipwrres11 at acpi0: WRST > acpipwrres12 at acpi0: WRST > acpipwrres13 at acpi0: WRST > acpipwrres14 at acpi0: WRST > acpipwrres15 at acpi0: WRST > acpipwrres16 at acpi0: WRST > acpipwrres17 at acpi0: WRST > acpipwrres18 at acpi0: WRST > acpipwrres19 at acpi0: WRST > acpipwrres20 at acpi0: WRST > acpipwrres21 at acpi0: WRST > acpipwrres22 at acpi0: WRST > acpitz0 at acpi0: critical temperature is 107 degC > acpipwrres23 at acpi0: FN00, resource for FAN0 > acpipwrres24 at acpi0: FN01, resource for FAN1 > acpipwrres25 at acpi0: FN02, resource for FAN2 > acpipwrres26 at acpi0: FN03, resource for FAN3 > acpipwrres27 at acpi0: FN04, resource for FAN4 > acpitz1 at acpi0: critical temperature is 105 degC > acpitz2 at acpi0: critical temperature is 105 degC > acpicmos0 at acpi0 > "INT3403" at acpi0 not configured > "INT3403" at acpi0 not configured > "INT3403" at acpi0 not configured > "INT344B" at acpi0 not configured > "XXXX0000" at acpi0 not configured > "INT3403" at acpi0 not configured > "PNP0C14" at acpi0 not configured > "INT33A1" at acpi0 not configured > tpm0 at acpi0: TPM_ addr 0xfed40000/0x1000: WEC WPCT200 rev 0x2 > "PNP0C14" at acpi0 not configured > acpibtn0 at acpi0: LID0 > acpibtn1 at acpi0: PBTN > acpibtn2 at acpi0: SBTN > acpiac0 at acpi0: AC unit online > acpibat0 at acpi0: BAT0 model "DELL JHXPY53" serial 2403 type LiP oem "SMP" > "INT3400" at acpi0 not configured > "PNP0C0B" at acpi0 not configured > "PNP0C0B" at acpi0 not configured > "PNP0C0B" at acpi0 not configured > "PNP0C0B" at acpi0 not configured > "PNP0C0B" at acpi0 not configured > acpivideo0 at acpi0: GFX0 > acpivout0 at acpivideo0: LCD_ > cpu0: Enhanced SpeedStep 2295 MHz: speeds: 2301, 2300, 2200, 2100, > 2000, 1800, 1700, 1500, 1400, 1300, 1100, 1000, 800, 700, 500, 400 MHz > pci0 at mainbus0 bus 0 > pchb0 at pci0 dev 0 function 0 "Intel Core 6G Host" rev 0x08 > inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 520" rev 0x07 > drm0 at inteldrm0 > inteldrm0: msi > error: [drm:pid0:i915_firmware_load_error_print] *ERROR* failed to > load firmware i915/skl_dmc_ver1.bin (-22) > error: [drm:pid0:i915_gem_init_hw] *ERROR* Failed to initialize GuC, > error -8 (ignored) > inteldrm0: 3200x1800, 32bpp > error: [drm:pid0:intel_dp_link_training_channel_equalization] *ERROR* > 5.4 Gbps link rate without HBR2/TPS3 support > wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation) > wsdisplay0: screen 1-5 added (std, vt100 emulation) > "Intel Core 6G Thermal" rev 0x08 at pci0 dev 4 function 0 not configured > xhci0 at pci0 dev 20 function 0 "Intel 100 Series xHCI" rev 0x21: msi, xHCI > 1.0 > usb0 at xhci0: USB revision 3.0 > uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev > 3.00/1.00 addr 1 > pchtemp0 at pci0 dev 20 function 2 "Intel 100 Series Thermal" rev 0x21 > dwiic0 at pci0 dev 21 function 0 "Intel 100 Series I2C" rev 0x21: apic 2 int > 16 > iic0 at dwiic0 > dwiic1 at pci0 dev 21 function 1 "Intel 100 Series I2C" rev 0x21: apic 2 int > 17 > iic1 at dwiic1 > ihidev0 at iic1 addr 0x2cdwiic1: timed out reading remaining 29 > , failed fetching initial HID descriptor > "Intel 100 Series MEI" rev 0x21 at pci0 dev 22 function 0 not configured > ahci0 at pci0 dev 23 function 0 "Intel 100 Series AHCI" rev 0x21: msi, > AHCI 1.3.1 > scsibus1 at ahci0: 32 targets > ppb0 at pci0 dev 28 function 0 "Intel 100 Series PCIE" rev 0xf1: msi > pci1 at ppb0 bus 1 > ppb1 at pci0 dev 28 function 4 "Intel 100 Series PCIE" rev 0xf1: msi > pci2 at ppb1 bus 58 > iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless-AC 8265" rev 0x50, msi > ppb2 at pci0 dev 28 function 5 "Intel 100 Series PCIE" rev 0xf1: msi > pci3 at ppb2 bus 59 > rtsx0 at pci3 dev 0 function 0 "Realtek RTS525A Card Reader" rev 0x01: msi > sdmmc0 at rtsx0: 4-bit, dma > ppb3 at pci0 dev 29 function 0 "Intel 100 Series PCIE" rev 0xf1: msi > pci4 at ppb3 bus 60 > nvme0 at pci4 dev 0 function 0 "Samsung SM951/PM951 NVMe" rev 0x01: > msi, NVMe 1.1 > nvme0: PM951 NVMe SAMSUNG 256GB, firmware BXV77D0Q, serial S29NNXAG983405 > scsibus2 at nvme0: 1 targets > sd0 at scsibus2 targ 0 lun 0: <NVMe, PM951 NVMe SAMSU, BXV7> SCSI4 > 0/direct fixed > sd0: 244198MB, 512 bytes/sector, 500118192 sectors > pcib0 at pci0 dev 31 function 0 "Intel 100 Series LPC" rev 0x21 > "Intel 100 Series PMC" rev 0x21 at pci0 dev 31 function 2 not configured > azalia0 at pci0 dev 31 function 3 "Intel 100 Series HD Audio" rev 0x21: msi > azalia0: codecs: Realtek/0x0256, Intel/0x2809, using Realtek/0x0256 > audio0 at azalia0 > ichiic0 at pci0 dev 31 function 4 "Intel 100 Series SMBus" rev 0x21: > apic 2 int 16 > iic2 at ichiic0 > isa0 at pcib0 > isadma0 at isa0 > pckbc0 at isa0 port 0x60/5 irq 1 irq 12 > pckbd0 at pckbc0 (kbd slot) > wskbd0 at pckbd0: console keyboard, using wsdisplay0 > pcppi0 at isa0 port 0x61 > spkr0 at pcppi0 > vmm0 at mainbus0: VMX/EPT > efifb at mainbus0 not configured > uvideo0 at uhub0 port 5 configuration 1 interface 0 > "CKFEH41I373010011222 Integrated_Webcam_HD" rev 2.01/48.14 addr 2 > video0 at uvideo0 > vscsi0 at root > scsibus3 at vscsi0: 256 targets > softraid0 at root > scsibus4 at softraid0: 256 targets > sd1 at scsibus4 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed > sd1: 182438MB, 512 bytes/sector, 373634544 sectors > root on sd1a (7a9a5283d2185467.a) swap on sd1b dump on sd1b > iwm0: hw rev 0x230, fw ver 22.361476.0, address 34:13:e8:58:c0:46 > > Xorg.0.log: > > [ 13.360] (--) checkDevMem: using aperture driver /dev/xf86 > [ 13.430] (--) Using wscons driver on /dev/ttyC4 > [ 13.497] > X.Org X Server 1.19.6 > Release Date: 2017-12-20 > [ 13.497] X Protocol Version 11, Revision 0 > [ 13.497] Build Operating System: OpenBSD 6.4 amd64 > [ 13.497] Current Operating System: OpenBSD c12h17n2o4p.my.domain > 6.4 GENERIC.MP#7 amd64 > [ 13.497] Build Date: 25 October 2018 11:39:05PM > [ 13.497] > [ 13.497] Current version of pixman: 0.34.0 > [ 13.497] Before reporting problems, check http://wiki.x.org > to make sure that you have the latest version. > [ 13.497] Markers: (--) probed, (**) from config file, (==) default > setting, > (++) from command line, (!!) notice, (II) informational, > (WW) warning, (EE) error, (NI) not implemented, (??) unknown. > [ 13.497] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Mar 2 > 14:09:48 2019 > [ 13.499] (==) Using config directory: "/etc/X11/xorg.conf.d" > [ 13.499] (==) Using system config directory > "/usr/X11R6/share/X11/xorg.conf.d" > [ 13.501] (==) No Layout section. Using the first Screen section. > [ 13.501] (==) No screen section available. Using defaults. > [ 13.501] (**) |-->Screen "Default Screen Section" (0) > [ 13.501] (**) | |-->Monitor "<default monitor>" > [ 13.502] (==) No device specified for screen "Default Screen Section". > Using the first device section listed. > [ 13.502] (**) | |-->Device "drm" > [ 13.502] (==) No monitor specified for screen "Default Screen Section". > Using a default monitor configuration. > [ 13.502] (==) Automatically adding devices > [ 13.502] (==) Automatically enabling devices > [ 13.502] (==) Not automatically adding GPU devices > [ 13.502] (==) Max clients allowed: 256, resource mask: 0x1fffff > [ 13.510] (==) FontPath set to: > /usr/X11R6/lib/X11/fonts/misc/, > /usr/X11R6/lib/X11/fonts/TTF/, > /usr/X11R6/lib/X11/fonts/OTF/, > /usr/X11R6/lib/X11/fonts/Type1/, > /usr/X11R6/lib/X11/fonts/100dpi/, > /usr/X11R6/lib/X11/fonts/75dpi/ > [ 13.510] (==) ModulePath set to "/usr/X11R6/lib/modules" > [ 13.510] (II) The server relies on wscons to provide the list of > input devices. > If no devices become available, reconfigure wscons or disable AutoAddDevices. > [ 13.510] (II) Loader magic: 0x1b29fff71000 > [ 13.510] (II) Module ABI versions: > [ 13.510] X.Org ANSI C Emulation: 0.4 > [ 13.510] X.Org Video Driver: 23.0 > [ 13.510] X.Org XInput driver : 24.1 > [ 13.510] X.Org Server Extension : 10.0 > [ 13.511] (--) PCI:*(0:0:2:0) 8086:1916:1028:0704 rev 7, Mem @ > 0xdb000000/16777216, 0x90000000/268435456, I/O @ 0x0000f000/64 > [ 13.511] (II) LoadModule: "glx" > [ 13.513] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so > [ 13.528] (II) Module glx: vendor="X.Org Foundation" > [ 13.528] compiled for 1.19.6, module version = 1.0.0 > [ 13.528] ABI class: X.Org Server Extension, version 10.0 > [ 13.528] (II) LoadModule: "intel" > [ 13.528] (II) Loading /usr/X11R6/lib/modules/drivers/intel_drv.so > [ 13.532] (II) Module intel: vendor="X.Org Foundation" > [ 13.532] compiled for 1.19.6, module version = 2.99.916 > [ 13.532] Module class: X.Org Video Driver > [ 13.532] ABI class: X.Org Video Driver, version 23.0 > [ 13.532] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets: > i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, > 915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, > Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, > GM45, 4 Series, G45/G43, Q45/Q43, G41, B43 > [ 13.533] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000 > [ 13.533] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100 > [ 13.533] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: > 5200, 6200, P6300 > [ 13.535] (II) intel(0): Using Kernel Mode Setting driver: i915, > version 1.6.0 20151010 > [ 13.537] (WW) intel(0): Unknown chipset > [ 13.537] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, > sse4.2, avx, avx2 > [ 13.537] (II) intel(0): Creating default Display subsection in > Screen section > "Default Screen Section" for depth/fbbpp 24/32 > [ 13.537] (==) intel(0): Depth 24, (--) framebuffer bpp 32 > [ 13.537] (==) intel(0): RGB weight 888 > [ 13.537] (==) intel(0): Default visual is TrueColor > [ 13.538] (**) intel(0): Option "TearFree" "true" >