Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
set xf86-video-intel TearFree option by default
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
tberger2
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2013
Posts: 83

PostPosted: Sat Sep 24, 2016 1:49 pm    Post subject: set xf86-video-intel TearFree option by default Reply with quote

I have this nvidia intel optimus hardware thing in my laptop which works now with this software PRIME thing using DRI_PRIME=1.
The problem is, that I can't use a xorg.conf to activate this intel TearFree option which is deactivated by default since this xrandr provider offload thing doesn't work then.

Confusing? Yes - and annoying.

So is there a patch that enables this TearFree option by default for this intel driver?

Thanx for every hint.
Back to top
View user's profile Send private message
haarp
Guru
Guru


Joined: 31 Oct 2007
Posts: 535

PostPosted: Mon Sep 26, 2016 11:19 am    Post subject: Reply with quote

And the Intel doesn't have a separate xorg.conf? It does if you use Bumblebee.

Could you please elaborate how Prime works?
Back to top
View user's profile Send private message
tberger2
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2013
Posts: 83

PostPosted: Mon Sep 26, 2016 2:15 pm    Post subject: Reply with quote

I've spent too much time in this bumblebee thing and our friends from Arch say, that using nouveau means using PRIME thing, not bumblebee thing, and I WANT using nouveau since these proprietary nvidia drivers cause...

...right: Tearing.

I have no single idea what all these things do. I only follow slavishly this howto which says
Quote:

Don't see both graphic adapters in xrandr --listproviders?
Delete xorg.conf!


Wich I did and it works so we go back to this intel thing, which has to be patched but I really have no idea how to do this.

Perhaphs it has to do with these lines in configure.ac

Code:
AC_ARG_ENABLE(tear-free,
              AS_HELP_STRING([--enable-tear-free],
                             [Enable use of TearFree by default [default=no]]),
              [TEARFREE="$enableval"],
              [TEARFREE="no"])
if test "x$TEARFREE" = "xyes"; then
        AC_DEFINE(TEARFREE,1,[Enable "TearFree" by default])
        xp_msg="$xp_msg TearFree"
fi


but - as I've already written, I have no idea of these things...
Back to top
View user's profile Send private message
tberger2
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2013
Posts: 83

PostPosted: Tue Sep 27, 2016 1:00 pm    Post subject: Reply with quote

haarp wrote:
Could you please elaborate how Prime works?

Code:
xrandr --setprovideroffloadsink nouveau Intel

Code:
DRI_PRIME=1 your_program


Edit:
This is the HOWTO I reffered to.

These guys from Arch are really hard-working in writing down secret knowledge and I hereby want to laud them for this.

And the good thing is: it often works :-). In my case "Discrete Card as Primary GPU" does'nt work. Don't know why not, but as I formely said: concerning this PRIME thing I know less than nothing. It could have to do with my xserver version but this is just a guess from someone who knows...
...you know what.

I have a working version with these proprietary nvidia drivers which cause...
...you know that too.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Tue Sep 27, 2016 4:20 pm    Post subject: Reply with quote

You can create a file /etc/portage/env/x11-drivers/xf86-video-intel which contains
Code:
EXTRA_ECONF="--enable-tear-free"

For more information on how to set environment variables per package, visit https://wiki.gentoo.org/wiki/Knowledge_Base:Overriding_environment_variables_per_package
Back to top
View user's profile Send private message
tberger2
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2013
Posts: 83

PostPosted: Wed Sep 28, 2016 6:14 am    Post subject: Reply with quote

I'll try that, vielen Dank!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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