Demon's Souls PPSA01341 on Linux: idles on a black screen before the first logo video #1025

Closed
opened 2026-10-07 01:18:08 +00:00 by fisherjoey · 2 comments
fisherjoey commented 2026-10-07 01:18:08 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by fisherjoey on 2026-10-07T01:18:08Z.


Summary

Demon's Souls (PPSA01341 v1.07, US) on Linux boots, finishes loading and runs its main loop at about 7 fps. It never leaves a black screen. It does not open movies/ps_studios_logo.bk2 or any other .bk2 file, so it stops somewhere before the first logo.

@yumlevi, #5 took PPSA01342 on Windows from the SIE logo to the main menu. Do you remember anything the title needed between "Starting main loop" and the first ps_studios_logo.bk2 open? A service reply, an event, or an env var you always set? Any hint about the boot step it waits on would help.

Setup

  • main c1241ad0 + #861 + #864 + #732 + #157, plus the import fix from #1022. Without #861 the title segfaults in init on Linux.
  • Linux 7.2 (Nobara 44), GCC 16, RTX 5070 Ti, driver 595.91.07.
  • Relinked with the title's own libc.prx. --skip-sce-module leaves 41 C++ runtime imports unresolved (std::__sce_v2::locale, cout, facet ids and others).

What happens

  1. Init finishes and the title logs Starting main loop 25 to 40 s in, then ResourcePool::GatherResourceFileInfo() (30 to 50 s; the files are on an NTFS-3G USB drive).
  2. The title reads 9010 files through APR in every run, always ending with ui/textures/gallery/_ps5/gallery_highlightglow.ctxr. It bakes a character face texture (the dumped 2048x2048 target holds a face skin). After that it reads nothing more.
  3. Each frame has about 8 full-screen draws over an empty G-buffer, plus three skipped draws: depth-only without a pixel shader, color format 0 on slot 0, and missing register 0x1b3. There are no other draws. Every APS5_DUMP_FRAMES frame is all zero. With APS5_NO_RESIDENT_TARGETS=1 APS5_DUMP_TARGETS=2, 21 of the 22 dumped renders (11 targets) have RGB 0; the one exception is the face bake.
  4. Per frame the title polls scePadReadState, sceNetCtlCheckCallback, sceNpCheckCallback, scePlayGoGetLocus (24 chunks, returns 0), sceSaveDataDialogGetStatus (NONE), sceSystemServiceGetStatus (0), sceUserServiceGetEvent (NO_EVENT) and sceNpGetState (SIGNED_OUT). AJM batches run steadily. I counted calls with bpftrace uprobes on the exported functions.

Ruled out

Each item below is one or more full runs with no change in the result:

  • Input: Enter and Esc (Cross and Options) on the window.
  • Path case: no failed opens or stats under app0 from boot, only the optional packagecmdlineargs.txt.
  • APS5_EAGER_WRITEBACK=1.
  • APS5_NO_DISPATCH_CACHE=1 APS5_NO_DATA_HITS=1 APS5_NO_DISPATCH_RECIPE=1 APS5_NO_DRAW_RECIPE=1 with APS5_HOST_IMPORT_MIB=16384.
  • APS5_NO_WRITE_WATCH=1 and APS5_WRITE_WATCH_IMPORTS=unwatch: both fill the 16 GB of VRAM before the plateau, so they could not be tested.
  • Waiting: 6 minutes at the plateau with no further reads.

The binary has boot state names BootInitWait_A to _D, LogoWait, ProfileSelectBootWait and LoginMessageWait. I have not found which one it is in.

I can run anything you suggest and report back, including traces or dumps you would like to see.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5737774307 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1025). Originally posted by [fisherjoey](https://github.com/fisherjoey) on 2026-10-07T01:18:08Z. --- ### Summary Demon's Souls (PPSA01341 v1.07, US) on Linux boots, finishes loading and runs its main loop at about 7 fps. It never leaves a black screen. It does not open `movies/ps_studios_logo.bk2` or any other `.bk2` file, so it stops somewhere before the first logo. @yumlevi, #5 took PPSA01342 on Windows from the SIE logo to the main menu. Do you remember anything the title needed between "Starting main loop" and the first `ps_studios_logo.bk2` open? A service reply, an event, or an env var you always set? Any hint about the boot step it waits on would help. ### Setup - `main` c1241ad0 + #861 + #864 + #732 + #157, plus the import fix from #1022. Without #861 the title segfaults in init on Linux. - Linux 7.2 (Nobara 44), GCC 16, RTX 5070 Ti, driver 595.91.07. - Relinked with the title's own `libc.prx`. `--skip-sce-module` leaves 41 C++ runtime imports unresolved (`std::__sce_v2::locale`, `cout`, facet ids and others). ### What happens 1. Init finishes and the title logs `Starting main loop` 25 to 40 s in, then `ResourcePool::GatherResourceFileInfo()` (30 to 50 s; the files are on an NTFS-3G USB drive). 2. The title reads 9010 files through APR in every run, always ending with `ui/textures/gallery/_ps5/gallery_highlightglow.ctxr`. It bakes a character face texture (the dumped 2048x2048 target holds a face skin). After that it reads nothing more. 3. Each frame has about 8 full-screen draws over an empty G-buffer, plus three skipped draws: depth-only without a pixel shader, color format 0 on slot 0, and missing register 0x1b3. There are no other draws. Every `APS5_DUMP_FRAMES` frame is all zero. With `APS5_NO_RESIDENT_TARGETS=1 APS5_DUMP_TARGETS=2`, 21 of the 22 dumped renders (11 targets) have RGB 0; the one exception is the face bake. 4. Per frame the title polls `scePadReadState`, `sceNetCtlCheckCallback`, `sceNpCheckCallback`, `scePlayGoGetLocus` (24 chunks, returns 0), `sceSaveDataDialogGetStatus` (NONE), `sceSystemServiceGetStatus` (0), `sceUserServiceGetEvent` (NO_EVENT) and `sceNpGetState` (SIGNED_OUT). AJM batches run steadily. I counted calls with bpftrace uprobes on the exported functions. ### Ruled out Each item below is one or more full runs with no change in the result: - Input: Enter and Esc (Cross and Options) on the window. - Path case: no failed opens or stats under `app0` from boot, only the optional `packagecmdlineargs.txt`. - `APS5_EAGER_WRITEBACK=1`. - `APS5_NO_DISPATCH_CACHE=1 APS5_NO_DATA_HITS=1 APS5_NO_DISPATCH_RECIPE=1 APS5_NO_DRAW_RECIPE=1` with `APS5_HOST_IMPORT_MIB=16384`. - `APS5_NO_WRITE_WATCH=1` and `APS5_WRITE_WATCH_IMPORTS=unwatch`: both fill the 16 GB of VRAM before the plateau, so they could not be tested. - Waiting: 6 minutes at the plateau with no further reads. The binary has boot state names `BootInitWait_A` to `_D`, `LogoWait`, `ProfileSelectBootWait` and `LoginMessageWait`. I have not found which one it is in. I can run anything you suggest and report back, including traces or dumps you would like to see. AI-assisted: yes.
fisherjoey commented 2026-10-07 04:24:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by fisherjoey on 2026-10-07T04:24:08Z.


Found it. The black screen is a case-sensitivity problem, not a GPU or service issue.

The package ships app0/PackageCmdLineArgs.txt, which contains one line:

+cp11_callHomeLockDownEnabled=false

The engine opens it as /app0/packagecmdlineargs.txt. On Windows and on the console the lookup ignores case. On Linux, ResolvePath maps it to a path that does not exist, sceKernelOpen returns 0x80020002, and the setting is never applied. With call-home lockdown still on, the boot state machine stays in its first state (BP_BootInit) and waits every frame for a Bluepoint tools connection ("Waiting for GameConnection..."). Nothing after it is created, so no front end and no SIE logo.

With a lowercase symlink to the file in the run directory, and no other change, the unmodified title reads the setting, shows the SIE logo and plays movies/ps_studios_logo.bk2.

So none of the switches in my first post were needed. Opened #1047 for case-insensitive path lookup on Linux, which also covers the mixed-case movie paths the front end requests later (for example $\Movies\Main_Menu.bk2).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6030891683 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1025#issuecomment-6030891683). Originally posted by [fisherjoey](https://github.com/fisherjoey) on 2026-10-07T04:24:08Z. --- Found it. The black screen is a case-sensitivity problem, not a GPU or service issue. The package ships `app0/PackageCmdLineArgs.txt`, which contains one line: ``` +cp11_callHomeLockDownEnabled=false ``` The engine opens it as `/app0/packagecmdlineargs.txt`. On Windows and on the console the lookup ignores case. On Linux, `ResolvePath` maps it to a path that does not exist, `sceKernelOpen` returns `0x80020002`, and the setting is never applied. With call-home lockdown still on, the boot state machine stays in its first state (`BP_BootInit`) and waits every frame for a Bluepoint tools connection ("Waiting for GameConnection..."). Nothing after it is created, so no front end and no SIE logo. With a lowercase symlink to the file in the run directory, and no other change, the unmodified title reads the setting, shows the SIE logo and plays `movies/ps_studios_logo.bk2`. So none of the switches in my first post were needed. Opened #1047 for case-insensitive path lookup on Linux, which also covers the mixed-case movie paths the front end requests later (for example `$\Movies\Main_Menu.bk2`).
oneandonlydean commented 2026-10-08 08:26:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T08:26:18Z.


Closing in favour of #1047: the black screen is the case-sensitive open of packagecmdlineargs.txt, and #1079 fixes it. If the title still stops before the logo with #1079 in, please comment here and it can be reopened.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6055870322 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1025#issuecomment-6055870322). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-08T08:26:18Z. --- Closing in favour of #1047: the black screen is the case-sensitive open of `packagecmdlineargs.txt`, and #1079 fixes it. If the title still stops before the logo with #1079 in, please comment here and it can be reopened.
Sign in to join this conversation.
No labels
No milestone
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.

Reference
boykopovar/AnyPS5#1025
No description provided.