[GH-ISSUE #1078] SOLUTION for those (linux users) who are experiencing black screen #333

Closed
opened 2026-02-27 21:05:46 +03:00 by kerem · 22 comments
Owner

Originally created by @Ein420 on GitHub (Sep 26, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1078

I'm on Arch linux and this managed to work for me

If you are experiencing no audio, these steps should also fix your issue:

  1. this fixed the previous issue of it not building. (skip this, already fixed)
    before compiling ShadPS4 (just after cloning),
    edit your src/video_core/texture_cache/tile_manager.cpp
    on line 298, remove static from static auto [desc_layout_result, desc_layout] =

  2. then to fix the black screen,
    add these lines to src/core/libraries/kernel/thread_management.cpp from this commit:
    github.com/shadps4-emu/shadPS4@481e18a245 (diff-1179139663)

Make sure to use the -DCMAKE_DISABLE_FIND_PACKAGE_SDL3=ON flag if the SDL3 on your repo/pc is a higher version than what shadPS4 needs.

For some reason, I'm only able to get audio when compiling it myself, audio does not work at all if I'm using a pre-release/release

Originally created by @Ein420 on GitHub (Sep 26, 2024). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1078 I'm on Arch linux and this managed to work for me If you are experiencing no audio, these steps should also fix your issue: 1. this fixed the previous issue of it not building. (skip this, already fixed) before compiling ShadPS4 (just after cloning), edit your `src/video_core/texture_cache/tile_manager.cpp` on line 298, remove `static` from `static auto [desc_layout_result, desc_layout] =` 2. then to **fix the black screen**, add these lines to `src/core/libraries/kernel/thread_management.cpp` from this commit: https://github.com/shadps4-emu/shadPS4/commit/481e18a245f8a19a540877778d7bc45a91672519#diff-1179139663057cf3ceb4647b8ed2cc9030d0873ccf224290152b49cf2fec2f09R1085 Make sure to use the `-DCMAKE_DISABLE_FIND_PACKAGE_SDL3=ON` flag if the SDL3 on your repo/pc is a higher version than what shadPS4 needs. For some reason, I'm only able to get audio when compiling it myself, audio does not work at all if I'm using a pre-release/release
kerem closed this issue 2026-02-27 21:05:46 +03:00
Author
Owner

@ngoquang2708 commented on GitHub (Sep 26, 2024):

thread_management.cpp patch fix black screen for me. But the emulator still crash when finishing character creation.

<!-- gh-comment-id:2375887303 --> @ngoquang2708 commented on GitHub (Sep 26, 2024): ```thread_management.cpp``` patch fix black screen for me. But the emulator still crash when finishing character creation.
Author
Owner

@Ein420 commented on GitHub (Sep 26, 2024):

thread_management.cpp patch fix black screen for me. But the emulator still crash when finishing character creation.

try building from diegolix29's fork, you will get better results:
https://github.com/diegolix29/shadPS4

<!-- gh-comment-id:2376695994 --> @Ein420 commented on GitHub (Sep 26, 2024): > `thread_management.cpp` patch fix black screen for me. But the emulator still crash when finishing character creation. try building from diegolix29's fork, you will get better results: https://github.com/diegolix29/shadPS4
Author
Owner

@RoastBeefer00 commented on GitHub (Sep 26, 2024):

thread_management.cpp patch fix black screen for me. But the emulator still crash when finishing character creation.

same here :(

<!-- gh-comment-id:2377281604 --> @RoastBeefer00 commented on GitHub (Sep 26, 2024): > `thread_management.cpp` patch fix black screen for me. But the emulator still crash when finishing character creation. same here :(
Author
Owner

@Ein420 commented on GitHub (Sep 26, 2024):

make sure you're building the 'Full-Blood' branch of the fork I mentioned

<!-- gh-comment-id:2377405092 --> @Ein420 commented on GitHub (Sep 26, 2024): make sure you're building the 'Full-Blood' branch of the fork I mentioned
Author
Owner

@RoastBeefer00 commented on GitHub (Sep 26, 2024):

Reloading got me past character creation and now I can play the game. I had to apply this fix in the code and build from source. The fork suggested does not work me on Fedora 40 or steam deck

<!-- gh-comment-id:2377533954 --> @RoastBeefer00 commented on GitHub (Sep 26, 2024): Reloading got me past character creation and now I can play the game. I had to apply this fix in the code and build from source. The fork suggested does not work me on Fedora 40 or steam deck
Author
Owner

@Ein420 commented on GitHub (Sep 26, 2024):

It will take a reload to get past laggy loading screens

are u using official build?
Full-Blood/diegolix29's fork is the most performant in my case

<!-- gh-comment-id:2377609978 --> @Ein420 commented on GitHub (Sep 26, 2024): It will take a reload to get past laggy loading screens are u using official build? Full-Blood/diegolix29's fork is the most performant in my case
Author
Owner

@GryfHub commented on GitHub (Sep 26, 2024):

i can't build it on my SD i get:

CMake Error at CMakeLists.txt:147 (find_package):
Found package configuration file:

/usr/lib/cmake/Qt6/Qt6Config.cmake

but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
FOUND. Reason given by package:

Failed to find required Qt component "Widgets".

Expected Config file at "/usr/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake"
exists

Configuring with --debug-find-pkg=Qt6Widgets might reveal details why the
package was not found.

<!-- gh-comment-id:2377814870 --> @GryfHub commented on GitHub (Sep 26, 2024): i can't build it on my SD i get: CMake Error at CMakeLists.txt:147 (find_package): Found package configuration file: /usr/lib/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find required Qt component "Widgets". Expected Config file at "/usr/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake" exists Configuring with --debug-find-pkg=Qt6Widgets might reveal details why the package was not found.
Author
Owner

@Leniptic commented on GitHub (Sep 26, 2024):

Same issue as above person, but "Multimedia" instead of "Widgets". Running Mint 22 Wilma with a 3070. I've never built from source before, let alone edited someone else's code and then built it, so I 100% could've just done something wrong.

<!-- gh-comment-id:2378119740 --> @Leniptic commented on GitHub (Sep 26, 2024): Same issue as above person, but "Multimedia" instead of "Widgets". Running Mint 22 Wilma with a 3070. I've never built from source before, let alone edited someone else's code and then built it, so I 100% could've just done something wrong.
Author
Owner

@GryfHub commented on GitHub (Sep 26, 2024):

Can someone build it and link a dlwnload ?

<!-- gh-comment-id:2378131692 --> @GryfHub commented on GitHub (Sep 26, 2024): Can someone build it and link a dlwnload ?
Author
Owner

@Ein420 commented on GitHub (Sep 27, 2024):

i can't build it on my SD i get:
CMake Error at CMakeLists.txt:147 (find_package): Found package configuration file:

/usr/lib/cmake/Qt6/Qt6Config.cmake

but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package:

I have the latest, most bleeding edge qt6 packages installed, yet I'm not getting these issues

make sure you at least have qt6 installed

otherwise, maybe the solution to ur issues is as simple as compiling with -DCMAKE_DISABLE_FIND_PACKAGE_QT6=ON (something like that) e.g. ``-DCMAKE_DISABLE_FIND_PACKAGE_QT6-MULTIMEDIA=ON`

<!-- gh-comment-id:2378189637 --> @Ein420 commented on GitHub (Sep 27, 2024): > i can't build it on my SD i get: > CMake Error at CMakeLists.txt:147 (find_package): Found package configuration file: > ``` > /usr/lib/cmake/Qt6/Qt6Config.cmake > ``` > but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: I have the latest, most bleeding edge qt6 packages installed, yet I'm not getting these issues make sure you at least have qt6 installed otherwise, maybe the solution to ur issues is as simple as compiling with `-DCMAKE_DISABLE_FIND_PACKAGE_QT6=ON` (something like that) e.g. ``-DCMAKE_DISABLE_FIND_PACKAGE_QT6-MULTIMEDIA=ON`
Author
Owner

@Ein420 commented on GitHub (Sep 27, 2024):

Maybe the steamOS is not yet updated to Qt6/plasma 6 and still only uses plasma 5 (?) that may be ur issue

<!-- gh-comment-id:2378190884 --> @Ein420 commented on GitHub (Sep 27, 2024): Maybe the steamOS is not yet updated to Qt6/plasma 6 and still only uses plasma 5 (?) that may be ur issue
Author
Owner

@Ein420 commented on GitHub (Sep 27, 2024):

Can someone build it and link a dlwnload ?

https://www.mediafire.com/file/yygq1le5bhkqddz/shadps4/file

<!-- gh-comment-id:2378197016 --> @Ein420 commented on GitHub (Sep 27, 2024): > Can someone build it and link a dlwnload ? https://www.mediafire.com/file/yygq1le5bhkqddz/shadps4/file
Author
Owner

@Myew420 commented on GitHub (Sep 27, 2024):

Can someone build it and link a dlwnload ?

https://www.mediafire.com/file/yygq1le5bhkqddz/shadps4/file

I get this when trying to run it:
error while loading shared libraries: libfmt.so.10: cannot open shared object file: No such file or directory

<!-- gh-comment-id:2379154046 --> @Myew420 commented on GitHub (Sep 27, 2024): > > Can someone build it and link a dlwnload ? > > https://www.mediafire.com/file/yygq1le5bhkqddz/shadps4/file I get this when trying to run it: `error while loading shared libraries: libfmt.so.10: cannot open shared object file: No such file or directory`
Author
Owner

@ngoquang2708 commented on GitHub (Sep 27, 2024):

I get this when trying to run it: error while loading shared libraries: libfmt.so.10: cannot open shared object file: No such file or directory

Try SteamOS 3.6 Beta branch

<!-- gh-comment-id:2379165035 --> @ngoquang2708 commented on GitHub (Sep 27, 2024): > I get this when trying to run it: `error while loading shared libraries: libfmt.so.10: cannot open shared object file: No such file or directory` Try SteamOS 3.6 Beta branch
Author
Owner

@Skyrent commented on GitHub (Sep 27, 2024):

I get this when trying to run it: error while loading shared libraries: libfmt.so.10: cannot open shared object file: No such file or directory

Try SteamOS 3.6 Beta branch

It doesn't work either on 3.6. Same error.

<!-- gh-comment-id:2379221125 --> @Skyrent commented on GitHub (Sep 27, 2024): > > I get this when trying to run it: `error while loading shared libraries: libfmt.so.10: cannot open shared object file: No such file or directory` > > Try SteamOS 3.6 Beta branch It doesn't work either on 3.6. Same error.
Author
Owner

@RoastBeefer00 commented on GitHub (Sep 27, 2024):

I was able to get the game running on my steam deck using the binary from my own fork, but a lot of game textures won't load. Also, I can no longer get past the black screen on Fedora and I don't know why

<!-- gh-comment-id:2379279447 --> @RoastBeefer00 commented on GitHub (Sep 27, 2024): I was able to get the game running on my steam deck using the binary from my own fork, but a lot of game textures won't load. Also, I can no longer get past the black screen on Fedora and I don't know why
Author
Owner

@ngoquang2708 commented on GitHub (Sep 27, 2024):

My advice is to wait a few months for the Linux part of the emulator to mature. Currently you can launch some games but it is just hit or miss and performance wise no where near as good as on Windows.

<!-- gh-comment-id:2379282109 --> @ngoquang2708 commented on GitHub (Sep 27, 2024): My advice is to wait a few months for the Linux part of the emulator to mature. Currently you can launch some games but it is just hit or miss and performance wise no where near as good as on Windows.
Author
Owner

@RoastBeefer00 commented on GitHub (Sep 27, 2024):

Correction sorry it's working on Fedora again I just had to use an X11 session instead of Wayland. On my desktop I can only handle 480p so yeah waiting may be a good option.

<!-- gh-comment-id:2379350324 --> @RoastBeefer00 commented on GitHub (Sep 27, 2024): Correction sorry it's working on Fedora again I just had to use an X11 session instead of Wayland. On my desktop I can only handle 480p so yeah waiting may be a good option.
Author
Owner

@Ein420 commented on GitHub (Sep 27, 2024):

I get this when trying to run it: error while loading shared libraries: libfmt.so.10: cannot open shared object file: No such file or directory

Try SteamOS 3.6 Beta branch

It doesn't work either on 3.6. Same error.

Make sure you have the 'fmt' package installed

<!-- gh-comment-id:2379915327 --> @Ein420 commented on GitHub (Sep 27, 2024): > > > I get this when trying to run it: `error while loading shared libraries: libfmt.so.10: cannot open shared object file: No such file or directory` > > > > > > Try SteamOS 3.6 Beta branch > > It doesn't work either on 3.6. Same error. Make sure you have the 'fmt' package installed
Author
Owner

@aaalloc commented on GitHub (Sep 28, 2024):

thread_management.cpp patch fix black screen for me. But the emulator still crash when finishing character creation.

try building from diegolix29's fork, you will get better results: https://github.com/diegolix29/shadPS4

I can confirm that it worked with diegolix29 forks and thread_management fix it can launch and has no crashes when finishing character creation. (tested on Fedora 40 with AMD cpu and NVIDIA gpu)

Otherwise if it still crash after character creation, you could just restart the game and it will work.

<!-- gh-comment-id:2380579821 --> @aaalloc commented on GitHub (Sep 28, 2024): > > `thread_management.cpp` patch fix black screen for me. But the emulator still crash when finishing character creation. > > try building from diegolix29's fork, you will get better results: https://github.com/diegolix29/shadPS4 I can confirm that it worked with diegolix29 forks and thread_management fix it can launch and has no crashes when finishing character creation. (tested on Fedora 40 with AMD cpu and NVIDIA gpu) Otherwise if it still crash after character creation, you could just restart the game and it will work.
Author
Owner

@raphaelthegreat commented on GitHub (Sep 29, 2024):

This isn't an issue but rather a discussion

<!-- gh-comment-id:2381400744 --> @raphaelthegreat commented on GitHub (Sep 29, 2024): This isn't an issue but rather a discussion
Author
Owner

@intellq commented on GitHub (Nov 21, 2024):

Also, if you are getting a black screen in a Wayland session (even after applying the linux fix), call the emulator like this:

DISPLAY= ./shadps4

To force it to use wayland and not the X bridge

<!-- gh-comment-id:2490087578 --> @intellq commented on GitHub (Nov 21, 2024): Also, if you are getting a black screen in a Wayland session (even after applying the linux fix), call the emulator like this: DISPLAY= ./shadps4 To force it to use wayland and not the X bridge
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#333
No description provided.