drm-next-kmod screen tearing?

scottro

Daemon

Thanks: 418
Messages: 1,237

#4
All videos? Have you tried as a different user? What version of FreeBSD? Have you tried drm-stable?
As has been said, more information would be useful. If one is a beginner, it's not always plain what information is needed, but that's one of the purposes of forums like these, so people can learn. :)

To get the version, run uname -a and post that output. If running CURRENT, use the GENERIC-no-debug kernel. And so on. (We can keep guessing, buti giving us more information will, as the old customer service adage goes, from back when customer service was a thing, Help us help you.
 

ILUXA

Aspiring Daemon

Thanks: 348
Messages: 564

#5
What GPU your're using, i-bsd?
If you use intel integrated graphics,
it is possible to try the following,
add Option "TearFree" "true"
to Device section of /etc/X11/xorg.conf:
Code:
Section "Device"
        Identifier  "Card0"
        Driver "intel"
        Option "AccelMethod" "sna"
        Option "TearFree" "true"
EndSection
AccelMethod should be sna to make TearFree option work.
 
OP
OP
i-bsd

i-bsd

Member

Thanks: 6
Messages: 54

#6
X1 Carbon 6th gen. Intel HD using drm-next-kmod on 11.2BETA2 for those asking.

But I just realize that I've been using 'vesa' and not 'intel'.

Installed the intel driver which has eliminated screen tearing but now X is significantly slower while using compton (e.g. 1 second delay when opening a new urxvt terminal). I'm guessing this is an issue with drm-next and not my system which should easily handle this.
 

Tulkas

New Member


Messages: 1

#7
I'm seeing a very similar effect when i use drm-next-kmod. Perhaps it is worth a try to install drm-stable-kmod instead which does a great job on my Lenovo T450.
 

tankist02

Well-Known Member

Thanks: 33
Messages: 294

#8
On XFCE I had to disable Compositing to get rid of tearing when playing videos. On Mate I could not completely get rid of tearing - some was always present.
 
OP
OP
i-bsd

i-bsd

Member

Thanks: 6
Messages: 54

#10
Yeah I'm still getting poor performance with drm-next with and without compton running. Vesa driver ran exceptionally well (but I just can't watch movies without tearing).

So my choice is either: a) fast computer and good productivity or b) smooth videos.
 

ILUXA

Aspiring Daemon

Thanks: 348
Messages: 564

#11
If you use intel integrated graphics, you got few options to try:

1. Use modesetting driver, add this to /etc/X11/xorg.conf and restart Xorg:
Code:
Section "Device"
        Identifier  "Card0"
        Driver "modesetting"
        Option "AccelMethod" "glamor"
EndSection
2. Use intel driver (x11-drivers/xf86-video-intel should be installed) with "SNA" acceleration,
add this to /etc/X11/xorg.conf and restart Xorg:
Code:
Section "Device"
        Identifier  "Card0"
        Driver "intel"
        Option "AccelMethod" "sna"
        Option "TearFree" "true"
EndSection
3. Use intel driver (x11-drivers/xf86-video-intel should be installed) with "UXA" acceleration,
add this to /etc/X11/xorg.conf and restart Xorg:
Code:
Section "Device"
        Identifier  "Card0"
        Driver "intel"
        Option "AccelMethod" "uxa"
EndSection
 

ILUXA

Aspiring Daemon

Thanks: 348
Messages: 564

#13
Maybe you're right and it won't work. I forgot, that he uses "X1 Carbon 6th gen",
personally I didn't try to use these drivers and acceleration methods with "6th gen",
but I tried to use it with graphics/drm-next-kmod and it's working fine,
nevertheless I suggest to try it.
 
OP
OP
i-bsd

i-bsd

Member

Thanks: 6
Messages: 54

#14
Tried all the above methods. Still not 100% what it should be.

Whether using intel, modesetting or vesa, I either get major performance issues or video tears. Have tried loads of different compton, mpv, xorg, .Xresources options and in the end, I think I have to conclude that it's an issue with my new hardware.

Problem is I haven't tested it with Windows or Linux so I have no idea what to compare it to but it's an 8th gen Core i7 and should be lightning fast (all I'm doing is running 3 urxvt terminals and a firefox browser in i3).

Still a great laptop for FreeBSD - just not optimized yet but I'm sure that someone will get on it before long.
 

abishai

Aspiring Daemon

Thanks: 132
Messages: 583

#15
Are your user has access to /dev/drm ? You can easily check with mpv if you have acceleration (it complains in console).
 

goshanecr

Active Member

Thanks: 9
Messages: 142

#16
Guys, I'm solve my problems with chain FreeBSD+Xorg+Fluxbox+drm-next-kmod now by adding my user to groups (don't know which one solve exactly):
Code:
wheel:*:0:root,goshanecr
kmem:*:2:goshanecr
sys:*:3:goshanecr
operator:*:5:root,goshanecr
bin:*:7:goshanecr
games:*:13:goshanecr
video:*:44:goshanecr
goshanecr:*:1001:
messagebus:*:556:goshanecr
polkitd:*:565:goshanecr
polkit:*:562:goshanecr
haldaemon:*:560:goshanecr
Without this I have strange issues "Not redrawing windows", "characters typed in terminal (tilda) shows only after pressing ENTER"
 

goshanecr

Active Member

Thanks: 9
Messages: 142

#18
No, video group was active initially (I'm add right after xorg install). Some group related to dbus I think.
 

thesavo

New Member


Messages: 1

#19
If you use intel integrated graphics, you got few options to try:

1. Use modesetting driver, add this to /etc/X11/xorg.conf and restart Xorg:
Code:
Section "Device"
        Identifier  "Card0"
        Driver "modesetting"
        Option "AccelMethod" "glamor"
EndSection
2. Use intel driver (x11-drivers/xf86-video-intel should be installed) with "SNA" acceleration,
add this to /etc/X11/xorg.conf and restart Xorg:
Code:
Section "Device"
        Identifier  "Card0"
        Driver "intel"
        Option "AccelMethod" "sna"
        Option "TearFree" "true"
EndSection
3. Use intel driver (x11-drivers/xf86-video-intel should be installed) with "UXA" acceleration,
add this to /etc/X11/xorg.conf and restart Xorg:
Code:
Section "Device"
        Identifier  "Card0"
        Driver "intel"
        Option "AccelMethod" "uxa"
EndSection
Thank you. Option 2 solved screen tearing for me. I have TrueOS installed on a Dell Latitude E7450.
It was tearing on vertical scrolling and in youtube videos.
 
Top