Skip to content

feat: prepare the round 10 build - #27

Merged
enricobuehler merged 14 commits into
mainfrom
fix/console-round-9
Nov 25, 2026
Merged

enricobuehler merged 14 commits into
mainfrom
fix/console-round-9

Conversation

@enricobuehler

Copy link
Copy Markdown
Member

Round 9 proved the display's HDR bit (0x181 with the console's HDR On, 0x101 Off, at an 8-byte record). Its kernel log also showed how the console picks the output's mode, which three open requests hang on. This is the round 10 build: one latency fix, the features the client lacked, and the probe checks that decide the rest.

What changes for a player

  • A picture shows when it arrives. The stream loop flipped every vblank and Mesa's WSI hands out its third image while a flip still waits, so by reading the WSI a picture showed about two refreshes after its decode. The presenter holds one image back and the loop presents on arrival.
  • The pad reaches the host whole: touchpad contacts and motion as rich input, and haptics on the pad's coils (the host's 5 ms Opus lane, decoded by core's pad_mix, played on the vibration port).
  • The quick menu's rows act: controller mouse (core's), the console's keyboard over the stream, Guide, Quick Access, stream mute, scroll direction.
  • 5.1 and 7.1 on AudioOut's eight-channel port.

Probe checks 24 to 27

Check Asks
24 output-mode Each colorimetry, 59.94 and 119.88 Hz through the mode record, the presets the output takes, then unpeg and paced flips
25 names A host name through std and through libSceNet's resolver
26 system-status The head of the system's status record
27 haptics A tone on the left coil, the right, then rumble

Checks 24 to 26 look their calls up by name at run time: a missing export is a code, not a null call.

What nothing has proven

No console has run any of this. Taken on trust: scePad's motion units and axes and its 1920x1080 touch surface (the PS4's interface), the eight-channel order (shadPS4), the vibration port and the pad's two modes (another title's recorded run, duaLib). frames in a test run now counts presents, and missed_vblanks a picture that waited more than 1.5 periods.

Checked here: rustfmt, clippy -D warnings and 113 tests in a Linux container, the menu scenario on lavapipe, and the console-only bindings under clippy in a scratch copy. The console lane below is the first build of the console-only platform and probe code.

Not in

The pad's speaker, a name resolver and system-event polling (checks 25 and 26 first), a variable refresh and an SDR output for an SDR stream (check 24 first, then the WSI).

The stream loop flipped every vblank, and Mesa's WSI hands out its third
image while a flip still waits. A picture so showed about two refreshes
after its decode. The presenter now holds one image back and takes the
picture after the acquire, and the loop presents when a picture arrives.

A flip per picture is also what a variable refresh needs once the output
is unpegged.

Read from the WSI at the Mesa pin. No console has run it.
Two requests wait on what VideoOut answers: an SDR output for an SDR
stream while the console's HDR is on, and a variable refresh. Check 24
asks the output for each colorimetry, then unpegs the refresh and paces
flips at rates a fixed 119.88 Hz can't show evenly. Firmware's own
kernel log lines beside each step are the result.

The SDK's stub lacks the peg calls, so the check looks its four
functions up by name: a missing export is a code, not a null call.
The capability word follows the console's HDR setting at an 8-byte
record. The kernel log adds two facts the next round builds on: firmware
picks the output's colour when VideoOut opens, and the refresh runs VRR
pegged at 120 Hz.
A pad's touchpad contacts and its gyro never left the console, so a
game's motion aiming and the host pad's touchpad had nothing to read.
Each tick now diffs them onto the rich-input plane: fingers keep a wire
slot by the pad's own contact id, and the dial or the way out lifts
every finger and stops the gyro.

scePad's units and axes are sourced, not proven: rad/s and g, +y up,
a 1920 by 1080 touch surface.
The dial listed controller mouse, the keyboard, Guide, Quick Access,
stream mute and scroll direction, and each did nothing here. Core
already turns a flagged pad into a mouse, so the dial only has to ask.
The keyboard is the console's own tray over the stream: its keys go to
the host as text, X deletes and Done sends Return.

Controller mouse and a tap act on the pad that opened the dial.
The settings offer 5.1 and 7.1, and this client reset either to stereo.
AudioOut's eight-channel port plays both: the wire's order is FL FR FC
LFE BL BR SL SR and the port's trades the last two pairs, so 7.1 swaps
them and a 5.1 stream's rear pair lands on the port's surround pair.

The port's order is sourced from an emulator, not proven on a console.
A typed host name and the home menu's overlay both wait on console
calls nothing has run here. Check 25 resolves a name through std and
through libSceNet's resolver, and check 26 reads the system's status
record. Each is looked up by name at run time, so an export this
firmware lacks is a code and the probe goes on.
The guides still named surround and a keyboard as missing. The notes
gain what the new code takes on trust from the PS4's interfaces: the
pad's motion units and touch surface, the eight-channel order, the
resolver and the status record.
A pad's state carries motion only while its sensor is on, and nothing
says the console leaves it on for a title. The pad's open now asks for
it by name, so a firmware without the call answers with a code. A state
whose accelerometer reads zero on every axis sends no motion: the
wire's zero means free fall.
A display that shows 3840x2160 only at 60 Hz gets 1920x1080 from this
title: it declares 120 Hz, and the console takes the refresh over the
resolution. Keeping such a display at 3840x2160 needs a request for
59.94 Hz, which nothing here knows yet. Check 24 now lists the presets
the output takes and asks for both refresh rates through the mode
record. The install guide names the console's own switch meanwhile.
The coils' port and the pad's haptics mode are another title's finding,
not this one's. Check 27 opens the vibration port for the first
signed-in user, plays a tone on the left coil, then the right, and
ends on the motors' rumble. Which side buzzed first is the answer the
log cannot give.
A game that drives a DualSense's voice coils reached this console as
nothing: the session never asked the host for the pad's audio. It does
now. Core decodes the 5 ms Opus frames and conceals what the wire lost,
and the coils' pair plays on the pad's own vibration port.

While frames arrive the pad is in haptics mode and its rumble waits.
Half a second after the last one the motors take up where the host
left them.

No setting: the haptics row is not offered on this console, and every
pad here has coils.
The vibration port and the pad's two modes come from another title's
recorded run and from duaLib, which the notes now say.
A stream that ended while haptics played left the pad in haptics mode,
where the motors' rumble does nothing. The next stream then started
with a pad that could not rumble until haptics came and went once.
@enricobuehler
enricobuehler merged commit 6db6f48 into main Nov 25, 2026
2 checks passed
@enricobuehler
enricobuehler deleted the fix/console-round-9 branch November 25, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant