You are not logged in.

#1 2024-05-29 00:01:28

jojo06
Member
Registered: 2023-11-04
Posts: 373

[SOLVED]Screen flashes while gaming

When playing Dota 2, the screen flashes on and off constantly. When joining the game, it gives a no connection warning and joins late. I've missed the `join` part of the match sometimes.

In another game I have the following problem: when I switch to another workspace and come back to the game, the game is stuck

sudo journalctl -b | grep "nvidia":

May 28 06:55:52 roses kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=ef013555-e14c-4201-94e3-0848ed6f4a04 rw loglevel=3 nvidia-drm.modeset=1
May 28 06:55:52 roses kernel: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=ef013555-e14c-4201-94e3-0848ed6f4a04 rw loglevel=3 nvidia-drm.modeset=1
May 28 06:55:53 roses kernel: nvidia: loading out-of-tree module taints kernel.
May 28 06:55:53 roses kernel: nvidia: module license 'NVIDIA' taints kernel.
May 28 06:55:53 roses kernel: nvidia: module verification failed: signature and/or required key missing - tainting kernel
May 28 06:55:53 roses kernel: nvidia: module license taints kernel.
May 28 06:55:53 roses kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 240
May 28 06:55:53 roses kernel: nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=io+mem
May 28 06:55:53 roses (udev-worker)[339]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.
May 28 06:55:53 roses (udev-worker)[315]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.
May 28 06:55:53 roses kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  550.78  Sun Apr 14 06:23:31 UTC 2024
May 28 06:55:53 roses kernel: nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
May 28 06:55:53 roses (udev-worker)[339]: nvidia: Process '/usr/bin/bash -c 'for i in $(cat /proc/driver/nvidia/gpus/*/information | grep Minor | cut -d \  -f 4); do /usr/bin/mknod -Z -m 666 /dev/nvidia${i} c $(grep nvidia /proc/devices | cut -d \  -f 1) ${i}; done'' failed with exit code 1.
May 28 06:55:53 roses (udev-worker)[315]: nvidia: Process '/usr/bin/bash -c 'for i in $(cat /proc/driver/nvidia/gpus/*/information | grep Minor | cut -d \  -f 4); do /usr/bin/mknod -Z -m 666 /dev/nvidia${i} c $(grep nvidia /proc/devices | cut -d \  -f 1) ${i}; done'' failed with exit code 1.
May 28 06:55:53 roses (udev-worker)[339]: nvidia_modeset: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidia-modeset c $(grep nvidia /proc/devices | cut -d \  -f 1) 254'' failed with exit code 1.
May 28 06:55:53 roses systemd-modules-load[264]: Inserted module 'nvidia_uvm'
May 28 06:55:53 roses kernel: nvidia-uvm: Loaded the UVM driver, major device number 238.
May 28 06:55:53 roses kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
May 28 06:55:54 roses kernel: [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0

sudo dmesg | grep nvidia:

[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=ef013555-e14c-4201-94e3-0848ed6f4a04 rw loglevel=3 nvidia-drm.modeset=1
[    0.043816] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=ef013555-e14c-4201-94e3-0848ed6f4a04 rw loglevel=3 nvidia-drm.modeset=1
[    3.927078] nvidia: loading out-of-tree module taints kernel.
[    3.927084] nvidia: module license 'NVIDIA' taints kernel.
[    3.927087] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    3.927087] nvidia: module license taints kernel.
[    4.346739] nvidia-nvlink: Nvlink Core is being initialized, major device number 240
[    4.347935] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=io+mem
[    4.532581] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  550.78  Sun Apr 14 06:23:31 UTC 2024
[    4.535157] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[    4.738103] nvidia-uvm: Loaded the UVM driver, major device number 238.
[    4.742618] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    5.453219] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0

Last edited by jojo06 (2024-05-29 04:02:49)

Offline

#2 2024-05-29 01:08:32

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

Re: [SOLVED]Screen flashes while gaming

Known bugs with current versions of nvidia and wayland compositors (which one are you using, or is this a xorg session?). Fixes are underway, a large portion of it is in the current nvidia-beta driver, Plasma 6.1 which is in beta will also include the relevant explicit sync support.

If happen to use KDE, make sure you disable variable refresh support in the monitor settings, it's generally somewhat buggy, even more so on nvidia.

For a generally more stable experience currently and if you don't want to test beta drivers, test the xorg session.

Offline

#3 2024-05-29 04:02:34

jojo06
Member
Registered: 2023-11-04
Posts: 373

Re: [SOLVED]Screen flashes while gaming

All right, then. I'm using Hyprland, wayland

Offline

#4 2024-05-31 09:36:58

jojo06
Member
Registered: 2023-11-04
Posts: 373

Re: [SOLVED]Screen flashes while gaming

I don't know if I need to start another thread, so I thought I'd ask here first. The problem might be the same. I get between 10-50 fps in CS2, it is very unstable, it can suddenly drop to 10, although people play at 200-300 fps, this is what I saw in the benchmark. I have a GTX 1050 Ti and 16 GB ram. Intel i5 9400F, 1920x1080 and SSD and medium graphics settings. I have the same problem in cs when changing workspace as in dota. But more than that, after 2-3 matches, the sound breaks in the game and then the game freezes.

Also, just to ask you, I understand that the fixes start in beta. We don't have Arch beta like Manjora, but if I switch to nvidia-beta, will I get the solution faster and will I be using the latest system?

Last edited by jojo06 (2024-05-31 10:22:23)

Offline

#5 2024-05-31 11:33:18

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

Re: [SOLVED]Screen flashes while gaming

not sure about CS2, it sounds like you might be doing software rendering, but I suggest you open a new thread and post yourb vulkaninfo output to check whether you're using the correct renderer.

You'd get the relevant implementation from nvidia-beta yes, and that should already fix things for applications running in xwayland. Real proper support will also need to be added to hyprland, where I don't know what the status is.

Offline

Board footer

Powered by FluxBB