You are not logged in.

#1 2018-02-19 15:06:50

vinfiertu
Member
Registered: 2018-02-19
Posts: 11

[SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

NVIDIA GTX 1060 6GB on 4.15.3-2-ARCH on KDE 5.43.0 / Plasma 5.12.1

My problem:

Gradients become bars (recording from my phone): https://youtu.be/g6dmDiAkyxI, pay attention to 0:24 and then look at the bars on the desktop.
This screenshot was made on the arch: https://i.imgur.com/P49YpKz.png (you can't see the problem in the screenshot, look at how it is supposed to look)

The main problem has something to do with the colors (or some sort of screen tearing but also static)
Let's open a random video on youtube:
How it is supposed to look (this screenshot was made on arch): https://i.imgur.com/utKvOB4.jpg (zoom in yourself)
How it looks: https://i.imgur.com/t3ZpPsH.jpg


Informations:

I installed the NVIDIA proprietary drivers for my NVIDIA graphics card following the wiki. (https://wiki.archlinux.org/index.php/NVIDIA)
$ sudo pacman -S nvidia
I'm not sure if nvidia-utils and lib32-nvidia-utils came with the nvidia package but they are present.

I did those: https://wiki.archlinux.org/index.php/NV … .28KWin.29 :

$ cat /etc/profile.d/kwin.sh
#!/bin/bash 

export __GL_YIELD="USLEEP"
export KWIN_TRIPLE_BUFFER=1

And then I put in the suggested lines into the /etc/X11/xorg.conf file.
My xorg.conf: https://pastebin.com/raw/fQeNrE6U

I did the persistence:

sudo nvidia-persistenced --user [username hidden]
sudo systemctl enable nvidia-persistenced.service

I don't really know if I'm supposed to do something in nvidia-settings so if I just save the configuration doesn't change anything.

I don't know what else to try. I reinstalled the drivers (from the TTY), nothing changed. I tried to completely remove the drivers and then install them again, using the Pacman Hook from the wiki because I skipped it the first time.

$ sudo pacman -Qe | grep nvidia
lib32-nvidia-utils 390.25-1
nvidia 390.25-11
nvidia-settings 390.25-1
$ sudo pacman -Rs lib32-nvidia-utils nvidia-settings nvidia
$ sudo rm -rf /etc/X11/xorg.conf
$ sudo rm -rf /etc/X11/xorg.conf.backup
$ sudo pacman -S nvidia lib32-nvidia-utils nvidia-settings

Just as a note, because the video on youtube may make you think about it:
Yes, I'm using a laptop, but it has nothing to do with that! The integrated GPU is disabled/locked by ROG because it's a gaming laptop, manufacturers intended design, so don't mind that!
Please, do not move this topic because, due to that design, it acts as a regular PC, no integrated GPU.

Thanks in advance!

Last edited by vinfiertu (2018-02-20 22:37:42)

Offline

#2 2018-02-19 15:25:13

Cknight70
Member
Registered: 2018-01-24
Posts: 71

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

Welcome to the Arch forums!

Lots of people have been having problems like yours with Nvidia's latest drivers, there is a thread going on about it right now. https://bbs.archlinux.org/viewtopic.php?id=234241

Last edited by Cknight70 (2018-02-19 15:29:22)

Offline

#3 2018-02-19 15:44:12

vinfiertu
Member
Registered: 2018-02-19
Posts: 11

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

Hello, Cknight70!
Thank you for replying! I'm checking the thread right now.

Offline

#4 2018-02-19 19:53:18

vinfiertu
Member
Registered: 2018-02-19
Posts: 11

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

As a joke, I completely removed the NVIDIA drivers and succesfully loaded KDE without any display driver. Now that problem is gone. Sadly, the windows wont refresh until you dont move them. Still better though! smile)

Now seriously, the problem is not the configuration, but the 390.25 driver.
I thought its only on the 4.15 kernel, but on the 4.14.19-1-lts kernel with the 390.25, the problem is still there. So we have to use

A patch for using 387 on 4.15 can be found in rob-tech's thread (linked by Cknight70)

As I already downgraded the kernel to the LTS one, how to get the 387 driver?

Offline

#5 2018-02-20 13:53:30

vinfiertu
Member
Registered: 2018-02-19
Posts: 11

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

Update:

As I said, the new driver doesn't work for me, either on 4.14 or 4.15. The 387.34 patch I found in the last messages of that thread doesn't work for me (I still have those problems), and I'm sure all the other packages were downgraded too.
As I said, without any driver this problem doesn't exist (excepting the fact that you can't work without a driver, I'm just referring to the static images).

I'm trying to get the 387.34-1 drivers to work on the lts kernel (4.14). After I installed all the needed packeges from the ALA (nvidia-lts, nvidia-utils, lub32-nvidia-utils, nvidia-settings, lib32-opencl-nvidia, libxnvctrl) my boot hooks at:

 [OK] Reached target Graphical Interface 

The packages are in IgnorePkg already and there is no 390 driver installed.

I tried both with and without an xorg.conf file.

What to try next? I don't know why now it wont start KDE because of those drivers.


Thank you in advance!

Last edited by vinfiertu (2018-02-20 13:54:25)

Offline

#6 2018-02-20 15:19:55

vinfiertu
Member
Registered: 2018-02-19
Posts: 11

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

I said without any driver but it seems I have mesa installed o_O Courios...
Can this be the problem? If I unistall mesa and reinstall nvidia, will the problem be gone?
There's any kernel paramter I need to care about?

Offline

#7 2018-02-20 15:40:44

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

You cannot reasonably uninstall mesa.
The 387xx drivers were all compiled for the 4.9 lts series and will not work w/ the 4.14 kernels. Use eg. dkms.

Online

#8 2018-02-20 15:46:50

Cknight70
Member
Registered: 2018-01-24
Posts: 71

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

Unless you built  387.34-1 yourself, the package is built for the 4.9.62 LTS kernel, which would explain why Xorg isn't working.

I'm not sure Mesa does anything at all if you're using the Nvidia driver, someone can correct me if I'm wrong but I don't think it would hurt to uninstall it once you get your drivers working. Corrected before I posted smile

Last edited by Cknight70 (2018-02-20 15:51:07)

Offline

#9 2018-02-20 15:54:57

vinfiertu
Member
Registered: 2018-02-19
Posts: 11

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

Thank you both so much for replying!
Oh, i thought they were for 4.14. Good to know!
Where I can find them to build them myself? I couldn't find any source.
I think I'll go for dkms. Hope that time I'll have luck...

Last edited by vinfiertu (2018-02-20 15:56:12)

Offline

#10 2018-02-20 16:45:04

seth
Member
Registered: 2012-09-03
Posts: 50,008

Online

#11 2018-02-20 16:49:36

Cknight70
Member
Registered: 2018-01-24
Posts: 71

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

You linked the legacy branch smile
https://www.archlinux.org/packages/extr … idia-dkms/

https://wiki.archlinux.org/index.php/NV … tom_kernel

Last edited by Cknight70 (2018-02-20 16:57:23)

Offline

#12 2018-02-20 20:38:08

vinfiertu
Member
Registered: 2018-02-19
Posts: 11

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

Wait, you aren't talking about installing the dkms version of the 387xx driver?
I said that the 390 doesn't work for me even on 4.14. Installing the dkms for the 390 on 4.14 makes no sense at all since there's already a 390 driver for that version (nvidia-lts).

I just tried it anyways and it makes no difference at all. The 390 just doesn't work correctly, I still have the same problems with it either on 4.14 or 4.15.
Why even try to install the 390?
I think I have to find another option and forget about 390, that's why I was asking for the old one, since it seems that the problem doesn't exist without the driver.

I was asking for a place to find the 387 to build it for the 4.14 kernel (because the 4.15 "patch" for 387 sadly doesn't work)

I'm completely stuck...

Edit:
Oh, I thought you were posting the same versions, now I see that you, seth, posted the 340xx driver. I'm going to do that now, I don't have any choice, I think, although 340 is so damn old.

Last edited by vinfiertu (2018-02-20 20:47:36)

Offline

#13 2018-02-20 20:50:56

Cknight70
Member
Registered: 2018-01-24
Posts: 71

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

The 340 driver is for older cards.

wiki wrote:

For GeForce 8/9, ION and 100-300 series cards NV5x, NV8x, NV9x and NVAx from around 2006-2010, install the nvidia-340xx or nvidia-340xx-lts package.

Edit: Seth linked the version you want below.

Last edited by Cknight70 (2018-02-20 21:06:41)

Offline

#14 2018-02-20 20:55:38

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

Online

#15 2018-02-20 21:24:46

vinfiertu
Member
Registered: 2018-02-19
Posts: 11

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

Thank you, seth!
I was a little busy when you replied.

I just installed it but the problem is still there.

$ pacman -Qe | grep nvidia
nvidia-dkms 387.34-9
nvidia-utils 387.34-2
$ pacman -Ss nvidia | grep installed
extra/libvdpau 1.1.1+3+ga21bf7a-1 [installed]
extra/nvidia-dkms 390.25-11 [installed: 387.34-9]
extra/nvidia-utils 390.25-2 [installed: 387.34-2]
multilib/lib32-libvdpau 1.1.1-2 [installed]

Edit:

Note: I picked nvidia-utils 387.34-2 and you linked me the 387.34-5 (I didn't refresh the page) but I think that makes no difference.

I can't understand why I don't have that problem without the drivers. Can it be a configuration issue, something I'm supposed to configure but I don't know about it? I mean, I didn't configure anything at all since I deleted the xorg.config anyway. Any suggestions?

Last edited by vinfiertu (2018-02-20 21:33:44)

Offline

#16 2018-02-20 21:33:50

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

I assume you did reboot and are using a 64bit player?

Take KDE/plasma out of the equation and try the behavior on a plain X11 server.
Also disable the full composition pipeline.
Post your Xorg log.

For clarification: is this a regression (after an update) or the initial situation?

Online

#17 2018-02-20 21:39:35

vinfiertu
Member
Registered: 2018-02-19
Posts: 11

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

Of course I rebooted.
I don't know what do you mean by using a 64bit player. If you're talking about the system, yes, it's a 64bit.

Architecture:        x86_64

That's the initial situation. Actually it's the first linux I installed on this setup.

Edit :
I didn't applied any of the screen tearing prevention methods anymore since I saw they make no difference.
I don't understand what do you mean by

seth wrote:

try the behavior on a plain X11 server.

There is my Xorg.0.log: [removed due to privacy issues]

Last edited by vinfiertu (2018-02-20 22:42:32)

Offline

#18 2018-02-20 22:09:37

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

https://wiki.archlinux.org/index.php/Xinit but mainly to suspend the KDE compositor.
About the player: not an 32bit ELF binary (ie. depending on the multilib repo - arch is generally only 64bit)

Online

#19 2018-02-20 22:13:33

vinfiertu
Member
Registered: 2018-02-19
Posts: 11

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

How can I find out about the ELF binary?
Please explain to me what I should do with xinit

Offline

#20 2018-02-20 22:17:24

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

- "man file"
- For the beginning, just suspend the kwin compoitor.
  * If you've questions regarding the wiki article, ask. But there's no point in me reading it to you.

Online

#21 2018-02-20 22:20:00

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

Play with  dithering settings, eg: https://bbs.archlinux.org/viewtopic.php?id=226161


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#22 2018-02-20 22:34:36

vinfiertu
Member
Registered: 2018-02-19
Posts: 11

Re: [SOLVED] GTX 1060 Horrible-looking graphics / S Tearing (proprietary)

Thank you both so much for helping me out.

@seth, say it like that! I already tried this, no results.

@kokoko3k, that actually was my problem. Now it's fixed. Just set the depth of the dithering to 6bpc.

I'm gonna mark it as solved. Thank you again!

Last edited by vinfiertu (2018-02-20 22:58:59)

Offline

Board footer

Powered by FluxBB