You are not logged in.

#1 2024-01-22 20:20:48

Otong
Member
Registered: 2024-01-22
Posts: 4

qtile on nvidia causing screen tearing and removing mouse cursor

Hello everyone, I have an issue when setting the kernel parameter nvidia_drm.modeset=1 in /etc/modprobe.d/nvidia.conf
- It is needed because without it my gpu isn't used.

There is screen tearing for any graphical window and my mouse cursor is hidden when there are windows although i can still click.

I have an NVIDIA Geforce RTX 3060 with proprietary drivers and I'm using qlite as a compositer for wayland. I use the linux kernel and the nvidia driver package.

I added the nvidia nvidia_modeset nvidia_uvm nvidia_drm modules in /etc/mkinitcpio.conf and I'm using the pacman hook from https://wiki.archlinux.org/title/NVIDIA#pacman_hook.

So I'd like help to enable my gpu with or without the modeset parameter. Without I get :
"DRI3 not available
failed to load driver: zink
[1578:0122/211641.305707:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization"
when launching graphical windows from the terminal

and,
"ERROR at /usr/src/debug/vulkan-tools/Vulkan-Tools-1.3.269/vulkaninfo/./vulkaninfo.h:1118:vkCreateWaylandSurfaceKHR failed with ERROR_OUT_OF_HOST_MEMORY"
when running vulkaninfo although it works just fine when modeset is set.

If needed I can provide any additional information.

Last edited by Otong (2024-01-22 22:50:34)

Offline

#2 2024-01-22 21:25:55

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

Re: qtile on nvidia causing screen tearing and removing mouse cursor

So it's not "nvidia_drm.modeset=1" but "qtile on nvidia" and

So I'd like help to enable my gpu with or without the modeset parameter

isn't going to happen: https://wiki.archlinux.org/title/Wayland#Requirements

For the cursor see https://wiki.archlinux.org/title/Sway#No_visible_cursor (afaics qtile uses wlroots as well)

Then please elaborate on "screen tearing for any graphical window" (what is "any graphical window" specifically and what is "tearing" itr, actual tearing isn't a per-window thing) and post the output of "lspci" (iow: is this a hybrid graphcis system and where're the outputs wired?)

Offline

#3 2024-01-22 22:54:51

Otong
Member
Registered: 2024-01-22
Posts: 4

Re: qtile on nvidia causing screen tearing and removing mouse cursor

Yes when I say screen tearing, I actually mean the entire screen, but it is accentuated when using a web browser compared to a terminal emulator for example .

$ lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
10:00.0 VGA compatible controller: NVIDIA Corporation GA106 [GeForce RTX 3060 Lite Hash Rate] (rev a1)
10:00.1 Audio device: NVIDIA Corporation GA106 High Definition Audio Controller (rev a1)
16:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset USB 3.1 xHCI Compliant Host Controller (rev 01)
16:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset SATA Controller (rev 01)
16:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Bridge (rev 01)
20:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
20:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
20:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
20:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
20:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
20:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
25:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
29:00.0 Non-Volatile memory controller: Kingston Technology Company, Inc. NV1 NVMe SSD SM2263XT (rev 03)
30:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function (rev c9)
30:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
30:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
30:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
30:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
30:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
31:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
31:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)

Last edited by Otong (2024-01-22 23:04:08)

Offline

#4 2024-01-22 23:00:28

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

Re: qtile on nvidia causing screen tearing and removing mouse cursor

Please use [code][/code] tags. Edit your post in this regard.
"webbrowser" like firefox?
https://wiki.archlinux.org/title/Firefox#Wayland

Offline

#5 2024-01-22 23:21:07

Otong
Member
Registered: 2024-01-22
Posts: 4

Re: qtile on nvidia causing screen tearing and removing mouse cursor

Firefox seem to be working fine, but my terminal (foot), chromium along with bitwarden do not.

The fix for the cursor did not work though

Offline

#6 2024-01-23 09:35:20

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

Re: qtile on nvidia causing screen tearing and removing mouse cursor

FF w/ MOZ_ENABLE_WAYLAND=1 or on xwayland?
Where and how did you export WLR_NO_HARDWARE_CURSORS=1 ?

Offline

#7 2024-01-23 12:55:55

Otong
Member
Registered: 2024-01-22
Posts: 4

Re: qtile on nvidia causing screen tearing and removing mouse cursor

firefox worked out of the box so I guess MOZ_ENABLE_WAYLAND was set as it is by default, and I exported the option manually.

Thanks for helping me. But I think I'll be using the nouveau driver as I didn't find any solutions, or I'll switch back to xorg.

How can I close this post without marking it as solved ?

Offline

#8 2024-01-23 15:01:19

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

Re: qtile on nvidia causing screen tearing and removing mouse cursor

firefox worked out of the box so I guess MOZ_ENABLE_WAYLAND was set as it is by default

No, so xwayland seems to work?

echo $MOZ_ENABLE_WAYLAND

and I exported the option manually.

Yes, but *where*?
If you ran that in a terminal inside the waylnd session, it doesn't do anything.

Offline

Board footer

Powered by FluxBB