Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I need help with Xwayland
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
night_mirage
n00b
n00b


Joined: 26 Dec 2020
Posts: 11

PostPosted: Mon Nov 15, 2021 1:56 pm    Post subject: I need help with Xwayland Reply with quote

Hi good people!
I switched from X to wayland (seatd + sway).
It's awesome, but some games doesnt give me display.

What doesnt work?
Baldurs Gate 3
On X, i was able to play without any problems using lutris.
What happens when i run?
I hear sound from game so that means it works but i dont get any display, i even searched ttys.


What works? (i think most in general)
Steam -> Nier: Automata, Cyberpunk 2077 ... no problems.
Lutris -> A hat in time, Guild wars 2 and others no problems...
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Mon Nov 15, 2021 2:06 pm    Post subject: Reply with quote

Most of the time the issue is with teh version of SDL being used, ie it isn't aware of Wayland
From within STEAM, rightclick on the game you want to play and change the launch argument to below:

SDL_VIDEODRIVER=x11 %command%
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
night_mirage
n00b
n00b


Joined: 26 Dec 2020
Posts: 11

PostPosted: Mon Nov 15, 2021 2:30 pm    Post subject: Reply with quote

EDIT!
I solved this by accident, so if anyone have problem with BG3...
Actually, i use xorg (switched back from wayland for a while) and deleted those line in my .zshrc

Code:

#export GDK_BACKEND=x11
#export SDL_VIDEODRIVER=x11
#export XDG_SESSION_TYPE=x11



At this moment i dont know why it works, but finally i have screen.
If your game works, but you dont have any window of game but you hear a sound, game works etc. then one of these env are problem.


Naib wrote:
Most of the time the issue is with teh version of SDL being used, ie it isn't aware of Wayland
From within STEAM, rightclick on the game you want to play and change the launch argument to below:

SDL_VIDEODRIVER=x11 %command%


Well, i tried with that and GDK_BACKEND=x11.
But result is always the same, it runs game (i hear audio), but no display.

I wonder, maybe i need something i missed.

Problem isnt gentoo specific... On protondb someone reported similiar issue

But, still Xwayland is big suprise... most stuff like Tomb Raider, Ori and the Blind forest just work, and it's hard to say what is better.
I will try in free time reinstall BG3, maybe i need to force somehow windowed mode. IDK
If anyone will find a way, big thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum