Adding NVIDIA flags to launcher

I’m a new user and have just done a fresh install of EOS running the default sway config. I am using the proprietary GPU drivers (yes I know they are technically not supported), and am unsure how to configure the installed login manager to work with it.

I am able to launch sway by entering tty and running sway --unsupported-gpu which works, but I would rather not have to do this work around every time I log in. Is there a way to add the needed flag to the login manager? Or, if that is not possible simply disable/remove the manager and automatically load straight into tty?
Thanks!

This can be done with sudo systemctl disable sddm.service. Reboot, Then you’ll just open up into tty. You can create an alias for the flag and then just quickly type that if it’s too long.

Someone else will definitely know how to do this soon! I just thought I’d answer something I knew.

Welcome!

1 Like

Edit /usr/share/wayland-sessions/sway.desktop

3 Likes

Welcome to the forum. I hope you enjoy your time here.

Pudge

2 Likes

That did it. Thank you!

1 Like

I have a script that I run from the desktop file:

#!/bin/bash
export SDL_VIDEODRIVER=wayland
export _JAVA_AWT_WM_NONREPARENTING=1
#export QT_QPA_PLATFORM=wayland
export WLR_NO_HARDWARE_CURSORS=1
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_DESKTOP=sway
export MOZ_WAYLAND=1
export MOZ_ENABLE_WAYLAND=1
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export GDK_BACKEND=wayland

# Jonathon's idea: +nvidia that doesn't work.....
#GBM_BACKEND=nvidia-drm
#__GLX_VENDOR_LIBRARY_NAME=nvidia
#export GBM_BACKEND=nvidia-drm
#export __GLX_VENDOR_LIBRARY_NAME=nvidia

exec sway --unsupported-gpu
#exec sway --my-next-gpu-wont-be-nvidia

I then chattr the desktop file so that updates do not overwrite it.

[Desktop Entry]
Name=Sway
Comment=An i3-compatible Wayland compositor
Exec=/home/xircon/.config/sway/swaylaunch.sh
Type=Application
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.