Hello,
I have had this problem for several months: when I resume, artifacts appear (black borders around windows). I think that the drivers are involved.
The famous artifacts (black borders are not the background):
inxi -SGxxxz
System: Host: manjaro Kernel: 4.19.20-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 Desktop: KDE Plasma 5.14.5
tk: Qt 5.12.0 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux
Graphics: Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] driver: nvidia v: 415.27 bus ID: 01:00.0 chip ID: 10de:1c82
Display: x11 server: X.Org 1.20.3 driver: nvidia compositor: kwin_x11 resolution: 1920x1080~60Hz
OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 415.27 direct render: Yes
xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
1920x1080 60.00*+ 59.94 50.00 60.00 50.04
1680x1050 59.95
1600x900 60.00
1440x576 50.08
1280x1024 75.02 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
grep -iE "(EE)|(WW)|Time|nvidia" /var/log/Xorg.0.log
[ 12.654] Current Operating System: Linux manjaro 4.19.20-1-MANJARO #1 SMP PREEMPT Wed Feb 6 21:33:34 UTC 2019 x86_64
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 12.654] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Feb 14 20:53:14 2019
[ 12.902] (**) |-->Screen "Screen0" (0)
[ 12.994] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 12.994] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 12.995] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
[ 12.995] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi".
[ 12.995] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 12.995] (WW) Disabling Keyboard0
[ 12.995] (WW) Disabling Mouse0
[ 12.996] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 12.996] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 12.999] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[ 12.999] (**) OutputClass "nvidia" setting /dev/dri/card0 as PrimaryGPU
[ 13.001] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 13.019] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[ 13.312] (II) Module glx: vendor="NVIDIA Corporation"
[ 13.316] (II) NVIDIA GLX Module 415.27 Thu Dec 20 17:12:23 CST 2018
[ 13.321] (II) LoadModule: "nvidia"
[ 13.359] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 13.409] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 13.409] (II) NVIDIA dlloader X Driver 415.27 Thu Dec 20 17:12:39 CST 2018
[ 13.409] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 13.431] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[ 13.431] (==) NVIDIA(0): RGB weight 888
[ 13.431] (==) NVIDIA(0): Default visual is TrueColor
[ 13.431] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[ 13.431] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[ 13.431] (**) NVIDIA(0): Option "Stereo" "0"
[ 13.431] (**) NVIDIA(0): Option "nvidiaXineramaInfoOrder" "DFP-1"
[ 13.431] (**) NVIDIA(0): Option "SLI" "Off"
[ 13.431] (**) NVIDIA(0): Option "MultiGPU" "Off"
[ 13.431] (**) NVIDIA(0): Option "BaseMosaic" "off"
[ 13.431] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[ 13.431] (**) NVIDIA(0): Stereo disabled by request
[ 13.431] (**) NVIDIA(0): NVIDIA SLI disabled.
[ 13.431] (**) NVIDIA(0): NVIDIA Multi-GPU disabled.
[ 13.431] (**) NVIDIA(0): Option "MetaModes" "1920x1080_60 +0+0 {ForceCompositionPipeline=On}"
[ 13.431] (**) NVIDIA(0): Enabling 2D acceleration
[ 14.387] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[ 14.387] (--) NVIDIA(0): DFP-0
[ 14.387] (--) NVIDIA(0): DFP-1 (boot)
[ 14.387] (--) NVIDIA(0): DFP-2
[ 14.387] (--) NVIDIA(0): DFP-3
[ 14.388] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 1050 Ti (GP107-A) at PCI:1:0:0 (GPU-0)
[ 14.388] (--) NVIDIA(0): Memory: 4194304 kBytes
[ 14.388] (--) NVIDIA(0): VideoBIOS: 86.07.42.00.2c
[ 14.388] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[ 14.388] (--) NVIDIA(GPU-0): DFP-0: disconnected
[ 14.388] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[ 14.388] (--) NVIDIA(GPU-0): DFP-0: 330.0 MHz maximum pixel clock
[ 14.388] (--) NVIDIA(GPU-0):
[ 14.418] (--) NVIDIA(GPU-0): BenQ GL2250H (DFP-1): connected
[ 14.418] (--) NVIDIA(GPU-0): BenQ GL2250H (DFP-1): Internal TMDS
[ 14.418] (--) NVIDIA(GPU-0): BenQ GL2250H (DFP-1): 600.0 MHz maximum pixel clock
[ 14.418] (--) NVIDIA(GPU-0):
[ 14.418] (--) NVIDIA(GPU-0): DFP-2: disconnected
[ 14.418] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[ 14.418] (--) NVIDIA(GPU-0): DFP-2: 1440.0 MHz maximum pixel clock
[ 14.418] (--) NVIDIA(GPU-0):
[ 14.418] (--) NVIDIA(GPU-0): DFP-3: disconnected
[ 14.418] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[ 14.418] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[ 14.418] (--) NVIDIA(GPU-0):
[ 14.423] (II) NVIDIA(0): Validated MetaModes:
[ 14.423] (II) NVIDIA(0): "1920x1080_60+0+0{ForceCompositionPipeline=On}"
[ 14.423] (II) NVIDIA(0): Virtual screen size determined to be 1920 x 1080
[ 14.428] (--) NVIDIA(0): DPI set to (101, 101); computed from "UseEdidDpi" X config
[ 14.428] (--) NVIDIA(0): option
[ 14.428] (II) NVIDIA: Using 24576.00 MB of virtual memory for indirect memory
[ 14.428] (II) NVIDIA: access.
[ 14.431] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[ 14.431] (II) NVIDIA(0): may not be running or the "AcpidSocketPath" X
[ 14.431] (II) NVIDIA(0): configuration option may not be set correctly. When the
[ 14.431] (II) NVIDIA(0): ACPI event daemon is available, the NVIDIA X driver will
[ 14.431] (II) NVIDIA(0): try to use it to receive ACPI event notifications. For
[ 14.431] (II) NVIDIA(0): details, please see the "ConnectToAcpid" and
[ 14.431] (II) NVIDIA(0): "AcpidSocketPath" X configuration options in Appendix B: X
[ 14.431] (II) NVIDIA(0): Config Options in the README.
[ 14.450] (II) NVIDIA(0): Setting mode "1920x1080_60+0+0{ForceCompositionPipeline=On}"
[ 14.553] (==) NVIDIA(0): Disabling shared memory pixmaps
[ 14.553] (==) NVIDIA(0): Backing store enabled
[ 14.553] (==) NVIDIA(0): Silken mouse disabled
[ 14.553] (**) NVIDIA(0): DPMS enabled
[ 14.568] (WW) NVIDIA(0): Option "PrimaryGPU" is not used
[ 14.569] (II) NVIDIA(0): [DRI2] Setup complete
[ 14.569] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia
[ 14.571] (II) Initializing extension MIT-SCREEN-SAVER
[ 14.572] (II) Initializing extension XFree86-VidModeExtension
[ 14.572] (II) Initializing extension XFree86-DGA
[ 14.572] (II) Initializing extension XFree86-DRI
[ 15.151] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event13)
[ 15.151] (II) This device may have been added with another device file.
[ 15.151] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=7 (/dev/input/event14)
[ 15.151] (II) This device may have been added with another device file.
[ 15.152] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=8 (/dev/input/event15)
[ 15.152] (II) This device may have been added with another device file.
[ 15.246] (II) This device may have been added with another device file.
[ 15.247] (II) This device may have been added with another device file.
[ 15.340] (II) This device may have been added with another device file.
[ 15.340] (II) This device may have been added with another device file.
[ 15.341] (II) This device may have been added with another device file.
[ 15.341] (II) This device may have been added with another device file.
[ 15.341] (II) This device may have been added with another device file.
[ 15.341] (II) This device may have been added with another device file.
[ 62.568] (--) NVIDIA(GPU-0): DFP-0: disconnected
[ 62.568] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[ 62.568] (--) NVIDIA(GPU-0): DFP-0: 330.0 MHz maximum pixel clock
[ 62.568] (--) NVIDIA(GPU-0):
[ 62.598] (--) NVIDIA(GPU-0): BenQ GL2250H (DFP-1): connected
[ 62.598] (--) NVIDIA(GPU-0): BenQ GL2250H (DFP-1): Internal TMDS
[ 62.598] (--) NVIDIA(GPU-0): BenQ GL2250H (DFP-1): 600.0 MHz maximum pixel clock
[ 62.598] (--) NVIDIA(GPU-0):
[ 62.598] (--) NVIDIA(GPU-0): DFP-2: disconnected
[ 62.598] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[ 62.598] (--) NVIDIA(GPU-0): DFP-2: 1440.0 MHz maximum pixel clock
[ 62.598] (--) NVIDIA(GPU-0):
[ 62.598] (--) NVIDIA(GPU-0): DFP-3: disconnected
[ 62.598] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[ 62.598] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[ 62.598] (--) NVIDIA(GPU-0):
[ 64.881] (--) NVIDIA(GPU-0): DFP-0: disconnected
[ 64.881] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[ 64.881] (--) NVIDIA(GPU-0): DFP-0: 330.0 MHz maximum pixel clock
[ 64.881] (--) NVIDIA(GPU-0):
[ 64.911] (--) NVIDIA(GPU-0): BenQ GL2250H (DFP-1): connected
[ 64.911] (--) NVIDIA(GPU-0): BenQ GL2250H (DFP-1): Internal TMDS
[ 64.911] (--) NVIDIA(GPU-0): BenQ GL2250H (DFP-1): 600.0 MHz maximum pixel clock
[ 64.911] (--) NVIDIA(GPU-0):
[ 64.911] (--) NVIDIA(GPU-0): DFP-2: disconnected
[ 64.911] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[ 64.911] (--) NVIDIA(GPU-0): DFP-2: 1440.0 MHz maximum pixel clock
[ 64.911] (--) NVIDIA(GPU-0):
[ 64.911] (--) NVIDIA(GPU-0): DFP-3: disconnected
[ 64.911] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[ 64.911] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[ 64.911] (--) NVIDIA(GPU-0):
[ 3348.526] (II) event3 - HOLTEK Wireless USB Device Mouse: SYN_DROPPED event - some input events have been lost.
[ 3351.086] (II) event3 - HOLTEK Wireless USB Device Mouse: SYN_DROPPED event - some input events have been lost.
[ 3352.973] (II) event3 - HOLTEK Wireless USB Device Mouse: SYN_DROPPED event - some input events have been lost.
[ 3371.739] (II) event3 - HOLTEK Wireless USB Device Mouse: SYN_DROPPED event - some input events have been lost.
[ 3377.078] (II) event3 - HOLTEK Wireless USB Device Mouse: SYN_DROPPED event - some input events have been lost.
[ 3377.078] (II) event3 - HOLTEK Wireless USB Device Mouse: WARNING: log rate limit exceeded (5 msgs per 30000ms). Discarding future messages.
[ 3378.508] (II) event3 - HOLTEK Wireless USB Device Mouse: SYN_DROPPED event - some input events have been lost.
[ 3984.690] (EE) client bug: timer event3 debounce: offset negative (-5ms)
[ 3984.690] (EE) client bug: timer event3 debounce short: offset negative (-19ms)
[ 4224.186] (EE) client bug: timer event3 debounce: offset negative (-502ms)
[ 4224.186] (EE) client bug: timer event3 debounce short: offset negative (-515ms)
[ 4588.027] (II) event3 - HOLTEK Wireless USB Device Mouse: SYN_DROPPED event - some input events have been lost.
[ 4916.976] (II) event3 - HOLTEK Wireless USB Device Mouse: SYN_DROPPED event - some input events have been lost.
[ 4935.835] (II) event3 - HOLTEK Wireless USB Device Mouse: SYN_DROPPED event - some input events have been lost.
[ 5260.191] (EE) client bug: timer event3 debounce short: offset negative (-0ms)
[ 7061.074] (--) NVIDIA(GPU-0): DFP-0: disconnected
[ 7061.074] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[ 7061.074] (--) NVIDIA(GPU-0): DFP-0: 330.0 MHz maximum pixel clock
[ 7061.074] (--) NVIDIA(GPU-0):
[ 7061.112] (--) NVIDIA(GPU-0): BenQ GL2250H (DFP-1): connected
[ 7061.112] (--) NVIDIA(GPU-0): BenQ GL2250H (DFP-1): Internal TMDS
[ 7061.112] (--) NVIDIA(GPU-0): BenQ GL2250H (DFP-1): 600.0 MHz maximum pixel clock
[ 7061.112] (--) NVIDIA(GPU-0):
[ 7061.112] (--) NVIDIA(GPU-0): DFP-2: disconnected
[ 7061.112] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[ 7061.112] (--) NVIDIA(GPU-0): DFP-2: 1440.0 MHz maximum pixel clock
[ 7061.112] (--) NVIDIA(GPU-0):
[ 7061.112] (--) NVIDIA(GPU-0): DFP-3: disconnected
[ 7061.112] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[ 7061.112] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[ 7061.112] (--) NVIDIA(GPU-0):
[ 7166.189] (--) NVIDIA(GPU-0): DFP-0: disconnected
[ 7166.190] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[ 7166.190] (--) NVIDIA(GPU-0): DFP-0: 330.0 MHz maximum pixel clock
[ 7166.190] (--) NVIDIA(GPU-0):
[ 7166.220] (--) NVIDIA(GPU-0): BenQ GL2250H (DFP-1): connected
[ 7166.220] (--) NVIDIA(GPU-0): BenQ GL2250H (DFP-1): Internal TMDS
[ 7166.220] (--) NVIDIA(GPU-0): BenQ GL2250H (DFP-1): 600.0 MHz maximum pixel clock
[ 7166.220] (--) NVIDIA(GPU-0):
[ 7166.220] (--) NVIDIA(GPU-0): DFP-2: disconnected
[ 7166.220] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[ 7166.220] (--) NVIDIA(GPU-0): DFP-2: 1440.0 MHz maximum pixel clock
[ 7166.220] (--) NVIDIA(GPU-0):
[ 7166.220] (--) NVIDIA(GPU-0): DFP-3: disconnected
[ 7166.220] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[ 7166.220] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[ 7166.220] (--) NVIDIA(GPU-0):