4

I have a Clevo P640RF laptop with an Intel 6700HQ processor and an Nvidia 965M with optimus switching. After about a week's worth of arm wrestling with the laptop, I have finally managed to stabilize the operating system. I am running Ubuntu 16.04 with Unity and have installed the latest versions of kernel (4.7.7) and firmware (1.161). In addition, I have installed the nvidia-370 driver and have managed to achieve the following

  • Nvidia PRIME works! I can switch between Onboard and discrete successfully
  • System is stable. No crashes or lockups

Issues:

  • Severe screen tearing when I use the Nvidia graphics card. The screen tears when watching videos, browsing, and when dragging windows around. I have tried a lot of things but haven't managed to solve it.

  • No screen tearing with the intel graphics card. On the other hand, there is a small but noticeable stutter when watching videos in the browser or in video players. I can't seem to find a solution for this stutter. However, I made an interesting discovery today regarding the onboard intel graphics. I tried playing a video in VLC and forced the output to openGL. The stuttering vanished and the video playback was buttery smooth. However, this doesn't work with the Nvidia card and is limited to only videos played back in VLC.

Can someone please help me solve the video stutter issue? I got this laptop with a 14 day RMA option. Other than these issues with Linux, I love the hardware and the overall feel of the machine. If I don't fix this, I'll have to give it back with a heavy heart. Any help would be greatly appreciated. Thank you!!

5 Answers5

0

I beg your pardon, because I'll talk about debian. I'm using Lenovo Legion Y520 Laptop (NVIDIA 1050), it has hybrid video, so there is no option to use descrete card only in the bios.

From the start I used xfce + bumblebee, using drivers from default repos (added contrib non-free though). With them I could run apps using nvidia with primusrun/optirun (as I understood it is the same if the VirtualGL is not installed). I could see that glxgears draw 60fps. Regardless to that vsync I saw video tearing: the image "breaks" at some refresh line.

I spent couple days of googling, tried different drivers, messed with Xorg configuration, tried "modesetting" thing (uses nvidia always) but the problem still remained with some variations.

At some point I installed gnome(gdm3) + bumblebee + latest drivers from the repos (384) and did not notice video tearing. So I guess that there's something inside lightdm related to the issue.

0

Nvidia-370 is not ready for all chips, newest is good philosophy is not a part of Linux generally, maybe using 361 or another stable version can solve your problem.

1.System Settings

2.Software & Updates

3.Additional Drivers --> choose "361" or something else (tested)

Torvald's comment about Nvidia (warning:nsfw)

al0s
  • 549
  • 2
  • 6
  • 16
0

I have a similar setup but with a quadro K1100M , to get mine stable i tried a few different drivers from the ubuntu graphics driver PPA.

https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa

I also got much better system stability and solid video with optimus using the xanmod 4.8 kernel, there are ubuntu packages its super easy to install.

https://xanmod.org/

Amias
  • 5,359
0

The Girl in this video talks about "some project on git-hub that works pretty nice". I is the Optimus chip supported my Nvidia officially now or do you maybe need this? This was the project she talked about I guess, its maybe what you need.

redanimalwar
  • 1,610
  • 3
  • 20
  • 36
0

@KarthikUpadhya I admire your determination to keep trying things. I see same troubles on Dell Precision 5510. Lets compare notes

The tearing and distortion with the Nvidia card is much worse on an external monitor than it is on the laptop's builtin display. Do you see the same difference?

I see no benefit in Bumblebee/Optimus. Maybe the MS Windows driver is further toward the goal. This post makes me think there is some hope yet from Nvidia: https://devtalk.nvidia.com/default/topic/957814/linux/prime-and-prime-synchronization/.

I see the tearing when scrolling web in Firefox, not just in movies. The tearing looks like a rolling pin filled with water is horizontal across the middle of the page. On an HDMI-external monitor, the tearing is pie shaped polygons.

There are quite a few webpages with tips, such as 1) make sure nvidia is on max performance (I think this does help) 2) turn on sync to vblank 3) turn on pipeline (http://www.thelinuxrain.com/articles/got-tearing-with-proprietary-nvidia-try-this) 4) use a compositing window manager.

I think 1) helps. 2) is missing from nvidia-settings now, but it is an adjustment in some window managers (KDE). 3) has no effect, but I did not try hard because the first time I did it, it caused the black screen of death and I had a hard time escaping.

I've experimented with these things a lot and I can say for sure your desktop framework--the window manager and compositor--make a huge difference. Right now I like XFCE4 as desktop, and I was testing settings and was able to make the computer almost useless by turning off the compositor in XFWM4. If I do that, then the Geeqie image viewer has a really bad "torn to black rectangles" appearance when images scroll up and down.

I suggest you consider installing KDE and see if their compositing is better.

Supposing this is going in the right direction, I find a post that matches my best guess, which is that the 100s of little adjustments we find in the network are not in the core of the problem, and adopting better compositing will fix. Look at this one: https://devtalk.nvidia.com/default/topic/543305/linux/screen-video-tearing-gtx6xx-7xx-kepler-9xx-maxwell-in-almost-all-applications-including-desktop/post/4374890/#4374890. "The internet is riddled with various solutions and it came down to simply getting rid of all of that garbage and simple using NO xorg.conf and using this compton command for "fixing" the v-sync to remove tearing.

compton --backend glx --vsync opengl-swc --detect-rounded-corners --detect-client-opacity

"

I did not do that yet, but I'm reading about it to figure out WTFIGO. I don't understand it very deeply, there's something in me that believes this really should not be necessary. But it is, so I'll try.

There are very long discussions about this on the nvidia linux pages, but if you look through there, you'll note that many people don't mention their desktop environment, window manager, and compositing. The fact that some people see this as an inconvenience and others say it is intolerable probably traces back to software. I think the Nvidia site is a little tought to find sometimes, appears they moved it: https://devtalk.nvidia.com/default/board/98 https://devtalk.nvidia.com/default/topic/533434/linux/current-graphics-driver-releases/

I'm able to use the laptop to browse web and do my job, but I can live with it only because I'm a very patient person :) You must be as well, since you are still asking about it.

pauljohn32
  • 3,803