Peppermint OS Community Forum

Resources => User Submitted Tutorials => Topic started by: PCNetSpec on November 25, 2015, 07:12:54 am

Title: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on November 25, 2015, 07:12:54 am
I'm putting this here rather than the official tutorials section because I can't guarantee it'll work for everyone .. but it's certainly worked for me on 3 PC's with Intel graphics chips that were using the i915 driver.

This is ONLY for Intel graphics .. do NOT use this for nVidia or AMD/ATI graphics cards.

First check if you do indeed have an intel graphics chip .. open a terminal and run:
Code: [Select]
inxi -G

If that says you have intel graphics hardware and are using the i915 driver, carry on below....

First check you have a screen tearing issue in the first place .. if you see horizontal tearing in this video carry on below:-

https://www.youtube.com/watch?v=5xkNy9gfKOg

The FIX

Open a terminal and run these commands in sequence:
Code: [Select]
sudo apt-get install mesa-utils
then
Code: [Select]
sudo mkdir -v /etc/X11/xorg.conf.d
then
Code: [Select]
echo -e 'Section "Device"\n Identifier "Intel Graphics"\n Driver "Intel"\n Option "AccelMethod" "sna"\n Option "TearFree" "true"\nEndSection' | sudo tee /etc/X11/xorg.conf.d/20-intel.conf
now REBOOT to pick up the changes.   <-- It's IMPORTANT that you reboot to apply the changes



To UNDO

Open a terminal and run:
Code: [Select]
sudo rm -v /etc/X11/xorg.conf.d/20-intel.conf
and REBOOT.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: scifidude79 on April 06, 2016, 10:01:57 am
I love this tutorial.  I'm running Intel HD graphics on this desktop computer I'm running and the tearing while scrolling in Firefox was driving me nuts. (I know, short trip)  Anyway, I applied the fix and no more tearing.  Thanks as always, Mark.  8)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on April 07, 2016, 09:47:03 pm
And as always, you're welcome my mate :)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PingTway on June 04, 2016, 08:40:30 pm
I apologize  for my ignorance.. what does screen tearing look like?

Thanks
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on June 04, 2016, 08:54:25 pm
Hi PingTway, and welcome to the forum :)

Click this picture to enlarge

(https://upload.wikimedia.org/wikipedia/commons/0/03/Tearing_%28simulated%29.jpg)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PingTway on June 05, 2016, 03:44:49 am
Ok, thanks. I see now. Yes I have something like that I will try your suggestion now.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: marcdutonkin on June 05, 2016, 08:19:11 pm
 This fix works well on my NUC as long as the screen is not put to sleep.  However, if you set the power management preferences to put the screen to sleep when the computer is inactive, the screen tearing issue reappears after screen wakeup.
To fix this situation it is also necessary to set the "Synchronize drawing to the vertical blank" desktop effect in Peppermint6 Control Center.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: MDP602 on July 01, 2016, 03:15:19 am
Hello,

I was getting screen tearing on my install of Peppermint OS 7  in full screen and not full screen. I have Intel HD 4000 graphics. I then tried the above installing the Mesa driver which fixed the screen tearing, but however while in full screen now (watching YouTube videos in Google Chrome) I get screen glitches :( Not sure if there is another way to fix the screen tearing or if a way to fix the screen glitches while using the Mesa driver for this Intel HD 4000 graphics.

Thanks for the help.

*If needed, this is a laptop Lenovo ideapad P500 with Intel i7 CPU, 8GB Ram, Intel HD 4000 graphics*
Title: Re: Fix screen tearing on Intel graphics chips
Post by: AndyInMokum on July 01, 2016, 03:42:37 am
Hi MDP602 welcome to the Peppermint Forum  8).  Launch Google Chrome.  Click on the three stacked dots symbol in the top right corner of the screen.  Select: Settings and scroll down to: + Show advanced settings and select it.  Scroll down to to Settings and uncheck/deselect: Use hardware acceleration when available.  Close all instances of Google Chrome including any Chrome SSBs, if you have any.  Relaunch Google Chrome.  Did that help  ;)?  If it didn't, try disabling some of the effects in: menu > Favourites > Peppermint Settings Panel > Peppermint Control Center.  From the: Desktop Effects tab, disable all or some of the effects  ;).
Title: Re: Fix screen tearing on Intel graphics chips
Post by: Pikolo on January 16, 2017, 08:26:47 pm
I never noticed the tearing before, but I seem to have it. At least it shows on the white/black stripes video. Can you apply the same fix to newer mesa drivers?
Code: [Select]
pshem@PiLenovo ~ $ inxi -G
Graphics:  Card: Intel 3rd Gen Core processor Graphics Controller
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1366x768@59.97hz
           GLX Renderer: Mesa DRI Intel Ivybridge Mobile
           GLX Version: 3.0 Mesa 13.0.3 - padoka PPA
This graphics card is more commonly known as Intel HD4000. The screen tearing is only minor. what are the odds of breaking something with this fix?
Title: Re: Fix screen tearing on Intel graphics chips
Post by: murraymint on January 17, 2017, 05:12:44 am
I've done it on 2nd generation "Sandybridge" and it seemed to help.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: utu on January 19, 2017, 11:01:35 pm
Thanks for this tweak.
I wasn't aware of the problem.
This solves it completely.
Using Xubuntu 16.10 with Xfce4, FYI.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on January 20, 2017, 04:06:33 pm
No problem utu, glad it helped :)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: farms on February 16, 2017, 05:42:49 am
PCNetSpec once again thank you i had different intel driver than you said but it works , cheers.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on February 16, 2017, 06:21:21 pm
Mucho welcomeness :)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: weissnich on January 04, 2018, 01:47:18 pm
Hi,

i have massive tearing problems with Intel i915 in debian jessie, can somebody tell me if this workaround is still working for peppermint 8, I would give it a try then.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: scifidude79 on January 04, 2018, 02:10:51 pm
I can't speak for your particular GPU, but I recently installed the Peppermint 8 Respin on a computer with Intel graphics and the tearing fix still worked on that system.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: weissnich on January 04, 2018, 05:29:49 pm
Thx, it worked, finally tearfree videos, much appreciated.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: DARKBOW923 on February 28, 2018, 03:42:44 pm
Thanks! I know this post is old, but i get desperated with the screen tearing problem  >:(

I maked the changes, and all the screen tearing is fixed now :p

The only problem that i have now, is that my PC won't shutdown with linux xD but this it not matter now.. the important thing is that the tutorial is 10/10 useful.. thanks!
--
Regards.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on February 28, 2018, 06:27:34 pm
Nice, glad to hear it's still helping people :)

I really should get round to posting the fix for screen tearing for nvidia prime (nvidia/intel) setups .. where the screen tears badly when the nvidia profile is selected.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: DARKBOW923 on March 01, 2018, 10:30:11 am
Nice, glad to hear it's still helping people :)

I really should get round to posting the fix for screen tearing for nvidia prime (nvidia/intel) setups .. where the screen tears badly when the nvidia profile is selected.

I only have a question.. why appears the screen tearing? i think the enterprises like intel or nvidia are sufficient smart to make an solution with a driver update or similar, but, hey, we need 'external' solution like this tutorial or other method to fix it.. I think, that to the intel or nvidia don't care about this problem and doesn't make nothing to fix it..
--
Regards.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: bella.mor on March 14, 2018, 01:36:07 am
This is really helpful, thanks for sharing it with us. My issue has been finally resolved without seeking help from a professional.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: Slim.Fatz on March 14, 2018, 09:58:25 am
This is really helpful, thanks for sharing it with us. My issue has been finally resolved without seeking help from a professional.

Hi bella.mor,

Great to hear that the tutorial helped solve your issue. However, I also believe that you were helped by a professional: PCNetSpec !!  ;)

Regards,

-- Slim
Title: Re: Fix screen tearing on Intel graphics chips
Post by: zebedeeboss on March 14, 2018, 10:59:40 am
This is really helpful, thanks for sharing it with us. My issue has been finally resolved without seeking help from a professional.

Hi bella.mor,

Great to hear that the tutorial helped solve your issue. However, I also believe that you were helped by a professional: PCNetSpec !!  ;)

Regards,

-- Slim

100%  +1
Title: Re: Fix screen tearing on Intel graphics chips
Post by: DanskDreng on July 26, 2018, 04:37:17 am
Thank you so much for the fix. I had this problem in another distro time ago, but never found a solution till now.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PeppermintFan on July 26, 2018, 02:28:18 pm
This worked on my Dell Latitude 3150 running Peppermint 8.  Thanks Mark!!!
Title: Re: Fix screen tearing on Intel graphics chips
Post by: Matthew on September 17, 2018, 10:57:33 am
Thanks PCNetSpec!

I've been trying to ignore the constant screen tearing for so long it seems strange to be without it.  Worked great on my old HP desktop.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on September 17, 2018, 11:04:00 am
No worries, glad to hear it's still working and helping people :)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: Thriceby5 on December 14, 2018, 03:32:45 pm
New user here, Im having similar issues with screen tearing. Cant scroll down anything without it happening. It would fix itself occasionally but would imminently break again. I was wondering if this process would work on a newer computer (seeing how the post was made back in 2015).

When I typed in "inxi -G" I'd get-

Code: [Select]
 
Graphics:  Card: Intel Device 3185
           Display Server: x11 (X.Org 1.19.6 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.00hz
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 600 (Geminilake 2x6)
           version: 4.5 Mesa 18.0.5
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on December 14, 2018, 04:56:45 pm
Have you tried disabling desktop effects ?

And would you know how to TEMPORARILY (for a single boot) test the  i915.alpha_support=1 kernel boot parameter ?
Title: Re: Fix screen tearing on Intel graphics chips
Post by: Thriceby5 on December 14, 2018, 11:21:50 pm
No I haven't and I wouldn't know how to. Im still fairly new to linux.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on December 15, 2018, 09:37:12 am
Go to:-

Menu > Settings > Peppermint Control Center

Select the "Desktop Effects" tab.

Remove the tick from "Enable desktop effects".
Title: Re: Fix screen tearing on Intel graphics chips
Post by: Johan on December 16, 2018, 03:59:42 pm
Slightly different to fix screen tearing on Peppermint: https://static.afbeeldinguploaden.nl/1807/439104/U0AXQyWT.png

No need to tick off Enable desktop effects.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: Thriceby5 on December 21, 2018, 11:42:17 pm
Sorry for the late reply. I tried PCNetSpec's method and it didn't work. Then I tried Johan's method only to get "Could not save file /usr/share/x11/xorg.conf.d/20-intel.conf.".

Picture attached is exactly what I got from Johan's method (I dont know how to attach images so im using imgur for now.).
https://imgur.com/a/MYUKd2n


Title: Re: Fix screen tearing on Intel graphics chips
Post by: pin on December 22, 2018, 02:19:24 am
The directory you are trying to save the file to its owned by root.
You have to use sudo to be able to save it.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: Thriceby5 on December 22, 2018, 03:31:02 am
I did use sudo, just like the image instructed. 
https://static.afbeeldinguploaden.nl/1807/439104/U0AXQyWT.png
Title: Re: Fix screen tearing on Intel graphics chips
Post by: zebedeeboss on December 22, 2018, 03:36:34 am
Hi Thriceby5,

I did once come across a weird instance when a file would not save because the directories did not exist. they normally get saved as part of the file save process.

Therefore navigate to the desired directory tree and see if the directory you are trying to save to actually exists.  If not, create it and try to save the file again.

I hope this helps

Regards Zeb...
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on December 22, 2018, 12:50:31 pm
I think you need to force use of the "intel" driver instead of the "modesetting" driver.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: Thriceby5 on December 22, 2018, 06:10:14 pm
Could any of you make a step by step process? Im still very new to linux.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: scifidude79 on December 22, 2018, 06:11:34 pm
It is a step-by-step process. It's all laid out in the first post of this thread.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: Johan on December 23, 2018, 02:30:20 am
Sorry for the late reply. I tried PCNetSpec's method and it didn't work. Then I tried Johan's method only to get "Could not save file /usr/share/x11/xorg.conf.d/20-intel.conf.".

Picture attached is exactly what I got from Johan's method (I dont know how to attach images so im using imgur for now.).
https://imgur.com/a/MYUKd2n

Very strange, because I followed the steps described on the image yesterday. Are you sure you typed in exactly the same as displayed, because I got the same error message only to find out I typed hsare instead of share. After I corrected it, it saved without error message and no more screen tearing.

At the end of /usr/share/x11/xorg.conf.d/20-intel.conf there is a . Remove the . after conf and try again. It has to be this: sudo gedit /usr/share/x11/xorg.conf.d/20-intel.conf not this: sudo gedit  /usr/share/x11/xorg.conf.d/20-intel.conf.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on December 23, 2018, 09:01:30 am
@Johan

I suspect your card is using the "intel" drivers, and not the "modesetting" drivers (?)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: Johan on December 24, 2018, 08:09:58 am
I guess so, I don't even know what modesetting drivers are ??? Mine is: Intel HD Graphics 620 But I hope he will try to  /usr/share/x11/xorg.conf.d/20-intel.conf without the point after conf ;)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on December 24, 2018, 11:02:31 am
@Thriceby5

Try enabling "Synchronize drawing to the vertical blank" in:-

Menu > Settings > Peppermint Control Center > Desktop Effects (tab)

You may then need to reboot before testing.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: Johan on May 18, 2019, 07:40:13 am
This way it worked for me too to fix screen tearing on Pepp 10. And much quicker than the one I used before. So thanks Mark 8)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on May 18, 2019, 08:17:05 am
Happy it worked for you my mate :)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: stevesveryown on May 20, 2019, 06:31:06 pm
Thanks!  This worked on my HP 6550p, which is Intel and had horrible screen tearing.  I had been meaning to fix it.  It was nice and easy.
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on May 20, 2019, 06:57:27 pm
Great stuff, glad it worked for you Steve :)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: clatterfordslim on May 21, 2019, 12:01:36 pm
Great stuff, glad it worked for you Steve :)

I always show this method in my videos, well the latest Intel ones. Really clever script it just works, no matter what Linux OS you're running.
Loving Peppermint 10, with all the new features you've added Mark, I really don't know how you can better this OS, but then I said that about 8 and 9, yet you still find something else really cool to add, like the change of icons without changing the icon theme all together, no other OS at least I don't think so does that?  ;D
Title: Re: Fix screen tearing on Intel graphics chips
Post by: jintymac on June 28, 2019, 08:02:35 am
Thank you so much for this fix. I'm quite new to linux and hadn't encountered screen tearing until now.

I was pleased that it was fixed so easily thanks to your help.

I really like peppermint 10 and it runs really well on my old lenovo x220. It's definitely a keeper!

Keep up the good work  ;D

Title: Re: Fix screen tearing on Intel graphics chips
Post by: Johan on June 28, 2019, 08:32:08 am
I experienced the same thing when I came from Windows to Linux when using Peppermint 8. Never any screen tearing on Windows.

Wellcome to the wonderfull word of Peppermint  Jintymac ;)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on June 28, 2019, 09:17:03 am
You're most welcome jintymac, glad it helped :)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: jintymac on June 28, 2019, 10:05:20 am
I experienced the same thing when I came from Windows to Linux when using Peppermint 8. Never any screen tearing on Windows.

Wellcome to the wonderfull word of Peppermint  Jintymac ;)

Thanks Johan  ;D
Title: Re: Fix screen tearing on Intel graphics chips
Post by: jintymac on June 28, 2019, 10:06:37 am
You're most welcome jintymac, glad it helped :)

Thanks a million  ;D
Title: Re: Fix screen tearing on Intel graphics chips
Post by: Howling Wolf on July 05, 2019, 06:56:03 am
Hi Mark,
it works on my Asus K50IJ laptop , cheers.
Graphics:
Spoiler (click here to view / hide)
Graphics:  Card: Intel Mobile 4 Series Integrated Graphics Controller
           Display Server: x11 (X.Org 1.20.4 ) driver: intel
           Resolution: 1366x768@59.97hz
           OpenGL: renderer: Mesa DRI Mobile Intel GM45 Express
           version: 2.1 Mesa 19.0.2
[close]
Thanks again and good luck m8
Cheerz, Mike
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on July 05, 2019, 08:35:58 am
Great stuff :)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: theheartist on October 10, 2019, 04:57:46 pm
Savior!! Tried compiz...others. THIS IS IT for Intel. Seamless. Easy. Clear. Thanks bunches!! Try this fix everyone. Might save major headaches. Thanks again!!
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on October 10, 2019, 05:09:08 pm
Glad it did the job for you theheartist, welcome to the forum :)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: LordKaan on October 15, 2019, 01:03:14 am
I am happy, that i got help in a other thread, with the same "topic"
Works perfect (UHD 605 and other UHD Cards)

May, i recommand to stick the tutorial ;
and sepperate the discussion out in a other thread?

Reasons: I guess , there are some basic-questions (and thx for the quick help by other usrs)
which new and old users searching 4;
and 4 ppl. like me (very bad, bad english) itś very difficult, to find the right things, cause i duno know " the names, p . e. tearing, in english


Topics with tutorial/important/basic Stuff/Questin will get my attention,
by "normal" threads, even with a lot of sites, i am mostly not jumping in...

I found this thread, after 2-3 Weeks, till i am here.

Thx
Title: Re: Fix screen tearing on Intel graphics chips
Post by: PCNetSpec on October 15, 2019, 07:14:47 pm
What else are we supposed to name the topic (other than with it's correct technical terms) ? .. I'm happy to rename it if we can come to a consensus that would be both correct AND help the less technical find it, but I can't think of a better way than to call it what it is (ie. by the correct technical terms).

BTW, If you have a support question and can't find the answer, just ask :)
Title: Re: Fix screen tearing on Intel graphics chips
Post by: LordKaan on October 15, 2019, 11:08:24 pm
Excuse my english; i knew, it's bad;
Shouldn't be bad critic;
just a "please", to cut off/out (seperate) the discussion from the tutorial, and stick this (maybe) important tutorial