<SOLVED> Bad screentearing on an old Pentium IGPU

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
rgcodes
Level 1
Level 1
Posts: 47
Joined: Fri Jun 04, 2021 4:23 pm

<SOLVED> Bad screentearing on an old Pentium IGPU

Post by rgcodes »

I notice screentearing while watching videos on YouTube or moving windows around. It gets really annoying while watching a video.

Code: Select all

System:    Kernel: 5.4.0-77-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Xfce 4.14.2 
           tk: Gtk 3.24.13 wm: xfwm4 dm: LightDM Distro: Linux Mint 20.1 Ulyssa 
           base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: TOSHIBA product: Satellite C665 v: PSC14G-01900V serial: <filter> 
           Mobo: TOSHIBA model: Portable PC serial: <filter> BIOS: INSYDE v: 2.10 date: 11/09/2011 
Battery:   ID-1: BAT0 charge: 1.0 Wh condition: 23.8/47.5 Wh (50%) volts: 10.8/10.8 model: PA381 
           serial: <filter> status: Unknown 
CPU:       Topology: Dual Core model: Intel Pentium P6200 bits: 64 type: MCP arch: Nehalem rev: 5 
           L2 cache: 3072 KiB 
           flags: lm nx pae sse sse2 sse3 ssse3 bogomips: 8532 
           Speed: 2133 MHz min/max: 933/2133 MHz Core speeds (MHz): 1: 2133 2: 2133 
Graphics:  Device-1: Intel Core Processor Integrated Graphics vendor: Toshiba driver: i915 
           v: kernel bus ID: 00:02.0 chip ID: 8086:0046 
           Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1366x768~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics (ILK) v: 2.1 Mesa 21.0.1 
           direct render: Yes 
Audio:     Device-1: Intel 5 Series/3400 Series High Definition Audio vendor: Toshiba 
           driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:3b56 
           Sound Server: ALSA v: k5.4.0-77-generic 
Network:   Device-1: Qualcomm Atheros AR8152 v2.0 Fast Ethernet vendor: Toshiba driver: atl1c 
           v: 1.0.1.1-NAPI port: 3000 bus ID: 01:00.0 chip ID: 1969:2062 
           IF: enp1s0 state: down mac: <filter> 
           Device-2: Broadcom and subsidiaries BCM4313 802.11bgn Wireless Network Adapter 
           vendor: Askey driver: wl v: kernel port: 3000 bus ID: 02:00.0 chip ID: 14e4:4727 
           IF: wlp2s0 state: up mac: <filter> 
Drives:    Local Storage: total: 465.76 GiB used: 26.46 GiB (5.7%) 
           ID-1: /dev/sda vendor: Toshiba model: MQ01ABD050 size: 465.76 GiB speed: 3.0 Gb/s 
           serial: <filter> 
Partition: ID-1: / size: 32.60 GiB used: 10.77 GiB (33.0%) fs: ext4 dev: /dev/sda6 
           ID-2: /home size: 71.16 GiB used: 15.69 GiB (22.0%) fs: ext4 dev: /dev/sda8 
           ID-3: swap-1 size: 3.81 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda7 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 3 rev: 2.0 chip ID: 1d6b:0002 
           Hub: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0 
           chip ID: 8087:0020 
           Device-1: 1-1.1:3 info: Realtek RTS5138 Card Reader Controller type: Mass Storage 
           driver: ums-realtek rev: 2.0 chip ID: 0bda:0138 
           Device-2: 1-1.3:4 info: Importek type: Video driver: uvcvideo rev: 2.0 
           chip ID: 10f1:1a34 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 3 rev: 2.0 chip ID: 1d6b:0002 
           Hub: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 8 rev: 2.0 
           chip ID: 8087:0020 
           Device-3: 2-1.1:3 info: Logitech Unifying Receiver type: Keyboard,Mouse 
           driver: logitech-djreceiver,usbhid rev: 2.0 chip ID: 046d:c534 
           Device-4: 2-1.2:4 info: SiGma Micro Keyboard TRACER Gamma Ivory type: Keyboard,HID 
           driver: hid-generic,usbhid rev: 1.1 chip ID: 1c4f:0002 
           Device-5: 2-1.6:5 info: Toshiba type: Bluetooth driver: btusb rev: 2.0 
           chip ID: 0930:0214 
Sensors:   System Temperatures: cpu: 62.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/mkusb-ppa-focal.list 
           1: deb http: //ppa.launchpad.net/mkusb/ppa/ubuntu focal main
           2: deb-src http: //ppa.launchpad.net/mkusb/ppa/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb https: //mirrors.piconets.webwerks.in/linuxmint-mirror/packages ulyssa main upstream import backport
           2: deb http: //ubuntu-archive.mirrors.estointernet.in focal main restricted universe multiverse
           3: deb http: //ubuntu-archive.mirrors.estointernet.in focal-updates main restricted universe multiverse
           4: deb http: //ubuntu-archive.mirrors.estointernet.in focal-backports main restricted universe multiverse
           5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http: //archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/opera-stable.list 
           1: deb https: //deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
           Active apt repos in: /etc/apt/sources.list.d/ubuntu-x-swat-updates-focal.list 
           1: deb http: //ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/xuzhen666-dockbarx-focal.list 
           1: deb http: //ppa.launchpad.net/xuzhen666/dockbarx/ubuntu focal main
Info:      Processes: 190 Uptime: 1h 11m Memory: 3.65 GiB used: 1.53 GiB (42.0%) Init: systemd 
           v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Client: Unknown python3.8 client 
           inxi: 3.0.38 
Thanks in advance!


SOLUTION:

Stop Screen Tearing: INTEL PROCESSORS ONLY!!!

Test screen tearing as a before and after using this site:

https://www.youtube.com/watch?time_cont ... xkNy9gfKOg


Open a terminal and copy and paste these commands in sequence:

Code: Select all

sudo apt-get install mesa-utils
If it says its already installed, go to next step:

Then:

Code: Select all

sudo mkdir -v /etc/X11/xorg.conf.d
Then:...This code runs longer than what is seen in the code box, so run the cursor to the end of the code box to be able to copy and paste the whole code into your terminal.

Code: Select all

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.
Then recheck for screen tearing again.

https://www.youtube.com/watch?time_cont ... xkNy9gfKOg


To UNDO: If this for some reason did not work for you:

Open a terminal and run:

Code: Select all

sudo rm -v /etc/X11/xorg.conf.d/20-intel.conf
Now REBOOT. It's IMPORTANT that you reboot to apply the change.

Thanks to DAMIEN1307 for the solution!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 7 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31776
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Bad screentearing on an old Pentium IGPU

Post by SMG »

Was that also happening before you upgraded the mesa? The current Mint mesa version is 20.2.6.

Graphics: Device-1: Intel Core Processor Integrated Graphics vendor: Toshiba driver: i915
v: kernel bus ID: 00:02.0 chip ID: 8086:0046
Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa
resolution: 1366x768~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics (ILK) v: 2.1 Mesa 21.0.1
direct render: Yes

By what method did you upgrade the mesa?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
DAMIEN1307

Re: Bad screentearing on an old Pentium IGPU

Post by DAMIEN1307 »

I notice screentearing while watching videos on YouTube or moving windows around. It gets really annoying while watching a video.
Stop Screen Tearing: INTEL PROCESSORS ONLY!!!

Test screen tearing as a before and after using this site:

https://www.youtube.com/watch?time_cont ... xkNy9gfKOg


Open a terminal and copy and paste these commands in sequence:

Code: Select all

sudo apt-get install mesa-utils
If it says its already installed, go to next step:

Then:

Code: Select all

sudo mkdir -v /etc/X11/xorg.conf.d
Then:...This code runs longer than what is seen in the code box, so run the cursor to the end of the code box to be able to copy and paste the whole code into your terminal.

Code: Select all

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.
Then recheck for screen tearing again.

https://www.youtube.com/watch?time_cont ... xkNy9gfKOg


To UNDO: If this for some reason did not work for you:

Open a terminal and run:

Code: Select all

sudo rm -v /etc/X11/xorg.conf.d/20-intel.conf
Now REBOOT. It's IMPORTANT that you reboot to apply the change.
User avatar
rgcodes
Level 1
Level 1
Posts: 47
Joined: Fri Jun 04, 2021 4:23 pm

Re: Bad screentearing on an old Pentium IGPU

Post by rgcodes »

DAMIEN1307 wrote: Thu Jun 24, 2021 1:35 pm
The method did relieve MUCH of the screentearing problem, but there's still some very slight screentearing in videos. Could it be because of an old CPU or are there some more settings I could tweak?
Last edited by karlchen on Fri Jun 25, 2021 6:41 pm, edited 1 time in total.
Reason: shortened the full post quote of the post right above
User avatar
SMG
Level 25
Level 25
Posts: 31776
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Bad screentearing on an old Pentium IGPU

Post by SMG »

rgcodes wrote: Thu Jun 24, 2021 5:31 pmThe method did relieve MUCH of the screentearing problem, but there's still some very slight screentearing in videos. Could it be because of an old CPU or are there some more settings I could tweak?
How did you upgrade your mesa? Some ppa's have been known to cause graphics issues.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
rgcodes
Level 1
Level 1
Posts: 47
Joined: Fri Jun 04, 2021 4:23 pm

Re: Bad screentearing on an old Pentium IGPU

Post by rgcodes »

SMG wrote: Thu Jun 24, 2021 6:20 pm
rgcodes wrote: Thu Jun 24, 2021 5:31 pmThe method did relieve MUCH of the screentearing problem, but there's still some very slight screentearing in videos. Could it be because of an old CPU or are there some more settings I could tweak?
How did you upgrade your mesa? Some ppa's have been known to cause graphics issues.
I just followed Damien's instructions, and I don't know what mesa is...
User avatar
SMG
Level 25
Level 25
Posts: 31776
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Bad screentearing on an old Pentium IGPU

Post by SMG »

rgcodes wrote: Fri Jun 25, 2021 3:24 pmI just followed Damien's instructions, and I don't know what mesa is...
I was asking what you did before you followed Damien's instructions. Your system has a Mesa value which is newer than the one which ships with Mint. Normally, one gets a newer Mesa by installing a PPA, but I did not notice either kisak or oibaf (the common PPAs used to get a newer mesa) in your repo list. Also, those two PPA's usually show up in the section I have highlighted below.

Graphics: Device-1: Intel Core Processor Integrated Graphics vendor: Toshiba driver: i915
v: kernel bus ID: 00:02.0 chip ID: 8086:0046
Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa
resolution: 1366x768~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics (ILK) v: 2.1 Mesa 21.0.1
direct render: Yes

You have Mesa 21.0.1.
Mint has Mesa 20.2.6.
Somehow your system acquired a non-standard Mesa.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
rgcodes
Level 1
Level 1
Posts: 47
Joined: Fri Jun 04, 2021 4:23 pm

Re: <SOLVED> Bad screentearing on an old Pentium IGPU

Post by rgcodes »

I am not aware of having installed any PPA for updating mesa. Could it be because I dual-boot Windows and Mint?
Also, I am up-to-date according to the update manager
User avatar
SMG
Level 25
Level 25
Posts: 31776
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: <SOLVED> Bad screentearing on an old Pentium IGPU

Post by SMG »

rgcodes wrote: Wed Jul 07, 2021 12:29 pmCould it be because I dual-boot Windows and Mint?
No. What software you have installed on Windows is completely separate from software you have installed on Mint.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Graphics Cards & Monitors”