Solved Screen Tearing on KDE X11 with Intel Iris Xe Graphics (TigerLake-LP GT2)

Hello, I previously used Linux and switched to FreeBSD yesterday. I installed KDE Plasma, Intel display and graphics drivers and configured Xorg to stop the screen tearing but none really worked. Wayland is broken for me so it's not really an alternative.
I tried running Xorg -configure and creating the /usr/local/etc/X11/xorg.conf.d/20-intel.conf file pasting in:
Code:
Section "Device"
    Identifier     "Card0"
    Driver    "intel"
    Option    "DRI" "3"
    Option    "AccelMethod" "SNA"
    Option    "TearFree" "true"
EndSection
which didn't really work so I edited the Xorg config file directly (/etc/X11/xorg.conf):
Code:
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/local/lib/xorg/modules"
        FontPath     "/usr/local/share/fonts/misc/"
        FontPath     "/usr/local/share/fonts/TTF/"
        FontPath     "/usr/local/share/fonts/OTF/"
        FontPath     "/usr/local/share/fonts/Type1/"
        FontPath     "/usr/local/share/fonts/100dpi/"
        FontPath     "/usr/local/share/fonts/75dpi/"
        FontPath     "catalogue:/usr/local/etc/X11/fontpath.d"
EndSection

Section "Module"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/sysmouse"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"                     # [<bool>]
        Option     "AccelMethod"                 "SNA"
        #Option     "Backlight"                 # <str>
        #Option     "CustomEDID"                # <str>
        Option     "DRI"                         "3"
        #Option     "Present"                   # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "VideoKey"                  # <i>
        #Option     "Tiling"                    # [<bool>]
        #Option     "LinearFramebuffer"         # [<bool>]
        #Option     "HWRotation"                # [<bool>]
        Option     "VSync"                       "true"
        #Option     "PageFlip"                  # [<bool>]
        #Option     "SwapbuffersWait"           # [<bool>]
        #Option     "TripleBuffer"              # [<bool>]
        #Option     "XvPreferOverlay"           # [<bool>]
        #Option     "HotPlug"                   # [<bool>]
        #Option     "ReprobeOutputs"            # [<bool>]
        #Option     "XvMC"                      # [<bool>]
        #Option     "ZaphodHeads"               # <str>
        #Option     "VirtualHeads"              # <i>
        Option     "TearFree"                    "true"
        #Option     "PerCrtcPixmaps"            # [<bool>]
        #Option     "FallbackDebug"             # [<bool>]
        #Option     "DebugFlushBatches"         # [<bool>]
        #Option     "DebugFlushCaches"          # [<bool>]
        #Option     "DebugWait"                 # [<bool>]
        #Option     "BufferCache"               # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection
which also didn't work. My kldstat output is:
Code:
Id Refs Address                Size Name
1  146 0xffffffff80200000  2142758 kernel
2    1 0xffffffff82343000   5a1b90 zfs.ko
3    1 0xffffffff828e6000     a4a0 cryptodev.ko
4    1 0xffffffff82ee5000   1808b8 i915kms.ko
5    1 0xffffffff83066000    72bd8 drm.ko
6    1 0xffffffff830d9000     22b0 iic.ko
7    2 0xffffffff830dc000     30fc linuxkpi_gplv2.ko
8    3 0xffffffff830e0000     62d8 dmabuf.ko
9    1 0xffffffff830e7000    31a58 linux.ko
10    2 0xffffffff83119000     be20 linux_common.ko
11    1 0xffffffff83125000    2dca8 linux64.ko
12    1 0xffffffff83153000     3378 acpi_wmi.ko
13    1 0xffffffff83157000     3250 ichsmb.ko
14    1 0xffffffff8315b000     2180 smbus.ko
15    1 0xffffffff8315e000    e8d58 if_rtw88.ko
16    1 0xffffffff83247000     5ecc ig4.ko
17    1 0xffffffff8324d000    23fc0 rtw8821c_fw.bin.ko
18    1 0xffffffff83271000     4d00 ng_ubt.ko
19    6 0xffffffff83276000     aac8 netgraph.ko
20    2 0xffffffff83281000     a238 ng_hci.ko
21    4 0xffffffff8328c000     25a8 ng_bluetooth.ko
22    1 0xffffffff8328f000     3220 iichid.ko
23    7 0xffffffff83293000     32b0 hidbus.ko
24    1 0xffffffff83297000     e250 ng_l2cap.ko
25    1 0xffffffff832a6000    1bee8 ng_btsocket.ko
26    1 0xffffffff832c2000     39c0 ng_socket.ko
27    1 0xffffffff832c6000     21e8 hms.ko
28    1 0xffffffff832c9000     30a8 hidmap.ko
29    1 0xffffffff832cd000     3328 hmt.ko
30    1 0xffffffff832d1000     22b0 hconf.ko
31    1 0xffffffff832d4000     a3c0 hkbd.ko
32    1 0xffffffff832df000     2a08 mac_ntpd.ko
33    1 0xffffffff832e2000     3340 uhid.ko
34    1 0xffffffff832e6000     4350 ums.ko
35    1 0xffffffff832eb000     3380 usbhid.ko
36    1 0xffffffff832ef000     3380 if_urndis.ko
37    1 0xffffffff832f3000     3178 uether.ko
Not really sure what I can do to fix this. Any help is appreciated.
 
Which FreeBSD version are you currently running? I'm a little bit out of the loop, but I think you need drm5.15 for Intel Iris Xe TigerLake support, and this is available with version 14.0 onwards. Please post the output of freebsd-version -kru. Then check if the packages graphics/drm-515-kmod, graphics/gpu-firmware-intel-kmod-tigerlake and x11-drivers/xf86-video-intel are installed.

Try with a minimal xorg.conf, i.e. delete your /etc/X11/xorg.conf. Your previous /usr/local/etc/X11/xorg.conf.d/20-intel.conf should be sufficient.

Then post your last /var/log/Xorg.0.log here. There might be error messages.

Try if the modesetting(4) driver works better for you than the intel driver.
 
Which FreeBSD version are you currently running? I'm a little bit out of the loop, but I think you need drm5.15 for Intel Iris Xe TigerLake support, and this is available with version 14.0 onwards. Please post the output of freebsd-version -kru. Then check if the packages graphics/drm-515-kmod, graphics/gpu-firmware-intel-kmod-tigerlake and x11-drivers/xf86-video-intel are installed.

Try with a minimal xorg.conf, i.e. delete your /etc/X11/xorg.conf. Your previous /usr/local/etc/X11/xorg.conf.d/20-intel.conf should be sufficient.

Then post your last /var/log/Xorg.0.log here. There might be error messages.

Try if the modesetting(4) driver works better for you than the intel driver.
I'm currently using FreeBSD 13.2 Stable which doesn't have the drivers drm-515-kmod and modesettings. xf86-video-intel and gpu-firmware-intel-kmod-tigerlake are installed but I'm not sure if they are loaded or need to be loaded. I deleted the xorg.conf file, rebooted and copied my xorg logs:
Code:
[    43.332] (--) Log file renamed from "/var/log/Xorg.pid-1692.log" to "/var/log/Xorg.0.log"
[    43.333] 
X.Org X Server 1.21.1.9
X Protocol Version 11, Revision 0
[    43.333] Current Operating System: FreeBSD freebsd 13.2-STABLE FreeBSD 13.2-STABLE stable/13-n256698-35372e305863 GENERIC amd64
[    43.333]  
[    43.333] Current version of pixman: 0.42.2
[    43.334]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    43.334] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    43.334] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Dec 11 16:20:57 2023
[    43.335] (==) Using config file: "/etc/X11/xorg.conf"
[    43.335] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[    43.335] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[    43.338] (==) ServerLayout "X.org Configured"
[    43.338] (**) |-->Screen "Screen0" (0)
[    43.338] (**) |   |-->Monitor "Monitor0"
[    43.338] (**) |   |-->Device "Card0"
[    43.338] (**) |   |-->GPUDevice "Card0"
[    43.338] (**) |-->Input Device "Mouse0"
[    43.338] (**) |-->Input Device "Keyboard0"
[    43.338] (==) Automatically adding devices
[    43.338] (==) Automatically enabling devices
[    43.338] (==) Automatically adding GPU devices
[    43.338] (==) Automatically binding GPU devices
[    43.338] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    43.344] (**) FontPath set to:
    /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,
    /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
[    43.344] (**) ModulePath set to "/usr/local/lib/xorg/modules"
[    43.344] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[    43.345] (WW) Disabling Mouse0
[    43.345] (WW) Disabling Keyboard0
[    43.345] (II) Module ABI versions:
[    43.345]     X.Org ANSI C Emulation: 0.4
[    43.345]     X.Org Video Driver: 25.2
[    43.345]     X.Org XInput driver : 24.4
[    43.345]     X.Org Server Extension : 10.0
[    43.350] (II) xfree86: Adding drm device (/dev/dri/card0)
[    43.350] (II) Platform probe for /dev/dri/card0
[    43.360] (--) PCI:*(0@0:2:0) 8086:9a49:1043:17d2 rev 1, Mem @ 0x6002000000/16777216, 0x4000000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x????????/65536
[    43.360] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[    43.360] (II) LoadModule: "glx"
[    43.362] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    43.377] (II) Module glx: vendor="X.Org Foundation"
[    43.378]     compiled for 1.21.1.9, module version = 1.0.0
[    43.378]     ABI class: X.Org Server Extension, version 10.0
[    43.378] (II) LoadModule: "intel"
[    43.378] (II) Loading /usr/local/lib/xorg/modules/drivers/intel_drv.so
[    43.382] (II) Module intel: vendor="X.Org Foundation"
[    43.382]     compiled for 1.21.1.9, module version = 2.99.917
[    43.382]     Module class: X.Org Video Driver
[    43.382]     ABI class: X.Org Video Driver, version 25.2
[    43.382] (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
[    43.385] (II) intel: Driver for Intel(R) HD Graphics
[    43.385] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[    43.385] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[    43.386] (--) Using syscons driver with X support (version 2.0)
[    43.386] (++) using VT number 9

[    43.396] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20200917
[    43.397] (II) intel(0): SNA compiled: 2.99.917-923-gb74b67f0f321
[    43.398] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    43.399] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics
[    43.399] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2; using a maximum of 4 threads
[    43.399] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[    43.400] (==) intel(0): RGB weight 888
[    43.400] (==) intel(0): Default visual is TrueColor
[    43.400] (**) intel(0): Option "AccelMethod" "SNA"
[    43.400] (**) intel(0): Option "DRI" "3"
[    43.400] (**) intel(0): Option "TearFree" "true"
[    43.402] (II) intel(0): Output eDP-1 using monitor section Monitor0
[    43.403] (II) intel(0): Enabled output eDP-1
[    43.403] (II) intel(0): Output HDMI-1 has no monitor section
[    43.403] (II) intel(0): Enabled output HDMI-1
[    43.403] (II) intel(0): Output DP-1 has no monitor section
[    43.403] (II) intel(0): Enabled output DP-1
[    43.403] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[    43.403] (II) intel(0): Output VIRTUAL1 has no monitor section
[    43.404] (II) intel(0): Enabled output VIRTUAL1
[    43.404] (--) intel(0): Output eDP-1 using initial mode 1920x1080 on pipe 0
[    43.404] (**) intel(0): TearFree enabled
[    43.404] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[    43.404] (==) intel(0): DPI set to (96, 96)
[    43.404] (II) Loading sub module "dri3"
[    43.404] (II) LoadModule: "dri3"
[    43.404] (II) Module "dri3" already built-in
[    43.404] (II) Loading sub module "dri2"
[    43.404] (II) LoadModule: "dri2"
[    43.404] (II) Module "dri2" already built-in
[    43.404] (II) Loading sub module "present"
[    43.404] (II) LoadModule: "present"
[    43.404] (II) Module "present" already built-in
[    43.405] (II) intel(0): SNA initialized with generic backend
[    43.405] (==) intel(0): Backing store enabled
[    43.406] (==) intel(0): Silken mouse enabled
[    43.406] (II) intel(0): HW Cursor enabled
[    43.407] (==) intel(0): DPMS enabled
[    43.408] (==) intel(0): Display hotplug detection enabled
[    43.408] (II) intel(0): Textured video not supported on this hardware or backend
[    43.409] (II) intel(0): [DRI2] Setup complete
[    43.409] (II) intel(0): [DRI2]   DRI driver: iris
[    43.409] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[    43.409] (II) intel(0): direct rendering: DRI2 DRI3 enabled
[    43.409] (II) intel(0): hardware support for Present enabled
[    43.409] (II) Initializing extension Generic Event Extension
[    43.409] (II) Initializing extension SHAPE
[    43.410] (II) Initializing extension MIT-SHM
[    43.410] (II) Initializing extension XInputExtension
[    43.411] (II) Initializing extension XTEST
[    43.411] (II) Initializing extension BIG-REQUESTS
[    43.412] (II) Initializing extension SYNC
[    43.412] (II) Initializing extension XKEYBOARD
[    43.412] (II) Initializing extension XC-MISC
[    43.413] (II) Initializing extension SECURITY
[    43.413] (II) Initializing extension XFIXES
[    43.413] (II) Initializing extension RENDER
[    43.414] (II) Initializing extension RANDR
[    43.414] (II) Initializing extension COMPOSITE
[    43.415] (II) Initializing extension DAMAGE
[    43.415] (II) Initializing extension MIT-SCREEN-SAVER
[    43.415] (II) Initializing extension DOUBLE-BUFFER
[    43.416] (II) Initializing extension RECORD
[    43.416] (II) Initializing extension DPMS
[    43.416] (II) Initializing extension Present
[    43.417] (II) Initializing extension DRI3
[    43.417] (II) Initializing extension X-Resource
[    43.417] (II) Initializing extension XVideo
[    43.418] (II) Initializing extension XVideo-MotionCompensation
[    43.418] (II) Initializing extension GLX
[    43.680] (II) AIGLX: Loaded and initialized iris
[    43.680] (II) GLX: Initialized DRI2 GL provider for screen 0
[    43.680] (II) Initializing extension XFree86-VidModeExtension
[    43.681] (II) Initializing extension XFree86-DGA
[    43.681] (II) Initializing extension XFree86-DRI
[    43.681] (II) Initializing extension DRI2
[    43.685] (II) intel(0): switch to mode 1920x1080@60.0 on eDP-1 using pipe 0, position (0, 0), rotation normal, reflection none
[    43.693] (II) intel(0): Setting screen physical size to 508 x 285
[    43.805] (II) config/udev: Adding input device System mouse (/dev/input/event0)
[    43.805] (**) System mouse: Applying InputClass "evdev pointer catchall"
[    43.805] (**) System mouse: Applying InputClass "libinput pointer catchall"
[    43.806] (II) LoadModule: "libinput"
[    43.806] (II) Loading /usr/local/lib/xorg/modules/input/libinput_drv.so
[    43.816] (II) Module libinput: vendor="X.Org Foundation"
[    43.816]     compiled for 1.21.1.9, module version = 1.3.0
[    43.816]     Module class: X.Org XInput Driver
[    43.816]     ABI class: X.Org XInput driver, version 24.4
[    43.816] (II) Using input driver 'libinput' for 'System mouse'
[    43.816] (**) System mouse: always reports core events
[    43.816] (**) Option "Device" "/dev/input/event0"
[    43.831] (II) event0  - System mouse: is tagged by udev as: Mouse
[    43.832] (II) event0  - System mouse: device is a pointer
[    43.833] (II) event0  - System mouse: device removed
[    43.833] (II) libinput: System mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[    43.833] (II) libinput: System mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[    43.833] (II) libinput: System mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[    43.833] (**) Option "config_info" "udev:/dev/input/event0"
[    43.833] (II) XINPUT: Adding extended input device "System mouse" (type: MOUSE, id 6)
[    43.833] (**) Option "AccelerationScheme" "none"
[    43.834] (**) System mouse: (accel) selected scheme none/0
[    43.834] (**) System mouse: (accel) acceleration factor: 2.000
[    43.834] (**) System mouse: (accel) acceleration threshold: 4
[    43.835] (II) event0  - System mouse: is tagged by udev as: Mouse
[    43.836] (II) event0  - System mouse: device is a pointer
[    43.836] (II) config/udev: Adding input device System keyboard multiplexer (/dev/input/event1)
[    43.836] (**) System keyboard multiplexer: Applying InputClass "evdev keyboard catchall"
[    43.837] (**) System keyboard multiplexer: Applying InputClass "Evdev keyboard"
[    43.837] (**) System keyboard multiplexer: Applying InputClass "libinput keyboard catchall"
[    43.837] (II) Using input driver 'libinput' for 'System keyboard multiplexer'
[    43.837] (**) System keyboard multiplexer: always reports core events
[    43.837] (**) Option "Device" "/dev/input/event1"
[    43.838] (II) event1  - System keyboard multiplexer: is tagged by udev as: Keyboard
[    43.838] (II) event1  - System keyboard multiplexer: device is a keyboard
[    43.840] (II) event1  - System keyboard multiplexer: device removed
[    43.840] (**) Option "config_info" "udev:/dev/input/event1"
[    43.840] (II) XINPUT: Adding extended input device "System keyboard multiplexer" (type: KEYBOARD, id 7)
[    43.840] (**) Option "xkb_rules" "evdev"
[    43.862] (II) event1  - System keyboard multiplexer: is tagged by udev as: Keyboard
[    43.863] (II) event1  - System keyboard multiplexer: device is a keyboard
[    43.864] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[    43.864] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[    43.864] (**) Power Button: Applying InputClass "Evdev keyboard"
[    43.864] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    43.864] (II) Using input driver 'libinput' for 'Power Button'
[    43.864] (**) Power Button: always reports core events
[    43.864] (**) Option "Device" "/dev/input/event2"
[    43.865] (II) event2  - Power Button: is tagged by udev as: Keyboard
[    43.866] (II) event2  - Power Button: device is a keyboard
[    43.867] (II) event2  - Power Button: device removed
[    43.867] (**) Option "config_info" "udev:/dev/input/event2"
[    43.867] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
[    43.867] (**) Option "xkb_rules" "evdev"
[    43.868] (II) event2  - Power Button: is tagged by udev as: Keyboard
[    43.868] (II) event2  - Power Button: device is a keyboard
[    43.869] (II) config/udev: Adding input device AT keyboard (/dev/input/event3)
[    43.869] (**) AT keyboard: Applying InputClass "evdev keyboard catchall"
[    43.869] (**) AT keyboard: Applying InputClass "Evdev keyboard"
[    43.869] (**) AT keyboard: Applying InputClass "libinput keyboard catchall"
[    43.869] (II) Using input driver 'libinput' for 'AT keyboard'
[    43.870] (**) AT keyboard: always reports core events
[    43.870] (**) Option "Device" "/dev/input/event3"
[    43.871] (II) event3  - AT keyboard: is tagged by udev as: Keyboard
[    43.871] (II) event3  - AT keyboard: device is a keyboard
[    43.873] (II) event3  - AT keyboard: device removed
[    43.873] (**) Option "config_info" "udev:/dev/input/event3"
[    43.873] (II) XINPUT: Adding extended input device "AT keyboard" (type: KEYBOARD, id 9)
[    43.873] (**) Option "xkb_rules" "evdev"
[    43.875] (II) event3  - AT keyboard: is tagged by udev as: Keyboard
[    43.875] (II) event3  - AT keyboard: device is a keyboard
[    43.877] (II) config/udev: Adding input device Control Method Lid Switch (/dev/input/event4)
[    43.877] (II) No input driver specified, ignoring this device.
[    43.877] (II) This device may have been added with another device file.
[    43.877] (II) config/udev: Adding input device ASUE1409:01 04F3:3157 Mouse (/dev/input/event5)
[    43.877] (**) ASUE1409:01 04F3:3157 Mouse: Applying InputClass "evdev pointer catchall"
[    43.877] (**) ASUE1409:01 04F3:3157 Mouse: Applying InputClass "libinput pointer catchall"
[    43.877] (II) Using input driver 'libinput' for 'ASUE1409:01 04F3:3157 Mouse'
[    43.878] (**) ASUE1409:01 04F3:3157 Mouse: always reports core events
[    43.878] (**) Option "Device" "/dev/input/event5"
[    43.879] (II) event5  - ASUE1409:01 04F3:3157 Mouse: is tagged by udev as: Mouse
[    43.880] (II) event5  - ASUE1409:01 04F3:3157 Mouse: device is a pointer
[    43.881] (II) event5  - ASUE1409:01 04F3:3157 Mouse: device removed
[    43.881] (II) libinput: ASUE1409:01 04F3:3157 Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[    43.881] (II) libinput: ASUE1409:01 04F3:3157 Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[    43.881] (II) libinput: ASUE1409:01 04F3:3157 Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[    43.881] (**) Option "config_info" "udev:/dev/input/event5"
[    43.881] (II) XINPUT: Adding extended input device "ASUE1409:01 04F3:3157 Mouse" (type: MOUSE, id 10)
[    43.881] (**) Option "AccelerationScheme" "none"
[    43.881] (**) ASUE1409:01 04F3:3157 Mouse: (accel) selected scheme none/0
[    43.881] (**) ASUE1409:01 04F3:3157 Mouse: (accel) acceleration factor: 2.000
[    43.881] (**) ASUE1409:01 04F3:3157 Mouse: (accel) acceleration threshold: 4
[    43.883] (II) event5  - ASUE1409:01 04F3:3157 Mouse: is tagged by udev as: Mouse
[    43.883] (II) event5  - ASUE1409:01 04F3:3157 Mouse: device is a pointer
[    43.884] (II) config/udev: Adding input device ASUE1409:01 04F3:3157 TouchPad (/dev/input/event6)
[    43.884] (**) ASUE1409:01 04F3:3157 TouchPad: Applying InputClass "evdev pointer catchall"
[    43.885] (**) ASUE1409:01 04F3:3157 TouchPad: Applying InputClass "evdev touchpad catchall"
[    43.885] (**) ASUE1409:01 04F3:3157 TouchPad: Applying InputClass "libinput pointer catchall"
[    43.885] (**) ASUE1409:01 04F3:3157 TouchPad: Applying InputClass "libinput touchpad catchall"
[    43.885] (**) ASUE1409:01 04F3:3157 TouchPad: Applying InputClass "touchpad catchall"
[    43.885] (**) ASUE1409:01 04F3:3157 TouchPad: Applying InputClass "Default clickpad buttons"
[    43.885] (II) LoadModule: "synaptics"
[    43.885] (II) Loading /usr/local/lib/xorg/modules/input/synaptics_drv.so
[    43.886] (II) Module synaptics: vendor="X.Org Foundation"
[    43.886]     compiled for 1.21.1.9, module version = 1.9.1
[    43.886]     Module class: X.Org XInput Driver
[    43.886]     ABI class: X.Org XInput driver, version 24.4
[    43.886] (II) Using input driver 'synaptics' for 'ASUE1409:01 04F3:3157 TouchPad'
[    43.886] (**) ASUE1409:01 04F3:3157 TouchPad: always reports core events
[    43.886] (**) Option "Device" "/dev/input/event6"
[    43.887] (II) synaptics: ASUE1409:01 04F3:3157 TouchPad: found clickpad property
[    43.887] (--) synaptics: ASUE1409:01 04F3:3157 TouchPad: x-axis range 0 - 3151 (res 30)
[    43.887] (--) synaptics: ASUE1409:01 04F3:3157 TouchPad: y-axis range 0 - 1868 (res 31)
[    43.887] (II) synaptics: ASUE1409:01 04F3:3157 TouchPad: device does not report pressure, will use touch data.
[    43.887] (II) synaptics: ASUE1409:01 04F3:3157 TouchPad: device does not report finger width.
[    43.887] (--) synaptics: ASUE1409:01 04F3:3157 TouchPad: buttons: left double triple
[    43.887] (--) synaptics: ASUE1409:01 04F3:3157 TouchPad: Vendor 0x4f3 Product 0x3157
[    43.887] (--) synaptics: ASUE1409:01 04F3:3157 TouchPad: invalid pressure range.  defaulting to 0 - 255
[    43.887] (--) synaptics: ASUE1409:01 04F3:3157 TouchPad: invalid finger width range.  defaulting to 0 - 15
[    43.887] (**) Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
[    43.887] (--) synaptics: ASUE1409:01 04F3:3157 TouchPad: touchpad found
[    43.887] (**) ASUE1409:01 04F3:3157 TouchPad: always reports core events
[    43.887] (**) Option "config_info" "udev:/dev/input/event6"
[    43.887] (II) XINPUT: Adding extended input device "ASUE1409:01 04F3:3157 TouchPad" (type: TOUCHPAD, id 11)
[    43.887] (**) synaptics: ASUE1409:01 04F3:3157 TouchPad: (accel) MinSpeed is now constant deceleration 2.5
[    43.888] (**) synaptics: ASUE1409:01 04F3:3157 TouchPad: (accel) MaxSpeed is now 1.75
[    43.888] (**) synaptics: ASUE1409:01 04F3:3157 TouchPad: (accel) AccelFactor is now 0.055
[    43.888] (**) ASUE1409:01 04F3:3157 TouchPad: (accel) keeping acceleration scheme 1
[    43.888] (**) ASUE1409:01 04F3:3157 TouchPad: (accel) acceleration profile 1
[    43.888] (**) ASUE1409:01 04F3:3157 TouchPad: (accel) acceleration factor: 2.000
[    43.888] (**) ASUE1409:01 04F3:3157 TouchPad: (accel) acceleration threshold: 4
[    43.888] (--) synaptics: ASUE1409:01 04F3:3157 TouchPad: touchpad found
[    43.888] (II) config/udev: Adding input device ASUE1409:01 04F3:3157 Keyboard (/dev/input/event7)
[    43.888] (**) ASUE1409:01 04F3:3157 Keyboard: Applying InputClass "evdev keyboard catchall"
[    43.888] (**) ASUE1409:01 04F3:3157 Keyboard: Applying InputClass "Evdev keyboard"
[    43.888] (**) ASUE1409:01 04F3:3157 Keyboard: Applying InputClass "libinput keyboard catchall"
[    43.888] (II) Using input driver 'libinput' for 'ASUE1409:01 04F3:3157 Keyboard'
[    43.888] (**) ASUE1409:01 04F3:3157 Keyboard: always reports core events
[    43.888] (**) Option "Device" "/dev/input/event7"
[    43.890] (II) event7  - ASUE1409:01 04F3:3157 Keyboard: is tagged by udev as: Keyboard
[    43.890] (II) event7  - ASUE1409:01 04F3:3157 Keyboard: device is a keyboard
[    43.891] (II) event7  - ASUE1409:01 04F3:3157 Keyboard: device removed
[    43.892] (**) Option "config_info" "udev:/dev/input/event7"
[    43.892] (II) XINPUT: Adding extended input device "ASUE1409:01 04F3:3157 Keyboard" (type: KEYBOARD, id 12)
[    43.892] (**) Option "xkb_rules" "evdev"
[    43.893] (II) event7  - ASUE1409:01 04F3:3157 Keyboard: is tagged by udev as: Keyboard
[    43.893] (II) event7  - ASUE1409:01 04F3:3157 Keyboard: device is a keyboard
[    45.430] (II) intel(0): EDID vendor "BOE", prod id 2038
[    45.430] (II) intel(0): Printing DDC gathered Modelines:
[    45.430] (II) intel(0): Modeline "1920x1080"x0.0  147.30  1920 1968 2000 2192  1080 1083 1089 1120 +hsync -vsync (67.2 kHz eP)
Is this hopeless without switching to FreeBSD 14.0?
 
No, I was probably very wrong with the 14.0 requirement. According to your /var/log/Xorg.0.log everything seems fine with your driver selection and options.

What is exactly your problem? Are windows tearing when dragged around in your KDE desktop?

Have you tried the modesetting(4) driver instead of the intel driver, i.e. replaced Driver "intel" with Driver "modesetting" inside your /usr/local/etc/X11/xorg.conf.d/20-intel.conf and adjusted the options according to the manpage modesetting(4)? It could provide better results.
 
No, I was probably very wrong with the 14.0 requirement. According to your /var/log/Xorg.0.log everything seems fine with your driver selection and options.

What is exactly your problem? Are windows tearing when dragged around in your KDE desktop?

Have you tried the modesetting(4) driver instead of the intel driver, i.e. replaced Driver "intel" with Driver "modesetting" inside your /usr/local/etc/X11/xorg.conf.d/20-intel.conf and adjusted the options according to the manpage modesetting(4)? It could provide better results.
No, I tried installing modesetting and it's not in the 13.2 STABLE repositories. And the problem is exactly what you said, the screen tears when scrolling or moving windows around.
 
As there seems to be some confusion, graphics/drm-515-kmod requires at least 14.0-RELEASE.

Code:
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1400081
IGNORE=		not supported on older than 14.0, no kernel support
.endif
.if ${OPSYS} != FreeBSD
IGNORE=		not supported on anything but FreeBSD (missing linuxkpi functionality)
.endif
 
Thanks for all the help, though it seems like there is no solution for this in 13.2 Stable. I will reinstall Linux back for now and try dual-booting with 14.0 Release a few weeks later. I'm tagging this thread as solved.
 
Back
Top