[GH-ISSUE #1878] Emulator defaults to Xwayland despite having Wayland support #646

Closed
opened 2026-02-27 21:07:24 +03:00 by kerem · 3 comments
Owner

Originally created by @C0rn3j on GitHub (Dec 25, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1878

Is this intended?

unsetting DISPLAY makes it run under native Wayland, which is preferable, unless there are some major issues, but it seems to work fine on my machine™.

Keeping the possibility to override it to Xwayland would of course make sense.

Originally created by @C0rn3j on GitHub (Dec 25, 2024). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1878 Is this intended? unsetting DISPLAY makes it run under native Wayland, which is preferable, unless there are some major issues, but it seems to work fine on my machine™. Keeping the possibility to override it to Xwayland would of course make sense.
kerem closed this issue 2026-02-27 21:07:24 +03:00
Author
Owner

@ngoquang2708 commented on GitHub (Dec 25, 2024):

It because of this https://github.com/libsdl-org/SDL/pull/9383.

<!-- gh-comment-id:2561972828 --> @ngoquang2708 commented on GitHub (Dec 25, 2024): It because of this https://github.com/libsdl-org/SDL/pull/9383.
Author
Owner

@ngoquang2708 commented on GitHub (Dec 25, 2024):

I made a PR to force Wayland https://github.com/shadps4-emu/shadPS4/pull/1827 but decided that just wait for DEs to implement required protocols.

<!-- gh-comment-id:2561974437 --> @ngoquang2708 commented on GitHub (Dec 25, 2024): I made a PR to force Wayland https://github.com/shadps4-emu/shadPS4/pull/1827 but decided that just wait for DEs to implement required protocols.
Author
Owner

@C0rn3j commented on GitHub (Dec 25, 2024):

One of the needed protocols was just pushed a release behind for kwin which I use... https://invent.kde.org/plasma/kwin/-/merge_requests/6474

But I suppose this is then resolved on shad's side, as it will eventually default to Wayland on its own.

It is worth to mention that messing with DISPLAY is the wrong way to do this based on reading that thread, and export SDL_VIDEO_DRIVER=wayland; shadps4 is actually the way to go.

<!-- gh-comment-id:2561978628 --> @C0rn3j commented on GitHub (Dec 25, 2024): One of the needed protocols was just pushed a release behind for kwin which I use... https://invent.kde.org/plasma/kwin/-/merge_requests/6474 But I suppose this is then resolved on shad's side, as it will eventually default to Wayland on its own. It is worth to mention that messing with DISPLAY is the wrong way to do this based on reading that thread, and `export SDL_VIDEO_DRIVER=wayland; shadps4` is actually the way to go.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#646
No description provided.