You are not logged in.

#1 2024-12-07 11:37:20

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,919
Website

Gpu use under Sway window manager

I think I am going down a bit of a rabbit hole on this one. Understand from Arch wiki that Sway does not support Nvidia drivers [only nouveau] which for me is not a problem as I have an AMD Graphics card.

Been reading and trying stuff online to see if I can get my GPu to render under Sway, but so far I am unclear as if Sway is using card or not.

Have tried Weston, glxinfo etc.. have added a few export lines to .bashrc [as below]

# For GPU stuff
export WLR_RENDERER=vulkan
export LIBGL_ALWAYS_SOFTWARE=0

Am assuming Sway is using wlroots..

My question is can Sway use Gpu or am I wasting my time trying to get it too work?


Mr Green

Offline

#2 2024-12-07 11:42:00

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,719
Website

Re: Gpu use under Sway window manager

Mr Green wrote:

Have tried [...] glxinfo

What did  that say? How about `eglinfo` or `vulkaninfo`? Those commands will show if your card is being used.

EDIT: don't use ~/.bashrc to export variables, they will only be applied to the shell; use /etc/environment instead.

Last edited by Head_on_a_Stick (2024-12-07 11:44:56)


Para todos todo, para nosotros nada

Offline

#3 2024-12-08 08:30:07

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,919
Website

Re: Gpu use under Sway window manager

Ok will move exports... And I will wade through vulkaninfo output...

Thanks


Mr Green

Offline

#4 2024-12-08 09:28:58

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,719
Website

Re: Gpu use under Sway window manager

No need to wade through anything, just run the command and if it exits with a zero status (ie, without an error message) then sway is using your card for Vulkan applications. The eglinfo command will show if OpenGL is working under Wayland in the same way.


Para todos todo, para nosotros nada

Offline

Board footer

Powered by FluxBB