LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Yet another tearing topic in Debian Sid (https://www.linuxquestions.org/questions/linux-desktop-74/yet-another-tearing-topic-in-debian-sid-4175442989/)

bucovaina78 12-26-2012 07:53 AM

Yet another tearing topic in Debian Sid
 
I'm having some trouble with tearing in a fresh Debian Sid install ... I'm using a standard ASUS P8Z77V motherboard with onboard graphics. The funny thing is, that Knoppix 7.0.5 gets it perfectly right, so it is possible with my hardware.

So what do I need to do to "copy" all the settings from Knoppix to Debian?

[edit]knoppix doesn't get it right after all ... but it seems to be better[/edit]

gradinaruvasile 12-28-2012 03:42 AM

Tearing... where? Specific programs?
Install the latet kernel (3.6) from experimental + make sure you have the firmware packages installed. Maybe it helps.
Other than that, buying an AMD or Nvidia card. Intel drivers never been good.

bucovaina78 12-30-2012 11:17 AM

Flash video's, mkv video's (played with totem or VLC, doesn't matter). Dragging windows rather quicly, horizontally, ... basically everywhere.

I've had Nvidia cards in the past but I never experienced a "tear-free" linux so I thought a basic intel.

I might be wrong but will a new kernel help?

gradinaruvasile 12-30-2012 02:33 PM

Nvidia isnt tear-free (i had a 8200). AMD pretty much is, however (now i have a A8-5500 with HD 7560D) - the driver has a "tear-free" option that really does the job.

And yes, a new kernel *might* help, depending what new modifications are included. Right now the latest kernel is 3.7 in the experimental repos, but it doesnt have the linux-kbuild package yet so you cannot compile kernel modules (if you need them anyway). The latest kernel with the kbuild package is 3.6 in experimental.

Other than that, you can download and install the latest kernel from kernel.org.

bucovaina78 08-29-2014 05:55 AM

OK old topic of mine but still after all those years I'm not "tear free". If I use VLC to watch a movie, it's very apparent.

DavidMcCann 08-29-2014 12:14 PM

Sometimes you just have to try another video player. I see a lot of distros and software when reviewing distros, and the variation in performance is enormous.

TobiSGD 08-29-2014 04:51 PM

Which DE/WM do you use?

gradinaruvasile 08-30-2014 01:54 AM

There are a few things that can help:
-turning off any compositing managers
-using opengl or vdpau (if your cards+drivers support it) for display. Opengl is universal and it should work if you force vblanking in the driver.

TobiSGD 08-30-2014 07:27 AM

Quote:

Originally Posted by gradinaruvasile (Post 5229631)
There are a few things that can help:
-turning off any compositing managers

I would recommend exactly the opposite. It is well known that tearing in XFCE can be eliminated (or at least seriously reduced) by adding a compositor like Compton. That is why I asked which DE/WM is in use.

gradinaruvasile 08-30-2014 02:25 PM

Quote:

Originally Posted by TobiSGD (Post 5229715)
I would recommend exactly the opposite. It is well known that tearing in XFCE can be eliminated (or at least seriously reduced) by adding a compositor like Compton. That is why I asked which DE/WM is in use.

Yeah, you can reduce the tearing on dragging desktop items and whatnot because the output is translated into opengl (but the tearing is minimal anyway, at least with nvidia or radeon/r600+glamor with latest git mesa+kernels).

But if you play back some video its easier to set it to output on opengl or vdpau. Best is vdpau (OOTB vsync that works well) but that doesnt work on intel or fglrx (it does work on nvidia, nouveau and radeon's newer than hd2000/3000 cards).
Opengl does the job just fine, but make sure vblank is on by default for your cards drivers (the OSS drivers tend to have it on by default).

Using compton to "straighten stuff up" when playing video leads to inconsistent/low frame rates, stuttering (same goes for fglrx' tear free option btw). Yes, it does have an "unrediect fullscreen app" option, but that didnt always worked for me.
DO NOT use the built in xfce compositor - while it does have a vsync option, it doesnt work well with video playback or games (=tearing+high cpu usage) - because its a software based compositor.

Games are a totally different category, the different 3d engines leading to different results regarding vsync. Some work well, some dont (even if they have a vsync on switch). Starting any opengl application preceded by vblank_mode=1 enables vblank usage by default (0 disables), but even then the engine might override it.

bucovaina78 12-14-2014 02:09 PM

Fantastic, after all those years, I finally managed to get a tear free desktop. The Mainboard is not the same but it is an Intel video card.
Add this to a new file called /usr/share/X11/xorg.conf.d/20-intel.conf
Code:

Section "Device"
  Identifier  "Intel Graphics"
  Driver      "intel"
  Option      "AccelMethod"  "sna"
  Option      "TearFree" "true"
EndSection

Oh and yes I'm running XFCE4. That - apparently - was part of the problem indeed.


All times are GMT -5. The time now is 02:47 AM.