Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU configuration with "env = WLR_DRM_DEVICES,/dev/dri/cardN" not working as expected? #694

Open
ssvx opened this issue Jun 22, 2024 · 0 comments

Comments

@ssvx
Copy link

ssvx commented Jun 22, 2024

In reference to https://wiki.hyprland.org/hyprland-wiki/pages/Configuring/Multi-GPU/

My cards from lspci | grep -E 'VGA|3D' are

  • 17:00.0 VGA compatible controller: NVIDIA Corporation GA102 [GeForce RTX 3090] (rev a1)
  • 67:00.0 VGA compatible controller: Intel Corporation DG2 [Arc A770] (rev 08)

And from ls -l /dev/dri/by-path i get pci-0000:67:00.0-card -> ../card0, so i've set env = WLR_DRM_DEVICES,/dev/dri/card0 in my hyprland.conf, which should refer to my A770.

But even when i unload all nvidia kernel mods with sudo rmmod nvidia_drm nvidia_modeset nvidia_uvm nvidia before running Hyprland it seems to automatically load at least the nvidia driver and also seems to be running on that:

lsof -n -w -t /dev/nvidia*

5771

ps -p 5771

PID TTY TIME CMD
5771 tty1 00:00:45 Hyprland

Also when running kitty, Xwayland or chrome-based browser (Vivaldi) they all seem to jump onto the nvidia train.

Problem is that i want to attach/detach my 2nd GPU (nvidia) to be used on demand either as 3d accelerator for certain apps/games in Hyprland natively and wine or use the vfio drivers to pass the card on to qemu/kvm and use it as dedicated GPU for a virtual machine.

I've been told i'd need to blacklist nvidia drivers and reboot to use the GPU with vfio and then remove it from the blacklist and reboot again in order to use it within the host machine again. I find this very strange and cumbersome and would much prefer the GPU not being used as long as i configure Hyprland to use a different GPU and don't explicitly tell anything to load my nvidia kernel mods..?

Also: is there a way to check which GPU Hyprland thinks it's using to confirm the env = WLR_DRM_DEVICES,/dev/dri/card0 does anything at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant