Bug 250261 - X11 hangs intermittently
Summary: X11 hangs intermittently
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
Depends on:
Reported: 2020-10-10 22:12 UTC by Jeff Joshua Rollin
Modified: 2021-11-19 15:02 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Joshua Rollin 2020-10-10 22:12:14 UTC

I'm running FreeBSD 12.2-RC2 with lightdm and XFCE on a ThinkPad E550 with 12GB RAM and a 1TB SSD. After a few minutes of inactivity, X11 will hang and become unresponsive. The mouse pointer still moves in response to the trackpad, but screen elements do not respond to clicks. I'm able to switch to a vt, stop lightdm and restart it, but sometimes an unresponsive lightdm session is left over too. I'm currently posting this in Linux but if I can get it to stay up long enough when I reboot into FreeBSD, I will post a dmesg.
Comment 1 Jeff Joshua Rollin 2020-10-10 22:19:18 UTC
Here's the relevant dmesg 
Copyright (c) 1992-2020 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 12.2-RC2 r366553 GENERIC amd64
FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)
VT(efifb): resolution 1920x1080
CPU: Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz (1995.42-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x306d4  Family=0x6  Model=0x3d  Stepping=4
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x121<LAHF,ABM,Prefetch>
  Structured Extended Features3=0x9c000000<IBPB,STIBP,L1DFL,SSBD>
  XSAVE Features=0x1<XSAVEOPT>
  TSC: P-state invariant, performance statistics
real memory  = 12884901888 (12288 MB)
avail memory = 12368932864 (11795 MB)
Event timer "LAPIC" quality 600
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 hardware threads
random: unblocking device.
ioapic0 <Version 2.0> irqs 0-39 on motherboard
Launching APs: 1 2 3
Timecounter "TSC" frequency 1995421950 Hz quality 1000
random: entropy device external interface
kbd1 at kbdmux0
000.000023 [4336] netmap_init               netmap: loaded module
[ath_hal] loaded
module_register_init: MOD_LOAD (vesa, 0xffffffff81115e40, 0) error 19
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
efirtc0: <EFI Realtime Clock> on motherboard
efirtc0: registered as a time-of-day clock, resolution 1.000000s
cryptosoft0: <software crypto> on motherboard
acpi0: <LENOVO TP-J5> on motherboard
acpi_ec0: <Embedded Controller: GPE 0x25, ECDT> port 0x62,0x66 on acpi0
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
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 550
Event timer "HPET1" frequency 14318180 Hz quality 440
Event timer "HPET2" frequency 14318180 Hz quality 440
Event timer "HPET3" frequency 14318180 Hz quality 440
Event timer "HPET4" frequency 14318180 Hz quality 440
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0x3000-0x303f mem 0xf0000000-0xf0ffffff,0xe0000000-0xefffffff at device 2.0 on pci0
vgapci0: Boot video device
hdac0: <Intel Broadwell HDA Controller> mem 0xf1230000-0xf1233fff at device 3.0 on pci0
xhci0: <Broadwell Integrated PCH-LP chipset USB 3.0 controller> mem 0xf1220000-0xf122ffff at device 20.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
xhci0: Port routing mask set to 0xffffffff
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
pci0: <simple comms> at device 22.0 (no driver attached)
em0: <Intel(R) PRO/1000 Network Connection> port 0x3080-0x309f mem 0xf1200000-0xf121ffff,0xf123e000-0xf123efff at device 25.0 on pci0
em0: Using 1024 TX descriptors and 1024 RX descriptors
em0: Using an MSI interrupt
em0: Ethernet address: 68:f7:28:96:93:b3
em0: netmap queues/slots: TX 1/1024, RX 1/1024
hdac1: <Intel Broadwell HDA Controller> mem 0xf1234000-0xf1237fff at device 27.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 28.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 28.2 on pci0
pci2: <ACPI PCI bus> on pcib2
pci2: <network> at device 0.0 (no driver attached)
pcib3: <ACPI PCI-PCI bridge> at device 28.5 on pci0
pci3: <ACPI PCI bus> on pcib3
pci3: <unknown> at device 0.0 (no driver attached)
ehci0: <Intel Wildcat Point-LP USB 2.0 controller> mem 0xf123d000-0xf123d3ff at device 29.0 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
usbus1: 480Mbps High Speed USB v2.0
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
ahci0: <Intel Wildcat Point-LP AHCI SATA controller> port 0x30a8-0x30af,0x30b4-0x30b7,0x30a0-0x30a7,0x30b0-0x30b3,0x3060-0x307f mem 0xf123c000-0xf123c7ff at device 31.2 on pci0
ahci0: AHCI v1.30 with 2 6Gbps ports, Port Multiplier not supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
battery0: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
Timecounters tick every 1.000 msec
hdacc0: <Intel Broadwell HDA CODEC> at cad 0 on hdac0
hdaa0: <Intel Broadwell Audio Function Group> at nid 1 on hdacc0
pcm0: <Intel Broadwell (HDMI/DP 8ch)> at nid 3 on hdaa0
hdacc1: <Conexant CX20751/2 HDA CODEC> at cad 0 on hdac1
hdaa1: <Conexant CX20751/2 Audio Function Group> at nid 1 on hdacc1
pcm1: <Conexant CX20751/2 (Analog)> at nid 23 and 26 on hdaa1
pcm2: <Conexant CX20751/2 (Right Analog)> at nid 22 and 25 on hdaa1
ugen0.1: <0x8086 XHCI root HUB> at usbus0
ugen1.1: <Intel EHCI root HUB> at usbus1
Trying to mount root from ufs:/dev/ada0p6 [rw]...
Root mount waiting for: usbus0 usbus1 CAM
uhub1: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <Crucial CT1050MX300SSD1 M0CR021> ACS-3 ATA SATA 3.x device
ada0: Serial Number 163713E7E8BC
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 1001562MB (2051200368 512 byte sectors)
cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
cd0: <HL-DT-ST DVDRAM GUA0N LZ20> Removable CD-ROM SCSI device
cd0: Serial Number KYSF1TG4534
cd0: 150.000MB/s transfers (SATA 1.x, UDMA6, ATAPI 12bytes, PIO 8192bytes)
cd0: 0MB (1 0 byte sectors)
uhub1: 15 ports with 15 removable, self powered
Root mount waiting for: usbus0 usbus1
uhub0: 3 ports with 3 removable, self powered
ugen0.2: <vendor 0x8087 product 0x07dc> at usbus0
Root mount waiting for: usbus0 usbus1
ugen0.3: <Generic Integrated Camera> at usbus0
ugen1.2: <vendor 0x8087 product 0x8001> at usbus1
uhub2 on uhub0
uhub2: <vendor 0x8087 product 0x8001, class 9/0, rev 2.00/0.03, addr 2> on usbus1
uhub2: 8 ports with 8 removable, self powered
mountroot: waiting for device /dev/ada0p6...
drmn0: <drmn> on vgapci0
device_attach: drmn0 attach returned 19
iwm0: <Intel(R) Dual Band Wireless AC 3160> mem 0xf1100000-0xf1101fff at device 0.0 on pci2
iwm0: hw rev 0x160, fw ver 17.352738.0, address f4:06:69:78:dd:b3
wlan0: Ethernet address: f4:06:69:78:dd:b3
lo0: link state changed to UP
wlan0: link state changed to UP
ubt0 on uhub1
ubt0: <vendor 0x8087 product 0x07dc, class 224/1, rev 2.00/0.01, addr 1> on usbus0
WARNING: attempt to domain_add(bluetooth) after domainfinalize()
WARNING: attempt to domain_add(netgraph) after domainfinalize()
Comment 2 Gian-Simon Purkert 2020-10-11 10:29:58 UTC
Hi Jeff,

I have a similar problem but with a AMD GPU, the only chance to recover my screen is to use the power-switch on my screen (Workstation), which is not really possible with a Laptop ;) 

As a workaround you can try this as root/sudo:

/usr/local/bin/xset dpms force on

It disables the power-management for the display, sorry for not being a bigger help, i have the exact same problem since quite a long time.
Comment 3 Gian-Simon Purkert 2020-10-11 10:37:04 UTC
Some Additional Information's about DPMS:

Comment 4 Gian-Simon Purkert 2020-10-11 11:15:33 UTC
(In reply to Jeff Joshua Rollin from comment #1)

I think that's the Problem:

device_attach: drmn0 attach returned 19

Please install 


and add 




more on that

Comment 5 Jeff Joshua Rollin 2020-10-11 12:07:34 UTC
Hi Gian-Simon,

Thanks for your help so far. Unfortunately, drm-kmod is already installed and i915kms.ko activated, but when I tried your first suggestion I got the following message: 

server does not have extension for dpms option
/usr/local/bin/xset:  unknown option force
Comment 6 Emmanuel Vadot freebsd_committer 2021-11-19 15:02:48 UTC
Closing, please re-open if this still happens with non-RC FreeBSD and up to date packages.