#Nvidia in Hyprland

17 messages · Page 1 of 1 (latest)

shadow citrus
#

Hey guys, I'm following the Nvidia instructions on the Hyprland Wiki (https://wiki.hyprland.org/Nvidia/) and a section of it says

Export these variables in your config:
env = LIBVA_DRIVER_NAME,nvidia
env = XDG_SESSION_TYPE,wayland
env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = WLR_NO_HARDWARE_CURSORS,1

I'm not sure which config it's talking about. I'm thinking it's referencing the config file at /etc/modprobe.d/nvidia.conf that it had me create on the line above but I'm not entirely sure.

fleet agate
#

I'm not sure which config it's talking about. I'm thinking it's referencing the config file at /etc/modprobe.d/nvidia.conf that it had me create on the line above but I'm not entirely sure.
it's not, it is asking you export those environment variables somewhere, such as your script to start hyprland or your bashrc

pure carbon
#

I'm setting it up like this.

.config/hypr/hyperland.conf

source=~/.config/hypr/environment.conf
source=~/.config/hypr/displays.conf
source=~/.config/hypr/variables.conf
source=~/.config/hypr/binds.conf
source=~/.config/hypr/windowrules.conf
source=~/.config/hypr/apps.conf
source=~/.config/hypr/polish.conf

.config/hypr/enviroment.conf

env = WLR_NO_HARDWARE_CURSORS,1
env = WLR_RENDERER,vulkan
env = XDG_SESSION_TYPE,wayland
env = QT_QPA_PLATFORM,wayland
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = MOZ_ENABLE_WAYLAND,1
env = MOZ_USE_XINPUT2,1
env = __GL_GSYNC_ALLOWED,0
env = __GL_VRR_ALLOWED,0
env = SDL_VIDEODRIVER,wayland
env = _JAVA_AWT_WM_NONEREPARENTING,1
#

@shadow citrus

#

this way hyprland reads from an env setting that's easy to find

shadow citrus
#

@pure carbon Okay sweet, I'll use that as a reference! I'm still really new to Linux so don't fully understand using source and structuring things like that, but I'll do some research.
Thank you so much!

karmic crescentBOT
#

moonburst received a thank you cookie!

pure carbon
#

I actually took it from here

shadow citrus
karmic crescentBOT
#

You're thanking too much ó_ò

pure carbon
#

There is though.

shadow citrus
#

WHAT!? I looked. Obviously not hard enough. I'll try again.

pure carbon
#

though I've heard some not so nice things about the hyprland dev, I don't know if it's my place to bring out that story. it's drama drama

shadow citrus
#

I searched for both on the Discord communities, but I guess a server has to be a certain size before it shows up there or something.
Ahhhh, great. If they're too toxic then I'll just use Wayland. You have been beyond helpful, man. So much appreciated.