docs(libSceVideoOut): record what a PS5 payload process returned for Delete*Event and GetResolutionStatus #17696
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17696"
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 xXPBSXx on 2026-11-09T10:27:57Z.
What
docs/dev/debt/libSceVideoOut.md:18(Delete*Event on a port that is not open) says:docs/dev/debt/libSceVideoOut.md:28(sceVideoOutGetResolutionStatus) says:A PS5 now answers the first question:
sceVideoOutDeleteFlipEvent,sceVideoOutDeleteVblankEvent,sceVideoOutDeletePreVblankStartEvent,sceVideoOutDeleteOutputModeEventandsceVideoOutDeleteVrrActiveStatusEventeach returned0x8029000Bfor the closed handle of the probe's own port, with a live event queue, which is what AnyPS5 returns (VIDEO_OUT_ERROR_INVALID_HANDLE, checked before the queue). A handle that was never opened is still unmeasured. For the second entry a payload process got the same values as the 13.40 title measurement from a freshly opened main bus: full size and pane 3840 x 2160,refreshRate3,screenSizeInInch60.0f andflags0. Only the two entries change; no code.Tested
Measured on a PS5 with firmware 11.60 (
kernel_get_fw_version0x11600005), from a homebrew payload process (ps5-payload-sdk v0.45, elfldr), on 2026-11-09 at 08:24 UTC (the console clock was about 1 h 41 min ahead), one run with 15 cases:sceVideoOutOpen(0xff, 0, 0, NULL), reads only,sceVideoOutCloseon its own handle, then the five Delete calls with that closed handle and an equeue the probe created. A title process may differ. The probe source and its complete raw output are in the first comment.tools/check_conventions.py --base upstream/mainpasses.Overlap: the 25 other pull requests that changed
docs/dev/debt/libSceVideoOut.md(the earlier check of 05:05 UTC on 2026-11-07, plus all that changed it and were updated since) were checked on 2026-11-09 between 09:55 UTC and 10:07 UTC againstmain5fd1c17032; four of them (#15247, #15452, #15653 and #15779) have been merged. Of the remaining 21, four already conflict withmainwithout this change (#4040 and #14212 in that file, #12863 and #12315 in other files). #14106 (validate open parameters and resolution status outputs, a different author) conflicts in that file only with this change, because it rewrites thesceVideoOutGetResolutionStatusentry that this change also edits; whichever merges second needs a small rebase. The other sixteen merge cleanly with and without this change, among them #16584, the vblank status change of this account.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)AI-assisted (Claude Code).
🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-10T17:49:23Z.
Review: COMMENTED
Read
c19788592bagainstmain.Correctness. Both entries are unchanged on
main(docs/dev/debt/libSceVideoOut.md:18 and :28). The code returns what the new text says the console returned:Event.cpp:deleteVideoOutEvent(line 90) checksHasConfig(handle)before the event queue and returnsVIDEO_OUT_ERROR_INVALID_HANDLE, andVideoOutDriver.cpp:HasConfigreturns false onceclosehas setopened = false/closing = true, so a closed handle with a live queue gives 0x8029000B for all fiveDelete*Eventcalls.Output.cpp:sceVideoOutGetResolutionStatus(lines 283-288) sets full size and pane to the configured size andrefreshRateto the 59.94 Hz code (3), withscreenSizeInInchandflagsleft 0, which the entry already says differs only forscreenSizeInInch. The never-opened-handle gap is correctly kept. The console results are not checkable here. No conflict with #16584 or #17615, which edit other lines of the same file.Not run here; this is from reading the code.
AI-assisted: yes.