feat(libSceSysUtil): send text notifications as firmware 13.42 does #13824
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13824"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by zaryabzip on 2026-10-31T08:20:24Z.
What
sceSysUtilSendSystemNotificationWithText(int32_t type, const char* message)no longer throws. It does what @BunnyFl's firmware 13.42 run of the export shows. That run used an emulator withsceKernelSendNotificationRequeststubbed, not a console.typeat +0xc, and the message at +0x2d, cut to 179 characters (strncpy_s(dst, 0xb4, message, 0xb3)in the firmware). A null message leaves the text empty.sceKernelSendNotificationRequest(0, request, 0xc30, 0)returns.This replaces #9081 by @shanu337, who handed it over. It follows @oneandonlydean's outline there. Because the call sends a real request, it isn't a silent stub.
sceKernelSendNotificationRequestonmainrefused any request whose first dword isn't 0, so it would have refused this one. It now prints kind 5 requests to the host's standard error, as it already did for kind 0. Its other refusals are unchanged. The run shows that firmware 13.42's libkernel only writes the request to the notification device and returns the write's result, so the new libkernel debt entry says those refusals are this library's own. The new SysUtil entry records the run and that what the console shows for eachtypeis unknown. libSceSysUtil goes from 0 to 1 of 24.The new
GuestSysUtilNotification.cppredirects stderr to a file, asGuestFilesystem.cppdoes forsceKernelDebugOutText. It sends"hello"with type 7, a null message with type -1, and a 300-character message. It checks that each returns 0 and that the output is exactly the three texts, the last cut to 179 characters. The export is already declared with these parameters onmain, so the test builds there and aborts at the first call.Tested
Windows 11 (WinLibs MinGW-w64 GCC 15.2.0 UCRT r7, CMake 4.3.1, Ninja 1.13.2) and Ubuntu 24.04 on WSL2 (GCC 13.3.0, CMake 3.28.3, Ninja 1.11.1), both with the head
520a8249a3merged intomaine8c25dd3ba.ctest -R "guest_sys_util_notification|guest_filesystem$": 2 of 2 pass on both hosts, andguest_sys_util_notificationpasses 3 of 3 on--repeat until-fail:3. On Windows the capture works without a skip:_dup2onto fd 2 also redirects the handle libkernel writes to.mainwith only the new test and itsCMakeLists.txtblock, the test builds and then aborts withsceSysUtilSendSystemNotificationWithText not implementedon both hosts (Windows exit 0xc0000409, Linux SIGABRT).libSceSysUtil.prxstill exportsBtgtlzfk9EQ, and now listslibkernel.prxas needed.tools/check_conventions.pypasses.tools/pr_overlap.pyfinds no overlap with mergeable pull requests. 48 that already conflict withmainsharecore/libs/CMakeLists.txtordocs/dev/debt/libkernel.mdand couldn't be compared. No open pull request touches either function.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T08:23:24Z.
Review: APPROVED
Reviewed — looks good
The wrapper follows the recorded firmware 13.42 request layout and returns the existing kernel send result; the host kernel accepts kind 5 and the test checks null, ordinary, and truncated messages.
What I ran
Reviewed head
520a8249a36bab85d3790a28d21459cb1e4c006fagainst PR base/currentmaine8c25dd3baa6e78531d5eee067fec5cbe8af3dcf; the merge preview was clean. Local environment: Linux x86-64, Python 3.11.2; no compiler used. I ran:The precheck’s optional helper scripts were absent from its isolated checkout. I ran the workspace ABI audit directly; the exported function has one existing declaration, one definition, and no symbol finding. The test-quality heuristic warned that the new C++ test might be unregistered; the changed CMake block explicitly builds and registers
guest_sys_util_notification.Results
sceSysUtilSendSystemNotificationWithTextdeclaration/definition found, no findingRaw output from local checks
Negative control
mainwith the new test and CMake blockFindings
Blocking: None found.
Non-blocking: The firmware behavior was observed in an emulator with the kernel send stubbed, not on a physical PS5. The PR records that what the console UI displays for each notification type remains unknown.
Sources
Not verified
I did not compile or run the C++ test, test a physical console, or verify the system UI’s display. The platform runs and baseline controls above are author-reported. The PR head remained
520a8249a36bab85d3790a28d21459cb1e4c006fwhen I submitted this review.