Cinnamon Tweaks Screen Tearing VSYNC NVIDIA

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
VoxelMints
Level 1
Level 1
Posts: 27
Joined: Sat Sep 08, 2018 6:20 pm

Cinnamon Tweaks Screen Tearing VSYNC NVIDIA

Post by VoxelMints » Sun Sep 09, 2018 5:33 pm

If you're new to Linux Mint and chose Cinnamon as your desktop these tweaks can help resolve some issues and hopefully provide a similar experience to your previous os.

My PC has multiple cores, lots of ram, and it can run Skyrim on high settings. It's not ancient but not new at all. It's always been stable so I took time to resolve my issues before I posted them here.

I'm currently using the 390 Nvidia driver available with the driver manager.

I recommend making a TimeShift save before making these changes.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Disable Vsync for the Clutter Compositor


Add this line: CLUTTER_VBLANK=none

To: /etc/environment

Fixes: Screen tearing when browsing in Firefox
This seems to make the Cinnamon desktop environment lighter thus making apps lighter.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Firefox GPU Acceleration


Type in the address bar: about:config

Press enter, accept by pressing enter again

Copy and paste in search one by one, double click to enable: TRUE

layers.acceleration.force-enabled <----------*most important*

layers.omtp.enabled

layout.display-list.retain

Fixes: Youtube videos dropping / skipping frames randomly.
Fixes: Unstable Firefox performance lag
This also resolved an issue where browsing the IRL page on Twitch would lag while scrolling up and down.
Firefox would not run smoothly without this change, this is the main fix for Firefox performance issues.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Increase Firefox Mouse Scroll Speed


Type in the address bar: about:config

Press enter, accept by pressing enter again

Copy and paste in search: mousewheel.min_line_scroll_amount

Double click and set to: 35

Fixes: Slow mouse scrolling
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Save Nvidia X Server Settings


Assuming the Nvidia 390 driver is already installed from the driver manager follow these steps.

Open the Nvidia X Server Settings: Mint Start menu > Administration

Go to: X Server Display Configuration

Mine is set to 60 hz for my monitor

Click the tab: Advanced

Click only on: Force Composition Pipeline

Click: Apply

Click: Save to X Configuration file

Copy and paste this: /etc/X11/xorg.conf

Click: Save

Enter your Admin password

Fixes: Screen tearing while watching Youtube videos.
Your Nvidia settings should now be saved. If you make changes be sure to click 'Merge with existing file'.
Hopefully you have similar hardware to mine and these tweaks help.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Note this won't save your settings on the PowerMizer page.

I don't recommend adding tweaks to the Xorg.conf file because it can cause instability and strange issues like 1080p Twitch videos getting stuck loading on an endless loop and not playing, Yes this happened to me. I found it was best not adding tweaks to Xorg.conf at all.

You might see a brief stutter from Firefox rarely and it's likely the Nvidia card going from idle to full performance.

Hopefully I can continue to edit and refine this info. Good luck.

EDIT: Formatted with tags.
Last edited by VoxelMints on Sat Sep 22, 2018 11:15 am, edited 13 times in total.

asobi
Level 1
Level 1
Posts: 1
Joined: Tue Sep 18, 2018 5:12 pm

Re: Cinnamon Tweaks Screen Tearing VSYNC NVIDIA

Post by asobi » Tue Sep 18, 2018 5:15 pm

Thanks for this. I've been suffering terrible scrolling in Firefox and what appears to be frame skipping in games/videos for months. The clutter variable solved it all - thank you.

PatrikOnLinux
Level 1
Level 1
Posts: 3
Joined: Wed Sep 19, 2018 1:31 pm

Re: Cinnamon Tweaks Screen Tearing VSYNC NVIDIA

Post by PatrikOnLinux » Thu Sep 20, 2018 4:26 pm

Thanks for this!!

VoxelMints
Level 1
Level 1
Posts: 27
Joined: Sat Sep 08, 2018 6:20 pm

Re: Cinnamon Tweaks Screen Tearing VSYNC NVIDIA

Post by VoxelMints » Thu Sep 20, 2018 8:54 pm

Glad it helped! :D

User avatar
catweazel
Level 17
Level 17
Posts: 7774
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Cinnamon Tweaks Screen Tearing VSYNC NVIDIA

Post by catweazel » Fri Sep 21, 2018 2:23 am

VoxelMints wrote:
Thu Sep 20, 2018 8:54 pm
Glad it helped! :D
It would be much easier to read if you used code and c tags instead of bold text.
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

VoxelMints
Level 1
Level 1
Posts: 27
Joined: Sat Sep 08, 2018 6:20 pm

Re: Cinnamon Tweaks Screen Tearing VSYNC NVIDIA

Post by VoxelMints » Fri Sep 21, 2018 1:43 pm

I was wondering about that the other day but I'm not sure how to use those. I would be happy to.

Wow level 17 pleased to meet you. :D

VoxelMints
Level 1
Level 1
Posts: 27
Joined: Sat Sep 08, 2018 6:20 pm

Re: Cinnamon Tweaks Screen Tearing VSYNC NVIDIA

Post by VoxelMints » Sat Sep 22, 2018 11:20 am

I think that should do it. Good luck.

Post Reply

Return to “Tutorials”