You are not logged in.

#1 2017-11-23 00:20:59

Faeris
Member
Registered: 2014-08-15
Posts: 20

[SOLVED] Tearing with proprietary nvidia

Hello guys,

I recently got a MSI Gaming laptop with an Nvidia GTX 1050 and got some problems with it.
I've finally made it work but I still got tearing when I move windows, or when I watch video. I got some horizontal transparent lines on terminal windows that disapears and reappears..
I've followed this tutorial (I use Nvidia optimus, without bumblebee because I got blackscreen with it) : https://wiki.archlinux.org/index.php/NVIDIA_Optimus
My xorg.conf file looks like this :

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 387.22  (buildmeister@swio-display-x86-rhel47-04)  Thu Oct 26 00:06:08 PDT 2017

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Module"
	Load "modesetting"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
EndSection

Section "Device"
    Identifier     "intel"
    Driver         "modesetting"
    BusID	   "PCI:0:2:0"
    Option         "TearFree"  "True"
    Option	   "AccelMethod" "sna"
EndSection

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    BusID	   "PCI:1:0:0"
    Option 	   "AllowEmptyInitialConfiguration"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "nvidia"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
	Modes	   "1920x1080"
    EndSubSection
EndSection

I tried many things but nothing seems to work .. Any ideas ?

Thanks in advance and sorry for my english

Last edited by Faeris (2017-11-28 00:35:33)

Offline

#2 2017-11-23 08:30:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,237

Offline

#3 2017-11-23 08:33:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,248

Re: [SOLVED] Tearing with proprietary nvidia

Also that config hurts my eyes and will likely also not help the issue (in particular, using the modesetting driver and trying to use SNA and tearfree doesn't make any sense, I know this is in the wiki, but thats wrong on any account), you might want to remove it if following the linked procedure isn't enough already (if you do have the proper xrandr lines set up, the offload will work without a custom xorg.conf).

Last edited by V1del (2017-11-23 10:00:48)

Offline

#4 2017-11-23 10:29:39

Faeris
Member
Registered: 2014-08-15
Posts: 20

Re: [SOLVED] Tearing with proprietary nvidia

Hi, thank your for your answer. I obviously already tried this and this is not working for me. I 've noticed that the vsync is not working because glxgears show 20k fps.. The nvidia-setting pannel tell me that "Primus displays cannot be controlled by nvidia-settings and must be configure by an external RandR capable tool". Xrandr indicates that the rate in use is 60.01, I don't know if it could be the problem since it should be 60.00 ?
What do you mean by proper xrandr lines set up ? I did nothing except in the Xsetup script for sddm :

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

Offline

#5 2017-11-23 11:38:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,248

Re: [SOLVED] Tearing with proprietary nvidia

Yes I mean these lines, that's the only configuration you should have to do consciously to make Optimus offload work. Have you removed the xorg.conf now? Did things change? Also saying that "I obviously tried" that doesn't help no one, theres no indication of that in your post, so a reader must assume that you have missed this. If you want to prevent confusion, list everything you have done and post the associated command outputs/configuration files.

Have you seen https://wiki.archlinux.org/index.php/NV … oken_VSync ?

How does your mkinitcpio.conf look like now? How does a Xorg log look like? What does

systool -vm nvidia-drm
glxinfo | grep OpenGL

output?

What window manager/desktop environment are you using? If you don't use a compositor, the problem might be there, since you aren't using anything that actively VSyncs.

Read https://bbs.archlinux.org/viewtopic.php?id=57855

Last edited by V1del (2017-11-23 11:44:46)

Offline

#6 2017-11-24 15:44:42

Faeris
Member
Registered: 2014-08-15
Posts: 20

Re: [SOLVED] Tearing with proprietary nvidia

Hi, I've removed the xorg.conf but nothing has changed. Yes you're right, sorry. I've seen this page but I didn't notice there was something for the tearing ! I tried it and it works, I've no more tearing when I move windows.
When I watch videos it's by far better but it seems that there is tearing something like every 10s (it's random) and I still get these random lines that appears when I hit the enter key or I write something in terminal.
I can't try these command now, I try it asap and I will give you a screenshot of the lines in terminal because I know that I'm bad to explain.
I'm using KDE5, Kwin is activated.

Offline

#7 2017-11-25 18:29:36

Faeris
Member
Registered: 2014-08-15
Posts: 20

Re: [SOLVED] Tearing with proprietary nvidia

Hi,

My mkinitcpio conf file :

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES=(piix ide_disk reiserfs)
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia-drm)

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=()

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS=(base)
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS=(base udev autodetect block filesystems)
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS=(base udev block filesystems)
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS=(base udev block mdadm encrypt filesystems)
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS=(base udev block lvm2 filesystems)
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()

My xorg log :

[     7.240] (--) Log file renamed from "/var/log/Xorg.pid-437.log" to "/var/log/Xorg.0.log"
[     7.240] 
X.Org X Server 1.19.5
Release Date: 2017-10-12
[     7.240] X Protocol Version 11, Revision 0
[     7.240] Build Operating System: Linux 4.9.54-1-lts x86_64 
[     7.240] Current Operating System: Linux faeris 4.13.12-1-ARCH #1 SMP PREEMPT Wed Nov 8 11:54:06 CET 2017 x86_64
[     7.240] Kernel command line: \boot\vmlinuz-linux root=PARTUUID=2a433fc7-d1c7-47d1-be4c-27d4c1d10160 rw add_efi_memmap nvidia-drm.modeset=1 initrd=boot\initramfs-linux.img
[     7.241] Build Date: 12 October 2017  09:59:53PM
[     7.241]  
[     7.241] Current version of pixman: 0.34.0
[     7.241] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[     7.241] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     7.241] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Nov 25 19:22:07 2017
[     7.242] (==) Using config file: "/etc/xorg.conf"
[     7.242] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     7.242] (==) ServerLayout "Layout0"
[     7.242] (**) |-->Screen "Screen0" (0)
[     7.242] (**) |   |-->Monitor "Monitor0"
[     7.243] (**) |   |-->Device "nvidia"
[     7.243] (**) |   |-->GPUDevice "nvidia"
[     7.243] (**) |-->Input Device "Keyboard0"
[     7.243] (**) |-->Input Device "Mouse0"
[     7.243] (==) Automatically adding devices
[     7.243] (==) Automatically enabling devices
[     7.243] (==) Automatically adding GPU devices
[     7.243] (==) Automatically binding GPU devices
[     7.243] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     7.244] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[     7.244] 	Entry deleted from font path.
[     7.245] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/
[     7.245] (==) ModulePath set to "/usr/lib/xorg/modules"
[     7.245] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[     7.245] (WW) Disabling Keyboard0
[     7.245] (WW) Disabling Mouse0
[     7.246] (II) Loader magic: 0x55f5555a9d60
[     7.246] (II) Module ABI versions:
[     7.246] 	X.Org ANSI C Emulation: 0.4
[     7.246] 	X.Org Video Driver: 23.0
[     7.246] 	X.Org XInput driver : 24.1
[     7.246] 	X.Org Server Extension : 10.0
[     7.246] (++) using VT number 1

[     7.246] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     7.246] (II) xfree86: Adding drm device (/dev/dri/card0)
[     7.246] (II) xfree86: Adding drm device (/dev/dri/card1)
[     7.253] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules"
[     7.253] (**) OutputClass "nvidia" setting /dev/dri/card0 as PrimaryGPU
[     7.255] (--) PCI: (0:0:2:0) 8086:591b:1462:11c8 rev 4, Mem @ 0xdd000000/16777216, 0xb0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[     7.255] (--) PCI:*(0:1:0:0) 10de:1c8d:1462:11c8 rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[     7.255] (II) Open ACPI successful (/var/run/acpid.socket)
[     7.255] (II) "glx" will be loaded by default.
[     7.255] (II) LoadModule: "modesetting"
[     7.256] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[     7.256] (II) Module modesetting: vendor="X.Org Foundation"
[     7.256] 	compiled for 1.19.5, module version = 1.19.5
[     7.256] 	Module class: X.Org Video Driver
[     7.256] 	ABI class: X.Org Video Driver, version 23.0
[     7.256] (II) LoadModule: "glx"
[     7.256] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[     7.303] (II) Module glx: vendor="NVIDIA Corporation"
[     7.303] 	compiled for 4.0.2, module version = 1.0.0
[     7.303] 	Module class: X.Org Server Extension
[     7.303] (II) NVIDIA GLX Module  387.22  Wed Oct 25 22:41:23 PDT 2017
[     7.304] (II) LoadModule: "nvidia"
[     7.304] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[     7.309] (II) Module nvidia: vendor="NVIDIA Corporation"
[     7.309] 	compiled for 4.0.2, module version = 1.0.0
[     7.309] 	Module class: X.Org Video Driver
[     7.309] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[     7.309] (II) NVIDIA dlloader X Driver  387.22  Wed Oct 25 22:14:47 PDT 2017
[     7.309] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[     7.310] (WW) Falling back to old probe method for modesetting
[     7.311] (II) Loading sub module "fb"
[     7.311] (II) LoadModule: "fb"
[     7.311] (II) Loading /usr/lib/xorg/modules/libfb.so
[     7.312] (II) Module fb: vendor="X.Org Foundation"
[     7.312] 	compiled for 1.19.5, module version = 1.0.0
[     7.312] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     7.312] (II) Loading sub module "wfb"
[     7.312] (II) LoadModule: "wfb"
[     7.312] (II) Loading /usr/lib/xorg/modules/libwfb.so
[     7.313] (II) Module wfb: vendor="X.Org Foundation"
[     7.313] 	compiled for 1.19.5, module version = 1.0.0
[     7.313] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     7.313] (II) Loading sub module "ramdac"
[     7.313] (II) LoadModule: "ramdac"
[     7.313] (II) Module "ramdac" already built-in
[     7.319] (II) modeset(G0): using drv /dev/dri/card1
[     7.319] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[     7.319] (==) NVIDIA(0): RGB weight 888
[     7.319] (==) NVIDIA(0): Default visual is TrueColor
[     7.319] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[     7.319] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[     7.319] (**) NVIDIA(0): Option "TripleBuffer" "on"
[     7.319] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[     7.319] (**) NVIDIA(0): Enabling 2D acceleration
[     7.337] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 1050 (GP107-A) at PCI:1:0:0 (GPU-0)
[     7.337] (--) NVIDIA(0): Memory: 4194304 kBytes
[     7.337] (--) NVIDIA(0): VideoBIOS: 86.07.2b.00.14
[     7.337] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[     7.337] (II) NVIDIA(0): Validated MetaModes:
[     7.337] (II) NVIDIA(0):     "NULL"
[     7.337] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[     7.337] (++) NVIDIA(0): DPI set to (94, 94); computed from -dpi X commandline option
[     7.337] (**) modeset(G0): Depth 24, (--) framebuffer bpp 32
[     7.337] (==) modeset(G0): RGB weight 888
[     7.337] (==) modeset(G0): Default visual is TrueColor
[     7.337] (II) Loading sub module "glamoregl"
[     7.337] (II) LoadModule: "glamoregl"
[     7.337] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[     7.342] (II) Module glamoregl: vendor="X.Org Foundation"
[     7.342] 	compiled for 1.19.5, module version = 1.0.0
[     7.342] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     7.342] (II) glamor: OpenGL accelerated X.org driver based.
[     7.379] (II) glamor: EGL version 1.4 (DRI2):
[     7.390] (II) modeset(G0): glamor initialized
[     7.392] (II) modeset(G0): Output eDP-1-1 using monitor section Monitor0
[     7.393] (II) modeset(G0): Output DP-1-1 has no monitor section
[     7.400] (II) modeset(G0): Output HDMI-1-1 has no monitor section
[     7.412] (II) modeset(G0): Output HDMI-1-2 has no monitor section
[     7.413] (II) modeset(G0): EDID for output eDP-1-1
[     7.413] (II) modeset(G0): Manufacturer: CMN  Model: 15d6  Serial#: 0
[     7.413] (II) modeset(G0): Year: 2015  Week: 38
[     7.413] (II) modeset(G0): EDID Version: 1.4
[     7.413] (II) modeset(G0): Digital Display Input
[     7.413] (II) modeset(G0): 6 bits per channel
[     7.413] (II) modeset(G0): Digital interface is DisplayPort
[     7.413] (II) modeset(G0): Max Image Size [cm]: horiz.: 34  vert.: 19
[     7.413] (II) modeset(G0): Gamma: 2.20
[     7.413] (II) modeset(G0): No DPMS capabilities specified
[     7.413] (II) modeset(G0): Supported color encodings: RGB 4:4:4 
[     7.413] (II) modeset(G0): First detailed timing is preferred mode
[     7.413] (II) modeset(G0): Preferred mode is native pixel format and refresh rate
[     7.413] (II) modeset(G0): redX: 0.673 redY: 0.309   greenX: 0.266 greenY: 0.674
[     7.413] (II) modeset(G0): blueX: 0.156 blueY: 0.047   whiteX: 0.313 whiteY: 0.329
[     7.413] (II) modeset(G0): Manufacturer's mask: 0
[     7.413] (II) modeset(G0): Supported detailed timing:
[     7.413] (II) modeset(G0): clock: 152.8 MHz   Image Size:  344 x 193 mm
[     7.413] (II) modeset(G0): h_active: 1920  h_sync: 1964  h_sync_end 1992 h_blank_end 2250 h_border: 0
[     7.413] (II) modeset(G0): v_active: 1080  v_sync: 1082  v_sync_end 1086 v_blanking: 1132 v_border: 0
[     7.413] (II) modeset(G0):  N156HGA-EAL
[     7.413] (II) modeset(G0):  CMN
[     7.413] (II) modeset(G0):  N156HGA-EAL
[     7.413] (II) modeset(G0): EDID (in hex):
[     7.413] (II) modeset(G0): 	00ffffffffffff000daed61500000000
[     7.413] (II) modeset(G0): 	2619010495221378024205ac4f44ac28
[     7.413] (II) modeset(G0): 	0c505400000001010101010101010101
[     7.413] (II) modeset(G0): 	010101010101b43b804a713834402c1c
[     7.413] (II) modeset(G0): 	240058c110000018000000fe004e3135
[     7.413] (II) modeset(G0): 	364847412d45414c0a20000000fe0043
[     7.413] (II) modeset(G0): 	4d4e0a202020202020202020000000fe
[     7.413] (II) modeset(G0): 	004e3135364847412d45414c0a200073
[     7.413] (II) modeset(G0): Printing probed modes for output eDP-1-1
[     7.413] (II) modeset(G0): Modeline "1920x1080"x60.0  152.84  1920 1964 1992 2250  1080 1082 1086 1132 -hsync -vsync (67.9 kHz eP)
[     7.413] (II) modeset(G0): Modeline "1400x1050"x60.0  122.00  1400 1488 1640 1880  1050 1052 1064 1082 +hsync +vsync (64.9 kHz d)
[     7.413] (II) modeset(G0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz d)
[     7.413] (II) modeset(G0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz d)
[     7.413] (II) modeset(G0): Modeline "1024x768"x120.1  133.47  1024 1100 1212 1400  768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[     7.413] (II) modeset(G0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[     7.413] (II) modeset(G0): Modeline "960x720"x120.0  117.00  960 1024 1128 1300  720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[     7.413] (II) modeset(G0): Modeline "928x696"x120.1  109.15  928 976 1088 1264  696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[     7.413] (II) modeset(G0): Modeline "896x672"x120.0  102.40  896 960 1060 1224  672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[     7.413] (II) modeset(G0): Modeline "800x600"x120.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[     7.413] (II) modeset(G0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[     7.413] (II) modeset(G0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[     7.413] (II) modeset(G0): Modeline "700x525"x120.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[     7.413] (II) modeset(G0): Modeline "640x512"x120.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[     7.413] (II) modeset(G0): Modeline "640x480"x120.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[     7.413] (II) modeset(G0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[     7.413] (II) modeset(G0): Modeline "512x384"x120.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[     7.413] (II) modeset(G0): Modeline "400x300"x120.6   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[     7.413] (II) modeset(G0): Modeline "400x300"x112.7   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[     7.413] (II) modeset(G0): Modeline "320x240"x120.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[     7.415] (II) modeset(G0): EDID for output DP-1-1
[     7.424] (II) modeset(G0): EDID for output HDMI-1-1
[     7.439] (II) modeset(G0): EDID for output HDMI-1-2
[     7.439] (==) modeset(G0): Using gamma correction (1.0, 1.0, 1.0)
[     7.439] (++) modeset(G0): DPI set to (94, 94)
[     7.439] (II) Loading sub module "fb"
[     7.439] (II) LoadModule: "fb"
[     7.439] (II) Loading /usr/lib/xorg/modules/libfb.so
[     7.439] (II) Module fb: vendor="X.Org Foundation"
[     7.439] 	compiled for 1.19.5, module version = 1.0.0
[     7.439] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     7.439] (--) Depth 24 pixmap format is 32 bpp
[     7.516] (==) modeset(G0): Backing store enabled
[     7.516] (==) modeset(G0): Silken mouse enabled
[     7.517] (II) modeset(G0): RandR 1.2 enabled, ignore the following RandR disabled message.
[     7.569] (==) modeset(G0): DPMS enabled
[     7.569] (II) modeset(G0): [DRI2] Setup complete
[     7.569] (II) modeset(G0): [DRI2]   DRI driver: i965
[     7.569] (II) modeset(G0): [DRI2]   VDPAU driver: i965
[     7.569] (II) NVIDIA: Using 24576.00 MB of virtual memory for indirect memory
[     7.569] (II) NVIDIA:     access.
[     7.605] (II) NVIDIA(0): Setting mode "NULL"
[     7.610] (==) NVIDIA(0): Disabling shared memory pixmaps
[     7.610] (==) NVIDIA(0): Backing store enabled
[     7.610] (==) NVIDIA(0): Silken mouse enabled
[     7.610] (==) NVIDIA(0): DPMS enabled
[     7.610] (WW) NVIDIA(0): Option "PrimaryGPU" is not used
[     7.610] (II) Loading sub module "dri2"
[     7.610] (II) LoadModule: "dri2"
[     7.610] (II) Module "dri2" already built-in
[     7.610] (II) NVIDIA(0): [DRI2] Setup complete
[     7.610] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[     7.610] (--) RandR disabled
[     7.613] (II) Initializing extension GLX
[     7.613] (II) Indirect GLX disabled.
[     7.895] (II) modeset(G0): Damage tracking initialized
[     7.966] (II) config/udev: Adding input device Power Button (/dev/input/event4)
[     7.966] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[     7.966] (II) LoadModule: "libinput"
[     7.967] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[     7.970] (II) Module libinput: vendor="X.Org Foundation"
[     7.970] 	compiled for 1.19.3, module version = 0.26.0
[     7.970] 	Module class: X.Org XInput Driver
[     7.970] 	ABI class: X.Org XInput driver, version 24.1
[     7.970] (II) Using input driver 'libinput' for 'Power Button'
[     7.970] (**) Power Button: always reports core events
[     7.970] (**) Option "Device" "/dev/input/event4"
[     7.970] (**) Option "_source" "server/udev"
[     7.971] (II) event4  - (II) Power Button: (II) is tagged by udev as: Keyboard
[     7.971] (II) event4  - (II) Power Button: (II) device is a keyboard
[     7.971] (II) event4  - (II) Power Button: (II) device removed
[     7.993] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input5/event4"
[     7.993] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[     7.994] (II) event4  - (II) Power Button: (II) is tagged by udev as: Keyboard
[     7.994] (II) event4  - (II) Power Button: (II) device is a keyboard
[     7.994] (II) config/udev: Adding input device Video Bus (/dev/input/event6)
[     7.994] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[     7.994] (II) Using input driver 'libinput' for 'Video Bus'
[     7.994] (**) Video Bus: always reports core events
[     7.994] (**) Option "Device" "/dev/input/event6"
[     7.994] (**) Option "_source" "server/udev"
[     7.994] (II) event6  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[     7.994] (II) event6  - (II) Video Bus: (II) device is a keyboard
[     7.994] (II) event6  - (II) Video Bus: (II) device removed
[     8.013] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input8/event6"
[     8.013] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[     8.014] (II) event6  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[     8.014] (II) event6  - (II) Video Bus: (II) device is a keyboard
[     8.015] (II) config/udev: Adding input device Video Bus (/dev/input/event7)
[     8.015] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[     8.015] (II) Using input driver 'libinput' for 'Video Bus'
[     8.015] (**) Video Bus: always reports core events
[     8.015] (**) Option "Device" "/dev/input/event7"
[     8.015] (**) Option "_source" "server/udev"
[     8.015] (II) event7  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[     8.015] (II) event7  - (II) Video Bus: (II) device is a keyboard
[     8.015] (II) event7  - (II) Video Bus: (II) device removed
[     8.033] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:12/LNXVIDEO:01/input/input9/event7"
[     8.033] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[     8.034] (II) event7  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[     8.034] (II) event7  - (II) Video Bus: (II) device is a keyboard
[     8.035] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
[     8.035] (II) No input driver specified, ignoring this device.
[     8.035] (II) This device may have been added with another device file.
[     8.035] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[     8.035] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[     8.035] (II) Using input driver 'libinput' for 'Power Button'
[     8.035] (**) Power Button: always reports core events
[     8.035] (**) Option "Device" "/dev/input/event3"
[     8.036] (**) Option "_source" "server/udev"
[     8.036] (II) event3  - (II) Power Button: (II) is tagged by udev as: Keyboard
[     8.036] (II) event3  - (II) Power Button: (II) device is a keyboard
[     8.036] (II) event3  - (II) Power Button: (II) device removed
[     8.053] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input4/event3"
[     8.053] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[     8.054] (II) event3  - (II) Power Button: (II) is tagged by udev as: Keyboard
[     8.054] (II) event3  - (II) Power Button: (II) device is a keyboard
[     8.055] (II) config/udev: Adding input device Sleep Button (/dev/input/event2)
[     8.055] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[     8.055] (II) Using input driver 'libinput' for 'Sleep Button'
[     8.055] (**) Sleep Button: always reports core events
[     8.055] (**) Option "Device" "/dev/input/event2"
[     8.055] (**) Option "_source" "server/udev"
[     8.055] (II) event2  - (II) Sleep Button: (II) is tagged by udev as: Keyboard
[     8.055] (II) event2  - (II) Sleep Button: (II) device is a keyboard
[     8.055] (II) event2  - (II) Sleep Button: (II) device removed
[     8.073] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input3/event2"
[     8.073] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 10)
[     8.074] (II) event2  - (II) Sleep Button: (II) is tagged by udev as: Keyboard
[     8.074] (II) event2  - (II) Sleep Button: (II) device is a keyboard
[     8.075] (II) config/udev: Adding input device BisonCam, NB Pro: BisonCam, NB  (/dev/input/event5)
[     8.075] (**) BisonCam, NB Pro: BisonCam, NB : Applying InputClass "libinput keyboard catchall"
[     8.075] (II) Using input driver 'libinput' for 'BisonCam, NB Pro: BisonCam, NB '
[     8.075] (**) BisonCam, NB Pro: BisonCam, NB : always reports core events
[     8.076] (**) Option "Device" "/dev/input/event5"
[     8.076] (**) Option "_source" "server/udev"
[     8.076] (II) event5  - (II) BisonCam, NB Pro: BisonCam, NB : (II) is tagged by udev as: Keyboard
[     8.076] (II) event5  - (II) BisonCam, NB Pro: BisonCam, NB : (II) device is a keyboard
[     8.076] (II) event5  - (II) BisonCam, NB Pro: BisonCam, NB : (II) device removed
[     8.123] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11:1.0/input/input6/event5"
[     8.123] (II) XINPUT: Adding extended input device "BisonCam, NB Pro: BisonCam, NB " (type: KEYBOARD, id 11)
[     8.124] (II) event5  - (II) BisonCam, NB Pro: BisonCam, NB : (II) is tagged by udev as: Keyboard
[     8.124] (II) event5  - (II) BisonCam, NB Pro: BisonCam, NB : (II) device is a keyboard
[     8.125] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event11)
[     8.125] (II) No input driver specified, ignoring this device.
[     8.125] (II) This device may have been added with another device file.
[     8.125] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event12)
[     8.125] (II) No input driver specified, ignoring this device.
[     8.125] (II) This device may have been added with another device file.
[     8.126] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event13)
[     8.126] (II) No input driver specified, ignoring this device.
[     8.126] (II) This device may have been added with another device file.
[     8.126] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=7 (/dev/input/event14)
[     8.126] (II) No input driver specified, ignoring this device.
[     8.126] (II) This device may have been added with another device file.
[     8.127] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=8 (/dev/input/event15)
[     8.127] (II) No input driver specified, ignoring this device.
[     8.127] (II) This device may have been added with another device file.
[     8.127] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=9 (/dev/input/event16)
[     8.127] (II) No input driver specified, ignoring this device.
[     8.127] (II) This device may have been added with another device file.
[     8.127] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=10 (/dev/input/event17)
[     8.127] (II) No input driver specified, ignoring this device.
[     8.127] (II) This device may have been added with another device file.
[     8.128] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[     8.128] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[     8.128] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[     8.128] (**) AT Translated Set 2 keyboard: always reports core events
[     8.128] (**) Option "Device" "/dev/input/event0"
[     8.128] (**) Option "_source" "server/udev"
[     8.129] (II) event0  - (II) AT Translated Set 2 keyboard: (II) is tagged by udev as: Keyboard
[     8.129] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device is a keyboard
[     8.129] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device removed
[     8.153] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[     8.153] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 12)
[     8.154] (II) event0  - (II) AT Translated Set 2 keyboard: (II) is tagged by udev as: Keyboard
[     8.154] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device is a keyboard
[     8.155] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event10)
[     8.155] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "libinput touchpad catchall"
[     8.155] (II) Using input driver 'libinput' for 'SynPS/2 Synaptics TouchPad'
[     8.155] (**) SynPS/2 Synaptics TouchPad: always reports core events
[     8.155] (**) Option "Device" "/dev/input/event10"
[     8.155] (**) Option "_source" "server/udev"
[     8.155] (II) event10 - (II) SynPS/2 Synaptics TouchPad: (II) is tagged by udev as: Touchpad
[     8.155] (II) event10 - (II) SynPS/2 Synaptics TouchPad: (II) device is a touchpad
[     8.156] (II) event10 - (II) SynPS/2 Synaptics TouchPad: (II) device removed
[     8.193] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input7/event10"
[     8.193] (II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD, id 13)
[     8.193] (**) Option "AccelerationScheme" "none"
[     8.193] (**) SynPS/2 Synaptics TouchPad: (accel) selected scheme none/0
[     8.193] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
[     8.193] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
[     8.194] (II) event10 - (II) SynPS/2 Synaptics TouchPad: (II) is tagged by udev as: Touchpad
[     8.194] (II) event10 - (II) SynPS/2 Synaptics TouchPad: (II) device is a touchpad
[     8.195] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
[     8.195] (II) No input driver specified, ignoring this device.
[     8.195] (II) This device may have been added with another device file.
[     8.195] (II) config/udev: Adding input device PC Speaker (/dev/input/event8)
[     8.195] (II) No input driver specified, ignoring this device.
[     8.195] (II) This device may have been added with another device file.
[     8.196] (II) config/udev: Adding input device MSI WMI hotkeys (/dev/input/event9)
[     8.196] (**) MSI WMI hotkeys: Applying InputClass "libinput keyboard catchall"
[     8.196] (II) Using input driver 'libinput' for 'MSI WMI hotkeys'
[     8.196] (**) MSI WMI hotkeys: always reports core events
[     8.196] (**) Option "Device" "/dev/input/event9"
[     8.196] (**) Option "_source" "server/udev"
[     8.196] (II) event9  - (II) MSI WMI hotkeys: (II) is tagged by udev as: Keyboard
[     8.196] (II) event9  - (II) MSI WMI hotkeys: (II) device is a keyboard
[     8.196] (II) event9  - (II) MSI WMI hotkeys: (II) device removed
[     8.223] (**) Option "config_info" "udev:/sys/devices/virtual/input/input11/event9"
[     8.223] (II) XINPUT: Adding extended input device "MSI WMI hotkeys" (type: KEYBOARD, id 14)
[     8.224] (II) event9  - (II) MSI WMI hotkeys: (II) is tagged by udev as: Keyboard
[     8.224] (II) event9  - (II) MSI WMI hotkeys: (II) device is a keyboard

sudo systool -vm nvidia-drm :

 
Error opening module nvidia-drm
zsh: exit 1     sudo systool -vm nvidia-drm

glxinfo | grep OpenGL :

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  79
  Current serial number in output stream:  80
zsh: exit 1     glxinfo | grep --color=auto OpenGL 

I can't take screenshot of the lines in terminal, they disappear when I hit the screen key...

Thank you for your help hmm

Last edited by Faeris (2017-11-25 18:32:49)

Offline

#8 2017-11-25 21:43:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,237

Re: [SOLVED] Tearing with proprietary nvidia

[     7.242] (==) Using config file: "/etc/xorg.conf"
...
[     7.256] (II) Loading /usr/lib/nvidia/xorg/libglx.so
...
[     7.337] (II) NVIDIA(0):     "NULL"
...
[     7.413] (II) modeset(G0): Printing probed modes for output eDP-1-1

Remove the xorg.conf and do not use nvidia-xconfig, esp. not for hybrid setups.
Read https://wiki.archlinux.org/index.php/NVIDIA_Optimus

Right now you don't have OpenGL support, kwin performs XRender compositing and the Render extension has no vblank concept...
First fix your optimus setup, then deal with tearing (in case)

Offline

#9 2017-11-26 18:23:03

Faeris
Member
Registered: 2014-08-15
Posts: 20

Re: [SOLVED] Tearing with proprietary nvidia

Ok, this time I removed the xorg.conf file, I moved it from /etc/X11 to /etc/, I didn't know that it would work even if the file is not in the folder X11.
This time the result of glxinfo | grep OpenGL is :

 OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 1050/PCIe/SSE2
OpenGL core profile version string: 4.5.0 NVIDIA 387.34
OpenGL core profile shading language version string: 4.50 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 387.34
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 387.34
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

I think that we solved the tearing, thank you !
I still got the horizontal transparent bars in my terminal sad

Offline

#10 2017-11-26 21:40:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,237

Re: [SOLVED] Tearing with proprietary nvidia

"Terminal" being "konsole"?
Can you take a photo? (not a screenshot, but using a camera)

Offline

#11 2017-11-27 17:55:53

Faeris
Member
Registered: 2014-08-15
Posts: 20

Re: [SOLVED] Tearing with proprietary nvidia

Hi, yes it's Konsole. I use Yakuake too.


Here is a photo :
http://www.hostingpics.net/viewer.php?i … 185022.jpg

There is no bar in xterm

Offline

#12 2017-11-27 18:45:25

Faeris
Member
Registered: 2014-08-15
Posts: 20

Re: [SOLVED] Tearing with proprietary nvidia

Ok, I found that calling Konsole like this : QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_SCREEN_SCALE_FACTOR=1 konsole ; solve the problem.
I tried to write export in my ~/.zshrc file but it doesn't work, I have to call konsole with the variables. I don't know why ?

Offline

#13 2017-11-27 20:40:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,237

Re: [SOLVED] Tearing with proprietary nvidia

Put it in  ~/.config/plasma-workspace/env/force_scale.sh and make the file executable.
zshrc has no impact because the relevant shell is plasma, not zsh.

Offline

#14 2017-11-28 00:35:13

Faeris
Member
Registered: 2014-08-15
Posts: 20

Re: [SOLVED] Tearing with proprietary nvidia

Indeed ! Thank you very much it works !
Thank you all for your help !

Offline

Board footer

Powered by FluxBB