Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Options DRI and TearFree not used with intel i965
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
alogim
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2015
Posts: 127

PostPosted: Sun Sep 16, 2018 1:14 pm    Post subject: [SOLVED] Options DRI and TearFree not used with intel i965 Reply with quote

I have an Intel Core i7-8550U with an integrated Intel UHD Graphics 620. I have some problems to solve.
I installed sys-kernel/linux-firmware. Since it says that "Including the firmware in-kernel may cause suspend-to-ram to fail, if this is a concern don't include the blob built into the kernel." and when I used genkernel to compile the kernel (so that I have a functional system and now I can disable what I do not need) it did not include the blob build into the kernel, I left it as it was. I did not added GuC firmware, since it says there are problems with it. I configured the kernel as explained here (I am using sys-kernel/gentoo-sources-4.18.7). I set the following:
Code:
VIDEO_CARDS="intel i965"
.
As explained here, Intel DDX has been slowly deprecating for around two years, so I use Modesetting DDX. I added glamor to my global USE flags and my /etx/X11/xorg.conf.d/20-modesetting.conf is as follows:
Code:
Section "Device"
    Identifier  "Intel Graphics"
    Driver      "modesetting"
    Option      "AccelMethod"    "glamor"
    Option      "DRI"            "3"
    Option      "TearFree"       "true"
EndSection
However, I still am experiencing display tearing and DRI3 is not used at all. More specifically, here is my /var/log/Xorg.0.log:
Code:
[     8.117] (==) modeset(0): Backing store enabled
[     8.117] (==) modeset(0): Silken mouse enabled
[     8.117] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[     8.156] (==) modeset(0): DPMS enabled
[     8.156] (WW) modeset(0): Option "DRI" is not used
[     8.156] (WW) modeset(0): Option "TearFree" is not used
[     8.156] (II) modeset(0): [DRI2] Setup complete
[     8.156] (II) modeset(0): [DRI2]   DRI driver: i965
[     8.156] (II) modeset(0): [DRI2]   VDPAU driver: i965
[     8.156] (--) RandR disabled


Thank you in advance.
_________________
Desktop: i5-3570k - 2x4 GB - Sapphire HD 7950 Dual-X - 500 GB WD Caviar Black - Dell SE2717H 27"
Laptop: HP EliteBook 850 G5 - i7-8550U - 1x16GB - Intel UHD 620 - 512 GB Samsung NVMe SSD
Phone: OnePlus 5T - SD835 - 8 GB - Adreno 540 - 128 GB


Last edited by alogim on Tue Sep 18, 2018 7:21 am; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4122
Location: Dallas area

PostPosted: Sun Sep 16, 2018 1:36 pm    Post subject: Reply with quote

re DRI3 https://bugs.freedesktop.org/show_bug.cgi?id=98875 comment #3

re TearFree https://bugs.freedesktop.org/show_bug.cgi?id=98876
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.1 (no-pie & modified) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon


Last edited by Anon-E-moose on Sun Sep 16, 2018 1:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
tholin
Apprentice
Apprentice


Joined: 04 Oct 2008
Posts: 170

PostPosted: Sun Sep 16, 2018 1:38 pm    Post subject: Reply with quote

The modesetting driver doesn't support TearFree.
https://bugs.freedesktop.org/show_bug.cgi?id=98876

Because of that the modesetting driver is basically useless unless you use a compositor. You'll have to use xf86-video-intel driver and try to work around the bugs.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43387
Location: 56N 3W

PostPosted: Sun Sep 16, 2018 1:44 pm    Post subject: Reply with quote

alogim,

VIDEO_CARDS= is used for two things.
Building the right support into mesa and choosing the drivers that xorg-drivers will install.
modesetting need not be listed there, as its included with xorg-server.

Your
Code:
Section "Device"
    Identifier  "Intel Graphics"
    Driver      "modesetting"
tells xord to use the modesetting driver, not the intel one.

From your log
Code:
[     8.156] (WW) modeset(0): Option "DRI" is not used
[     8.156] (WW) modeset(0): Option "TearFree" is not used
tells that the modesetting driver does not use those options.
Further down it says
Code:
[     8.156] (II) modeset(0): [DRI2]   DRI driver: i965
which means that DRI is in use. Together with the warning, that means it cannot be turned off.

If you move
Code:
/etc/X11/xorg.conf.d/20-modesetting.conf
out of /etc/X11/xorg.conf.d so its not found, then restart, Xorg.0.log will list preferred drivers in order. Use the driver at the top of the list.
I don't know what its is but I suspect that it won't be modesetting.
Modesetting will be there, so Xorg will still start.

What you report is correct for the modesetting driver.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
alogim
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2015
Posts: 127

PostPosted: Sun Sep 16, 2018 2:03 pm    Post subject: Reply with quote

Anon-E-moose wrote:
re DRI3 https://bugs.freedesktop.org/show_bug.cgi?id=98875 comment #3

This explains it then. It is indeed using DRI3
Code:
libGL: Using DRI3 for screen 0
.
Anon-E-moose wrote:
re TearFree https://bugs.freedesktop.org/show_bug.cgi?id=98876

tholin wrote:
The modesetting driver doesn't support TearFree.
https://bugs.freedesktop.org/show_bug.cgi?id=98876

Because of that the modesetting driver is basically useless unless you use a compositor. You'll have to use xf86-video-intel driver and try to work around the bugs.

I see, thank you. I added
Code:
Section "Extensions"
    Option  "Composite"  "Enable"
EndSection
to my Xorg configuration file.

Thank you for your help!
_________________
Desktop: i5-3570k - 2x4 GB - Sapphire HD 7950 Dual-X - 500 GB WD Caviar Black - Dell SE2717H 27"
Laptop: HP EliteBook 850 G5 - i7-8550U - 1x16GB - Intel UHD 620 - 512 GB Samsung NVMe SSD
Phone: OnePlus 5T - SD835 - 8 GB - Adreno 540 - 128 GB
Back to top
View user's profile Send private message
dasPaul
Apprentice
Apprentice


Joined: 14 Feb 2012
Posts: 213
Location: Dresden

PostPosted: Wed Nov 21, 2018 9:54 am    Post subject: Reply with quote

@alogim

sorry that I capture the thread.

so you used the x11-drivers? Do you still have tearing?

I ask because tearing is driving me crazy with my Skylake igpu since years (and NVIDIA of cause too)!
Finally I found a configuration that seems to have no tearing.. Openbox with compton
(compton --backend glx --refresh-rate 50) and mpv and my videos and TV played just super
smooth with no tearing no matter fullscreen or windowed.

Now my intention was to switch to (unsupported) compiz-reloaded...
currently its a pure mess with tearing and I start all over playing with the
options...

Can someone please explain what is that all about the intel modesetting driver?
Is x11-drivers intended to be deprecated in the future? Is the modesetting driver
made by Intel or is it something else? Why is there a modesetting driver beside
the "x11-drivers"? I am so confused... And additional confusion comes in
by all the people blaming:
"no, tearing is not an issue of the intel driver, its a compositor issue"
"NO, YOU are wrong, its an driver problem and not a comositor problem".
Then one tries to tweak driver parameters that than dont work for the modesettings
driver and besides that you have to tweak compositors like compton... its just crazy :(
_________________
-=human without Windows®=-
sorry for my bad english!
Back to top
View user's profile Send private message
dasPaul
Apprentice
Apprentice


Joined: 14 Feb 2012
Posts: 213
Location: Dresden

PostPosted: Thu Nov 22, 2018 8:29 pm    Post subject: Reply with quote

again slightly offtopic but I currently use wayland and sway and I have to say
this is the smoothest video playback I have ever had with linux, no tearing, no micro stutters,
just gorgeous. If I dont encounter any major quirks I say goodbye X11 even if I dont really like
that sway / i3 like wms :twisted:
_________________
-=human without Windows®=-
sorry for my bad english!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum