I recently switched to Ubuntu 18.04, and had a lot of problems but managed to fix most. I am using a laptop with an i5-7200U and an NVidia GTX950M. I have installed the latest drivers, wine games work just fine.

The thing is: I don't know which graphic card is used in the system, whether it is the integrated one or the dedicated, and I have A LOT of screen tearing while moving things around while scrolling on the browser etc.

Is there a way to force enable vsync or fix the tearing otherwise?

EDIT: As requested by David, here is the result of the first command: https://paste.ubuntu.com/p/JXZXcBn56T/

And as for the log: https://paste.ubuntu.com/p/rtMyC88sRg/

New contributor
Eris is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • Welcome to Ask Ubuntu! Could you please edit your question to include the output of lspci -nnk | awk -v n='[0300]' 'p&&/^\S/{p=0}!p{p=index($0,n)}p' and the content of /var/log/Xorg.0.log? Thanks. – David Foerster 2 days ago
  • Hello! Thanks for your response and for the welcome, but it seems I cannot add them as it greatly exceeds the body character limit. Is there any other way? – Eris 2 days ago
  • I have pasted them! – Eris 2 days ago

Nvidia suggests version 390 driver for your GPU. Install it by running-

sudo apt install nvidia-driver-390

Some additional tool like Nvidia X Server Settings will be automatically installed. This program will allow you to see what card is being used or to select the card you want to use.

For the workloads where you want to use Intel integrated graphics (which uses less power but poorer quality), this may solve the tearing-

Create an empty file anywhere using right-click menu. Name it 20-intel.conf Open it using any text editor (like Gedit, Mousepad etc.) and insert the following lines:-

Section "Device"

Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
Option "TearFree" "true"

EndSection

Save the file. Open your file manager with root privilege (exp: sudo -i nautilus). Paste the file in /etc/X11/xorg.conf.d Create the requisite folders if they don’t exist. Restart the system after it’s done. If you experience issues like pixelated graphics, corrupt text, etc. after this, replace the word sna with uxa within the text.

  • So I did that and my laptop basically imploded. I was stuck in a loop at the login screen, booted from a live USB to delete the .conf. Then I logged in, it worked, but the Ethernet driver had been corrupted so I had to reinstall the driver for that. I don't understand what happened, but it did a lot of bad things. I did double check on the live boot, I created the xorg.conf.d and placed the 20-intel.conf there, and then this happened.. – Eris 2 days ago

Your Answer

Eris is a new contributor. Be nice, and check out our Code of Conduct.
 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.