DualSense waveform haptics #
Rubylight docs › Controllers · Controller settings · USB forwarding
Rubylight can expose a composite DualSense controller on the Windows host, including its USB audio endpoint. Games write their native haptic audio to that endpoint; Rubylight forwards the two actuator channels using Nonary's Moonlight PCM extension. Ordinary rumble, adaptive triggers, lightbar, motion, touchpad and battery reports remain available.
Controller speaker and headset audio, microphone input and controller preparation need a matching client such as Nightjar (below). A client that only implements Nonary's waveform extension still receives haptics.
Setup #
- In the Windows installer, select Install USB audio and haptics support on the Steam Deck and DualSense USB audio and haptics page. Setup bundles the signed usbip-win2 0.9.8.1 installer; it is optional and off by default. Setup remembers your choice for updates and reuses an existing shared USB/IP installation. Installing it can reconnect USB devices and require a Windows restart; setup never restarts Windows automatically.
- Use a client that implements Nonary's PCM haptics extension. For Nightjar, connect a DualSense or DualSense Edge by USB and enable USB DualSense driver and USB DualSense audio and haptics under Settings → Controls → USB before reconnecting.
- Leave All settings → Sound & controls → Controllers → Controller type on Automatic, or choose DualSense with waveform haptics (USB/IP). The same choice is available in an app's controller override.
- With Nightjar, controllers that are ready when the connection starts are attached before Rubylight launches the game. With other clients, connect to Desktop first and wait for the controller/audio device before starting the game. Disable host-side Steam Input for games that need native DualSense effects. For Steam gyro aiming and radial menus, enable Steam Input and configure those in the game’s controller layout; Rubylight forwards the controller motion and touchpad input.
Automatic selects the composite controller only when the chosen profile is DualSense and the client controller advertises waveform playback. If USB/IP is unavailable or fails to attach, Automatic keeps the VHF controller and shows a warning; native waveform haptics are unavailable in that fallback. The explicit USB/IP choice requires usbip-win2 and reports an error if it cannot attach; it works with any client, and its Sony USB identity is why a game that reads controller names may need it even when the client has no waveform haptics.
The host exposes Sony USB identity 054c:0ce6 with HID and audio interfaces in the same device. Rubylight does not change the Windows default audio device. If Windows selects the newly attached controller, switch game audio back to your normal output: the DualSense endpoint is for games' dedicated haptic output.
Haptics strength #
All settings → Sound & controls › Controllers → DualSense haptics strength (dualsense_haptics_gain, 0 to 4 times, 1 by default) scales what a game sends to the two actuators: 0.5 is half as strong, 2 twice as strong, and above 1 loud effects clip at full scale. Ordinary rumble, the lightbar, adaptive triggers and the controller speaker and headset are not scaled. A device or an app can set its own under Devices or Games; the value applies from the next connection, and Vibration (forward_rumble) turns waveform haptics off entirely. The game's own volume still decides how strong its haptics are; this multiplies that result.
Reconnects #
A stream disconnect releases held controls and clears buffered audio while retaining virtual controller identities for the same paired client and stream role. Reconnects reuse compatible controllers and their audio endpoints. Devices expire only when no game is running and they have been without a transport for two minutes. A physical controller removal during a stream still detaches that controller. Changing the controller profile or capabilities can recreate it. Nightjar can automatically resume the same running game after eligible interruptions, with bounded retries and manual reconnect after recovery stops; see its recovery policy.
During an active connection, the host keeps the latest controller audio settings through slow USB attachment and temporary input release. Disconnect or controller removal clears that transport's audio state and buffered samples; reconnects apply fresh client state.
Controller speaker, headset and microphone #
With a matching client such as Nightjar, the composite controller also carries the controller's speaker and headset audio and its microphone, alongside waveform haptics. These additions are separate from the Vibepollo waveform extension: a client that implements only that extension still receives haptics, with a silent virtual microphone.
-
Headset and speaker. Plugging a headset into the physical controller routes stream sound there, including a stereo mix of surround streams; unplugging it restores Android's usual output. With several controllers, the lowest numbered attached headset receives normal stream sound.
-
Microphone. It requires the paired device's Controllers permission, the host's Use the device microphone setting, and Android's microphone setting and recording permission. Select the virtual DualSense microphone in the game or voice application. The stream mute control and the DualSense mute button are synchronized; Android's global microphone mute and host mute commands also stop capture. Nightjar keeps the stream's mute state across reconnects and lock/resume.
-
Readiness and fallback. The host acknowledges controller microphone support only after its USB audio endpoint is ready, and Android switches from its ordinary microphone only after that acknowledgement and a successful USB capture start. The client refreshes controller status once per second, so a successful attachment is acknowledged on the next refresh. During attachment, or when Automatic falls back to VHF, the ordinary microphone route remains available under the same permission and mute controls. Disconnecting a host-muted controller keeps the fallback muted until you unmute it in Nightjar's Control Center. Normal stream sound to a connected headset stays available throughout.
-
Game-only audio. With Game-only audio, dedicated USB speaker PCM is suppressed because the virtual endpoint cannot identify which application wrote it. Normal process-captured game sound still reaches a connected controller headset. Disabled stream audio and muted Remote Monitor sessions also suppress this speaker path. Actuator haptics and microphone permissions are independent of it.
-
Clients that speak Nonary's speaker format. A client such as Nonary's Moonlight that asks for speaker PCM (connection feature 0x08) and binds a PlayStation controller before its arrival (capability 0x4000 with the 20-byte input packet 0x55000009) gets that controller's speaker sound as message 0x5602 instead, with the same Game-only audio and Remote Monitor rules. Such a controller gets the virtual DualSense even without capability 0x8000; it has no headset routing or microphone. A controller takes one of the two speaker formats, never both, and a Steam Controller's capability 0x4000 keeps its own meaning.
See the Android audio and fallback guide for client setup and limits.
Haptics from game audio #
Most games send a DualSense rumble at best and often nothing. With All settings → Sound & controls → Controllers → Haptics from game audio (audio_haptics, off by default) the host makes waveform haptics from the stream's own sound for each client DualSense that has waveform haptics but gets none from the game:
- The bass below 150 Hz drives the left and right actuators from the left and right channels; in 5.1 and 7.1 the LFE drives both, and the rear and side channels add to their side.
- Sharp transients such as shots and impacts add a short 100 Hz thump on their side, as strong as the transient, even when they carry no bass.
- Audio haptics strength (
audio_haptics_strength, 0 to 200 %, default 100) scales the result. Audio haptics response (audio_haptics_curve) is Linear (the default), Soft (lifts quiet bass) or Punchy (keeps only big hits). Audio haptics noise gate (audio_haptics_gate, -80 to -10 dBFS, default -50) keeps quieter bass off the actuators. All four apply mid-stream when saved, globally or in an app's overrides; a per-device override applies from the client's next stream. - It stops the moment the game sends that controller its own waveform haptics, rumble or trigger rumble, and resumes a minute after the game's last. Their 0x5601 sequence numbers continue from each other, so the client never discards the game's frames.
- On Nightjar the hand-over is not instant on the controller: up to 20 ms of generated samples already queued still play, and the client's haptics queue stays in waveform mode for 100 ms after the last audible frame, so a game's rumble that follows generated haptics can start up to that late.
- The analysis runs on the control thread from a copy of the audio already sent; the audio path only copies a packet into a lock-free ring while a controller wants it. Audio gains no latency, and silent stretches send no haptics packets.
- It needs what waveform forwarding needs from the client (connection feature 0x04, capability 0x8000, encrypted control with channel 8), with Vibration on and the client's haptics toggle on. USB/IP is not needed: the frames do not pass through the virtual controller, so any controller profile works.
- A value outside these ranges in a hand-edited configuration turns the feature off for the stream with a warning on the stream card.
Installer and portable packages #
Quiet setup accepts --usbip-driver to select the component or --no-usbip-driver to skip it. Without either flag, setup and in-app updates keep the previously saved choice; a new installation leaves it off. Skipping the component does not remove an installed driver. If the shared USB/IP installation is incomplete, setup reports that it needs a restart or separate repair and leaves it unchanged.
The portable ZIP also carries the original installer at drivers/usbip/USBip-0.9.8.1-x64.exe; extracting the ZIP or running the portable host does not install it. Run it as administrator when you are ready. The host finds USBip through its registered install folder, the USBip folder under Program Files, or PATH.
USBip is shared with other applications. Rubylight uninstall, including --remove-drivers, leaves it installed. Remove USBip separately in Windows Settings if you no longer need it.
Compatibility #
- Both connection feature 0x04 and controller capability 0x8000 are required before waveform forwarding.
- PCM travels only over encrypted control, on ENet channel 8, as unreliable packets with a per-controller sequence. Clients without that channel or either capability receive ordinary feedback only.
- Packet type 0x5601 contains a 12-byte little-endian header: version 1, format 1, controller index, sequence, frame count and zero reserved bytes. Each full packet contains 240 stereo S16LE frames at 48 kHz (5 ms).
- USB audio channels 3–4 remain dedicated to actuator PCM. With controller audio negotiated, channels 1–2 travel separately as speaker/headset PCM. Separate queues retain at most 20 ms, drop stale samples and never evict reliable rumble, light or trigger feedback.
- The host vibration setting and the client's haptics toggle also apply to waveform packets.
- An output report with no flags and both motors at zero, as Steam Input sends to end Identify Controller and its other rumble, stops the controller's vibration.
The reference implementation is Vibepollo 8b3ea1c4, used by nightly 2.0.1-daily.d20261012.2. USB report and calibration data come from libvirtualgamepad 9edbce11; composite descriptor credits and licenses are retained in the source and third-party notices.