Solved How to debug freezing Xorg?

eternal_noob

Well-Known Member

Reaction score: 180
Messages: 338

After the update from 12.1-RELEASE i386 to 12.2-RELEASE i386 i have the problem that my X session freezes after some time and i have to push the reset button to power off the computer because neither the mouse nor the keyboard works anymore.

Kernel is GENERIC:
FreeBSD xxx.xxx 12.2-RELEASE-p3 FreeBSD 12.2-RELEASE-p3 GENERIC i386

I use Intel firmware
Code:
cpu_microcode_load="YES"
cpu_microcode_name="/boot/firmware/intel-ucode.bin"
Graphics driver is i915kms
kld_list="/boot/modules/i915kms.ko"

I have this in sysctl.conf
kern.evdev.rcpt_mask=12

Xorg driver is modesetting, no config files present.

As a window manager, I use OpenBox started via
exec dbus-launch --exit-with-session openbox-session

I use latest packages rather than quarterly.
I reinstalled all the packages after the update via
pkg upgrade -f

The Xorg.0.log doesn't show suspicious entries after restarting.

It worked flawlessly on 12.1-RELEASE, the problems started with 12.2.

Where to start debugging?
 

Snurg

Daemon

Reaction score: 572
Messages: 1,349

See this thread.

Looks like you need to manually build the i915 module from ports, because on 12.2 for some strange reason, the prebuilt drivers do not work.
 
OP
eternal_noob

eternal_noob

Well-Known Member

Reaction score: 180
Messages: 338

Thank you for your answer.

I've seen this thread but i am not sure if it's the same problem i have. The drivers do work, i can boot up and startx without problems. The freezing occurs after 5 - 7 hours uptime. I don't know if building from source would help in that case.

And since i updated only 3 days ago i believe that the driver package has been built against 12.2 sources anyway.
 
OP
eternal_noob

eternal_noob

Well-Known Member

Reaction score: 180
Messages: 338

Update:

I found some suspicious lines in /var/log/messages which i believe are relevant:
Code:
Feb 22 05:20:08 xxx kernel: [drm] GPU HANG: ecode 4:0:0x828ffffb, in MainThread [100168], reason: Hang on rcs0, action: reset
Feb 22 05:20:08 xxx kernel: drmn0: Resetting chip after gpu hang
Feb 22 05:20:17 xxx syslogd: last message repeated 1 times
Feb 22 05:20:22 xxx kernel: drmn0: i915_reset_device timed out, cancelling all in-flight rendering.
Feb 22 05:20:54 xxx kernel: .
Feb 22 05:20:54 xxx syslogd: last message repeated 1 times
Feb 22 05:20:54 xxx syslogd: exiting on signal 15

So it's indeed a i915 driver issue.
 

mark_j

Aspiring Daemon

Reaction score: 484
Messages: 883

As these drivers are 'built for linux drivers', have a look for some information in the linux world. Someone else must have experienced the lock-up (law of averages?)

It might help.
 
OP
eternal_noob

eternal_noob

Well-Known Member

Reaction score: 180
Messages: 338

Seems like this is a well known bug in Mesa:


Regarding this thread i should use the 'intel' driver rather than 'modesetting' and use the UXA acceleration scheme.

I'll try this and report back if it helps
Code:
Section "Device"
    Identifier "Intel Graphics"
    Driver     "intel"
    Option     "AccelMethod" "UXA"
EndSection
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 10,594
Messages: 36,229

Looks like you need to manually build the i915 module from ports, because on 12.2 for some strange reason, the prebuilt drivers do not work.
This is not an issue anymore. Packages are being built for 12.2 now.
 

PMc

Daemon

Reaction score: 552
Messages: 1,120

I solved some i915 hanging X problem with this in the "intel" driver:
Option "DRI" "1"
 
OP
eternal_noob

eternal_noob

Well-Known Member

Reaction score: 180
Messages: 338

Using the intel driver with the UXA AccelMethod didn't help, i got the same freezes.

I solved some i915 hanging X problem with this in the "intel" driver:
Option "DRI" "1"
According to https://www.x.org/releases/current/doc/man/man4/intel.4.xhtml the "DRI" option is a boolean value which is enabled by default. I'll try this but i don't think it'll help unless i miss something.

Edit: I indeed missed that man intel tells a different story. Option "DRI" is a string value with which the maximum level of DRI to enable can be specified.
Code:
       Option "DRI" "string"
              Disable or enable DRI support. A driver name to use can be
              provided instead of simple boolean value, which will be passed
              to the GL implementation for it to load the appropriate backend.
              Alternatively the maximum level of DRI to enable (e.g. "1", "2"
              or "3") can be specified.

              Default: All levels of DRI are enabled for configurations where
              it is supported

Thanks, didn't know that there are differences in the X.Org options. I'll try this.
 
OP
eternal_noob

eternal_noob

Well-Known Member

Reaction score: 180
Messages: 338

I solved it by using the modesetting driver rather than intel.

I'm embarrassed to say that i only thought that i was using modesetting because i had no "Driver" option in the config files. But Xorg decided to use the intel driver nevertheless.

After i deinstalled the xf86-video-intel package, i get no more freezes.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 10,594
Messages: 36,229

I solved it by using the modesetting driver rather than intel.

I'm embarrassed to say that i only thought that i was using modesetting because i had no "Driver" option in the config files. But Xorg decided to use the intel driver nevertheless.
Xorg will autodetect the driver, there's rarely a need for a configuration file at all. Can you post your Xorg.0.log? I suspect you're now using the scfb(4) driver, which is a fallback if it can't find a good driver (because you removed the Intel driver).
 
OP
eternal_noob

eternal_noob

Well-Known Member

Reaction score: 180
Messages: 338

Code:
[xxx@xxx ~]$ cat /var/log/Xorg.0.log
[    36.598]
X.Org X Server 1.20.9
X Protocol Version 11, Revision 0
[    36.598] Build Operating System: FreeBSD 12.2-RELEASE-p3 i386
[    36.598] Current Operating System: FreeBSD xxx.xxx 12.2-RELEASE-p3 FreeBSD 12.2-RELEASE-p3 GENERIC i386
[    36.598] Build Date: 13 February 2021  01:51:45PM
[    36.598]
[    36.598] Current version of pixman: 0.40.0
[    36.598]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    36.598] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    36.599] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Feb 24 11:07:26 2021
[    36.679] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[    36.679] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[    36.708] (==) No Layout section.  Using the first Screen section.
[    36.708] (==) No screen section available. Using defaults.
[    36.708] (**) |-->Screen "Default Screen Section" (0)
[    36.708] (**) |   |-->Monitor "<default monitor>"
[    36.709] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[    36.709] (==) Automatically adding devices
[    36.709] (==) Automatically enabling devices
[    36.709] (==) Not automatically adding GPU devices
[    36.716] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    36.994] (**) FontPath set to:
    /usr/local/share/fonts/Caladea/,
    /usr/local/share/fonts/Carlito/,
    /usr/local/share/fonts/GentiumBasic/,
    /usr/local/share/fonts/Liberation/,
    /usr/local/share/fonts/LinLibertineG/,
    /usr/local/share/fonts/cyrillic/,
    /usr/local/share/fonts/dejavu/,
    /usr/local/share/fonts/twemoji-color-font-ttf/,
    /usr/local/share/fonts/webfonts/,
    /usr/local/share/fonts/urwfonts/,
    /usr/local/share/fonts/hack-font/,
    /usr/local/share/fonts/misc/,
    /usr/local/share/fonts/TTF/,
    /usr/local/share/fonts/OTF/,
    /usr/local/share/fonts/Type1/,
    /usr/local/share/fonts/100dpi/,
    /usr/local/share/fonts/75dpi/,
    catalogue:/usr/local/etc/X11/fontpath.d
[    36.994] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[    36.994] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[    37.004] (II) Loader magic: 0x616710
[    37.004] (II) Module ABI versions:
[    37.004]     X.Org ANSI C Emulation: 0.4
[    37.004]     X.Org Video Driver: 24.1
[    37.004]     X.Org XInput driver : 24.1
[    37.004]     X.Org Server Extension : 10.0
[    37.004] (--) PCI:*(0@0:2:0) 8086:2e12:103c:3048 rev 3, Mem @ 0xf0000000/4194304, 0xe0000000/268435456, I/O @ 0x00001230/8, BIOS @ 0x????????/65536
[    37.004] (--) PCI: (0@0:2:1) 8086:2e13:103c:3048 rev 3, Mem @ 0xf0400000/1048576
[    37.012] (II) LoadModule: "glx"
[    37.037] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    37.171] (II) Module glx: vendor="X.Org Foundation"
[    37.171]     compiled for 1.20.9, module version = 1.0.0
[    37.171]     ABI class: X.Org Server Extension, version 10.0
[    37.171] (==) Matched intel as autoconfigured driver 0
[    37.171] (==) Matched modesetting as autoconfigured driver 1
[    37.171] (==) Matched scfb as autoconfigured driver 2
[    37.171] (==) Matched vesa as autoconfigured driver 3
[    37.171] (==) Assigned the driver to the xf86ConfigLayout
[    37.172] (II) LoadModule: "intel"
[    37.180] (WW) Warning, couldn't open module intel
[    37.180] (EE) Failed to load module "intel" (module does not exist, 0)
[    37.180] (II) LoadModule: "modesetting"
[    37.180] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[    37.192] (II) Module modesetting: vendor="X.Org Foundation"
[    37.192]     compiled for 1.20.9, module version = 1.20.9
[    37.192]     Module class: X.Org Video Driver
[    37.192]     ABI class: X.Org Video Driver, version 24.1
[    37.192] (II) LoadModule: "scfb"
[    37.193] (WW) Warning, couldn't open module scfb
[    37.193] (EE) Failed to load module "scfb" (module does not exist, 0)
[    37.193] (II) LoadModule: "vesa"
[    37.193] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[    37.203] (II) Module vesa: vendor="X.Org Foundation"
[    37.203]     compiled for 1.20.9, module version = 2.5.0
[    37.203]     Module class: X.Org Video Driver
[    37.203]     ABI class: X.Org Video Driver, version 24.1
[    37.203] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    37.203] (II) VESA: driver for VESA chipsets: vesa
[    37.203] (--) Using syscons driver with X support (version 2.0)
[    37.203] (--) using VT number 9

[    37.276] (**) modeset(0): claimed PCI slot 0@0:2:0
[    37.276] (II) modeset(0): using default device
[    37.276] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    37.276] (II) modeset(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[    37.276] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[    37.276] (==) modeset(0): RGB weight 888
[    37.276] (==) modeset(0): Default visual is TrueColor
[    37.276] (II) Loading sub module "glamoregl"
[    37.276] (II) LoadModule: "glamoregl"
[    37.276] (II) Loading /usr/local/lib/xorg/modules/libglamoregl.so
[    37.416] (II) Module glamoregl: vendor="X.Org Foundation"
[    37.416]     compiled for 1.20.9, module version = 1.0.1
[    37.416]     ABI class: X.Org ANSI C Emulation, version 0.4
[    38.119] (II) modeset(0): glamor X acceleration enabled on Mesa DRI Intel(R) Q45/Q43 (ELK)
[    38.119] (II) modeset(0): glamor initialized
[    38.164] (II) modeset(0): Output VGA-1 has no monitor section
[    38.165] (II) modeset(0): Output HDMI-1 has no monitor section
[    38.165] (II) modeset(0): Output DP-1 has no monitor section
[    38.207] (II) modeset(0): EDID for output VGA-1
[    38.207] (II) modeset(0): Manufacturer: PHL  Model: 0  Serial#: 16843009
[    38.207] (II) modeset(0): Year: 2008  Week: 45
[    38.207] (II) modeset(0): EDID Version: 1.3
[    38.207] (II) modeset(0): Analog Display Input,  Input Voltage Level: 0.700/0.300 V
[    38.207] (II) modeset(0): Sync:  Separate
[    38.207] (II) modeset(0): Max Image Size [cm]: horiz.: 128  vert.: 72
[    38.207] (II) modeset(0): Gamma: 2.20
[    38.207] (II) modeset(0): DPMS capabilities: Off; RGB/Color Display
[    38.207] (II) modeset(0): First detailed timing is preferred mode
[    38.207] (II) modeset(0): redX: 0.639 redY: 0.330   greenX: 0.299 greenY: 0.599
[    38.207] (II) modeset(0): blueX: 0.150 blueY: 0.059   whiteX: 0.289 whiteY: 0.298
[    38.207] (II) modeset(0): Supported established timings:
[    38.207] (II) modeset(0): 640x480@60Hz
[    38.207] (II) modeset(0): 800x600@60Hz
[    38.207] (II) modeset(0): 1024x768@60Hz
[    38.207] (II) modeset(0): Manufacturer's mask: 0
[    38.207] (II) modeset(0): Supported standard timings:
[    38.207] (II) modeset(0): #0: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
[    38.207] (II) modeset(0): #1: hsize: 1600  vsize 1200  refresh: 60  vid: 16553
[    38.207] (II) modeset(0): Supported detailed timing:
[    38.207] (II) modeset(0): clock: 148.5 MHz   Image Size:  1280 x 720 mm
[    38.207] (II) modeset(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[    38.207] (II) modeset(0): v_active: 1080  v_sync: 1084  v_sync_end 1089 v_blanking: 1125 v_border: 0
[    38.207] (II) modeset(0): Supported detailed timing:
[    38.207] (II) modeset(0): clock: 85.5 MHz   Image Size:  886 x 498 mm
[    38.207] (II) modeset(0): h_active: 1360  h_sync: 1424  h_sync_end 1536 h_blank_end 1792 h_border: 0
[    38.207] (II) modeset(0): v_active: 768  v_sync: 771  v_sync_end 777 v_blanking: 795 v_border: 0
[    38.207] (II) modeset(0): Ranges: V min: 60 V max: 75 Hz, H min: 30 H max: 81 kHz, PixClock max 175 MHz
[    38.207] (II) modeset(0): Monitor name: PHILIPS_FTV
[    38.207] (II) modeset(0): EDID (in hex):
[    38.207] (II) modeset(0):     00ffffffffffff00410c000001010101
[    38.207] (II) modeset(0):     2d120103088048782aa981a3544c9926
[    38.207] (II) modeset(0):     0f4a4c2108008180a940010101010101
[    38.207] (II) modeset(0):     010101010101023a801871382d40582c
[    38.207] (II) modeset(0):     450000d05200001e662150b051001b30
[    38.207] (II) modeset(0):     4070360076f23100001e000000fd003c
[    38.208] (II) modeset(0):     4b1e5111000a202020202020000000fc
[    38.208] (II) modeset(0):     005048494c4950535f4654560a200001
[    38.208] (II) modeset(0): Printing probed modes for output VGA-1
[    38.208] (II) modeset(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[    38.208] (II) modeset(0): Modeline "1600x1200"x60.0  162.00  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz e)
[    38.208] (II) modeset(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[    38.208] (II) modeset(0): Modeline "1360x768"x60.0   85.50  1360 1424 1536 1792  768 771 777 795 +hsync +vsync (47.7 kHz e)
[    38.208] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    38.208] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    38.208] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    38.209] (II) modeset(0): EDID for output HDMI-1
[    38.209] (II) modeset(0): EDID for output DP-1
[    38.209] (II) modeset(0): Output VGA-1 connected
[    38.209] (II) modeset(0): Output HDMI-1 disconnected
[    38.209] (II) modeset(0): Output DP-1 disconnected
[    38.209] (II) modeset(0): Using exact sizes for initial modes
[    38.209] (II) modeset(0): Output VGA-1 using initial mode 1920x1080 +0+0
[    38.209] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[    38.209] (==) modeset(0): DPI set to (96, 96)
[    38.209] (II) Loading sub module "fb"
[    38.209] (II) LoadModule: "fb"
[    38.209] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[    38.227] (II) Module fb: vendor="X.Org Foundation"
[    38.227]     compiled for 1.20.9, module version = 1.0.0
[    38.227]     ABI class: X.Org ANSI C Emulation, version 0.4
[    38.227] (II) UnloadModule: "vesa"
[    38.227] (II) Unloading vesa
[    38.543] (==) modeset(0): Backing store enabled
[    38.543] (==) modeset(0): Silken mouse enabled
[    38.573] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[    38.584] (==) modeset(0): DPMS enabled
[    38.585] (II) modeset(0): [DRI2] Setup complete
[    38.585] (II) modeset(0): [DRI2]   DRI driver: i965
[    38.585] (II) modeset(0): [DRI2]   VDPAU driver: va_gl
[    38.585] (II) Initializing extension Generic Event Extension
[    38.591] (II) Initializing extension SHAPE
[    38.591] (II) Initializing extension MIT-SHM
[    38.592] (II) Initializing extension XInputExtension
[    38.598] (II) Initializing extension XTEST
[    38.598] (II) Initializing extension BIG-REQUESTS
[    38.599] (II) Initializing extension SYNC
[    38.599] (II) Initializing extension XKEYBOARD
[    38.600] (II) Initializing extension XC-MISC
[    38.600] (II) Initializing extension SECURITY
[    38.601] (II) Initializing extension XFIXES
[    38.601] (II) Initializing extension RENDER
[    38.602] (II) Initializing extension RANDR
[    38.603] (II) Initializing extension COMPOSITE
[    38.603] (II) Initializing extension DAMAGE
[    38.604] (II) Initializing extension MIT-SCREEN-SAVER
[    38.604] (II) Initializing extension DOUBLE-BUFFER
[    38.605] (II) Initializing extension RECORD
[    38.605] (II) Initializing extension DPMS
[    38.606] (II) Initializing extension Present
[    38.606] (II) Initializing extension DRI3
[    38.607] (II) Initializing extension X-Resource
[    38.607] (II) Initializing extension XVideo
[    38.607] (II) Initializing extension XVideo-MotionCompensation
[    38.607] (II) Initializing extension GLX
[    38.635] (II) AIGLX: Loaded and initialized i965
[    38.635] (II) GLX: Initialized DRI2 GL provider for screen 0
[    38.635] (II) Initializing extension XFree86-VidModeExtension
[    38.635] (II) Initializing extension XFree86-DGA
[    38.636] (II) Initializing extension XFree86-DRI
[    38.636] (II) Initializing extension DRI2
[    38.683] (II) modeset(0): Damage tracking initialized
[    38.683] (II) modeset(0): Setting screen physical size to 508 x 285
[    39.542] (II) config/udev: Adding input device AT Keyboard (/dev/atkbd0)
[    39.542] (II) No input driver specified, ignoring this device.
[    39.542] (II) This device may have been added with another device file.
[    39.542] (II) config/udev: Adding input device System mouse (/dev/input/event0)
[    39.542] (**) System mouse: Applying InputClass "libinput pointer catchall"
[    39.542] (II) LoadModule: "libinput"
[    39.542] (II) Loading /usr/local/lib/xorg/modules/input/libinput_drv.so
[    39.784] (II) Module libinput: vendor="X.Org Foundation"
[    39.784]     compiled for 1.20.9, module version = 0.30.0
[    39.784]     Module class: X.Org XInput Driver
[    39.784]     ABI class: X.Org XInput driver, version 24.1
[    39.785] (II) Using input driver 'libinput' for 'System mouse'
[    39.785] (**) System mouse: always reports core events
[    39.785] (**) Option "Device" "/dev/input/event0"
[    39.797] (**) Option "_source" "server/udev"
[    39.922] (II) event0  - System mouse: is tagged by udev as: Mouse
[    39.923] (II) event0  - System mouse: device is a pointer
[    39.923] (II) event0  - System mouse: device removed
[    39.924] (**) Option "config_info" "udev:/dev/input/event0"
[    39.924] (II) XINPUT: Adding extended input device "System mouse" (type: MOUSE, id 6)
[    39.924] (**) Option "AccelerationScheme" "none"
[    39.924] (**) System mouse: (accel) selected scheme none/0
[    39.924] (**) System mouse: (accel) acceleration factor: 2.000
[    39.924] (**) System mouse: (accel) acceleration threshold: 4
[    39.926] (II) event0  - System mouse: is tagged by udev as: Mouse
[    39.926] (II) event0  - System mouse: device is a pointer
[    39.941] (II) config/udev: Adding input device System keyboard multiplexer (/dev/input/event1)
[    39.941] (**) System keyboard multiplexer: Applying InputClass "Evdev keyboard"
[    39.941] (**) System keyboard multiplexer: Applying InputClass "libinput keyboard catchall"
[    39.941] (II) Using input driver 'libinput' for 'System keyboard multiplexer'
[    39.941] (**) System keyboard multiplexer: always reports core events
[    39.941] (**) Option "Device" "/dev/input/event1"
[    39.941] (**) Option "_source" "server/udev"
[    39.943] (II) event1  - System keyboard multiplexer: is tagged by udev as: Keyboard
[    39.944] (II) event1  - System keyboard multiplexer: device is a keyboard
[    39.945] (II) event1  - System keyboard multiplexer: device removed
[    39.945] (**) Option "config_info" "udev:/dev/input/event1"
[    39.945] (II) XINPUT: Adding extended input device "System keyboard multiplexer" (type: KEYBOARD, id 7)
[    39.945] (**) Option "xkb_rules" "evdev"
[    40.018] (II) event1  - System keyboard multiplexer: is tagged by udev as: Keyboard
[    40.019] (II) event1  - System keyboard multiplexer: device is a keyboard
[    40.020] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[    40.020] (**) Power Button: Applying InputClass "Evdev keyboard"
[    40.020] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    40.020] (II) Using input driver 'libinput' for 'Power Button'
[    40.020] (**) Power Button: always reports core events
[    40.020] (**) Option "Device" "/dev/input/event2"
[    40.020] (**) Option "_source" "server/udev"
[    40.021] (II) event2  - Power Button: is tagged by udev as: Keyboard
[    40.021] (II) event2  - Power Button: device is a keyboard
[    40.022] (II) event2  - Power Button: device removed
[    40.022] (**) Option "config_info" "udev:/dev/input/event2"
[    40.022] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
[    40.022] (**) Option "xkb_rules" "evdev"
[    40.023] (II) event2  - Power Button: is tagged by udev as: Keyboard
[    40.024] (II) event2  - Power Button: device is a keyboard
[    40.024] (II) config/udev: Adding input device AT keyboard (/dev/input/event3)
[    40.024] (**) AT keyboard: Applying InputClass "Evdev keyboard"
[    40.024] (**) AT keyboard: Applying InputClass "libinput keyboard catchall"
[    40.024] (II) Using input driver 'libinput' for 'AT keyboard'
[    40.024] (**) AT keyboard: always reports core events
[    40.024] (**) Option "Device" "/dev/input/event3"
[    40.024] (**) Option "_source" "server/udev"
[    40.026] (II) event3  - AT keyboard: is tagged by udev as: Keyboard
[    40.026] (II) event3  - AT keyboard: device is a keyboard
[    40.027] (II) event3  - AT keyboard: device removed
[    40.027] (**) Option "config_info" "udev:/dev/input/event3"
[    40.027] (II) XINPUT: Adding extended input device "AT keyboard" (type: KEYBOARD, id 9)
[    40.027] (**) Option "xkb_rules" "evdev"
[    40.028] (II) event3  - AT keyboard: is tagged by udev as: Keyboard
[    40.029] (II) event3  - AT keyboard: device is a keyboard
[    40.030] (II) config/udev: Adding input device IntelliMouse (/dev/input/event4)
[    40.030] (**) IntelliMouse: Applying InputClass "libinput pointer catchall"
[    40.030] (**) IntelliMouse: Applying InputClass "snippet"
[    40.030] (II) Using input driver 'libinput' for 'IntelliMouse'
[    40.030] (**) IntelliMouse: always reports core events
[    40.030] (**) Option "Device" "/dev/input/event4"
[    40.030] (**) Option "_source" "server/udev"
[    40.047] (II) event4  - IntelliMouse: is tagged by udev as: Mouse
[    40.047] (II) event4  - IntelliMouse: device is a pointer
[    40.048] (II) event4  - IntelliMouse: device removed
[    40.083] (**) Option "AccelSpeed" "1"
[    40.083] (**) Option "config_info" "udev:/dev/input/event4"
[    40.083] (II) XINPUT: Adding extended input device "IntelliMouse" (type: MOUSE, id 10)
[    40.084] (**) Option "AccelerationScheme" "none"
[    40.084] (**) IntelliMouse: (accel) selected scheme none/0
[    40.084] (**) IntelliMouse: (accel) acceleration factor: 2.000
[    40.084] (**) IntelliMouse: (accel) acceleration threshold: 4
[    40.101] (II) event4  - IntelliMouse: is tagged by udev as: Mouse
[    40.101] (II) event4  - IntelliMouse: device is a pointer
[   103.074] (EE) event4  - IntelliMouse: client bug: event processing lagging behind by 13ms, your system is too slow
[   303.857] (EE) event4  - IntelliMouse: client bug: event processing lagging behind by 14ms, your system is too slow
[   367.812] (EE) event4  - IntelliMouse: client bug: event processing lagging behind by 12ms, your system is too slow
[  1054.646] (EE) event4  - IntelliMouse: client bug: event processing lagging behind by 16ms, your system is too slow
[  1243.906] (EE) event4  - IntelliMouse: client bug: event processing lagging behind by 16ms, your system is too slow
[  1243.914] (EE) event4  - IntelliMouse: WARNING: log rate limit exceeded (5 msgs per 60min). Discarding future messages.
 
OP
eternal_noob

eternal_noob

Well-Known Member

Reaction score: 180
Messages: 338

I suspect you're now using the scfb(4) driver
I found a nice bash script which tells me that i am using the modesetting driver:
Code:
#!/usr/local/bin/bash

if [ -z "$1" ]; then
    logfile=/var/log/Xorg.0.log
else
    logfile="$1"
fi

sed -n 's@.* Loading .*/\(.*\)_drv.so@\1@p' "$logfile" |
    while read driver; do
        if ! grep -q "Unloading $driver" "$logfile"; then
            echo $driver
            break
        fi
    done
 

Snurg

Daemon

Reaction score: 572
Messages: 1,349

I solved it by using the modesetting driver rather than intel.

I'm embarrassed to say that i only thought that i was using modesetting because i had no "Driver" option in the config files. But Xorg decided to use the intel driver nevertheless.

After i deinstalled the xf86-video-intel package, i get no more freezes.

Sorry for reviving this.
I am asking myself what caused the hangs, and if I interpret correctly the following might have been happened, causing the issue:

-installing xf86-video-intel (sounds perfectly reasonable to do if one isn't aware of i915kms present by default)
-xorg then seeing an "intel" driver, and "preferring" this in error over i915kms,
-you finally found that when explicitly setting kms ("modesetting"), making kms choose a matching modesetting driver (i915kms.ko in this case)
-and after removing xf86-video-intel package, it now works fine (either without xorg, or with xorg defining Driver="intel", correctly "forwarding" to i915kms?

Reason why I ask is just curiosity: could "modesetting" be used so that the xorg/kernel automatically choose the correct kms driver, e.g. without having to specify a vendor-specific driver, be it "intel", "amdgpu" or whatever?
 
OP
eternal_noob

eternal_noob

Well-Known Member

Reaction score: 180
Messages: 338

Snurg

Daemon

Reaction score: 572
Messages: 1,349

This is all very confusing with Intel.
There are three legacy drivers, xf86-video-i120, -i740 and -intel.
At least the freshports information says the -intel driver is for legacy cards.

Figuring out which driver supports which GPU was super-easy with Nvidia, difficult with ATI/AMD, and regarding Intel, I still feel clueless after hours of researching.
Looking at the DRI2 hardware detection PCI ID list, I can easily imagine that even the Mesa guys have problems here...
And since 'modesetting' is recommended, i believe it's not worth thinking about either.

Edit: I found an interresting article about X.Org server 1.21 (not in FreeBSD yet): X.Org's Modesetting Driver Gets Smarter - Queries Mesa For Which GL Driver To Use
Hmm, "modesetting" the recommended setting? Didn't know that, but I like it :)

And the link to the article is a very good source where to research further 👍 Thank you very much!!
 
Top