Repository navigation
fix: stream client's controller input no longer wakes the TV - #18
Merged
Merged
Conversation
Streaming hosts inject the remote client's gamepad as a virtual device. Punktfunk emulates it as a Valve Steam Deck / Steam Controller 2 over UHID or usbip, so the hidraw monitor (matching vendor 28DE) took it for the couch controller and, with steam_controller.wake, powered the TV on mid-stream; its evdev events also counted as key presses. Classify nodes by sysfs origin (/sys/devices/virtual/... or vhci_hcd = injected): virtual Valve hidraw nodes are skipped, virtual evdev input is activity but never a wake (agent + daemon WakeOnInput). The daemon also suspends wake-on-input while a remote stream is connected. hidraw-scan marks virtual pads; docs add Punktfunk session hooks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
While streaming (Punktfunk), pressing a button on the client's controller powered the TV on, as if the controller were plugged into the box.
Streaming hosts inject the remote client's gamepad as a virtual device. Punktfunk emulates it as a Valve Steam Deck / Steam Controller 2 over UHID or usbip, carrying the same
28DEvendor ID as a real Steam Controller. The hidraw monitor matched it as the couch controller and, withsteam_controller.wake(default on), woke the TV mid-stream. Its evdev events also counted as key presses. Nothing told the daemon a stream was running either: detection only covered Sunshine's log.Fix
inputdev.is_synthetic()classifies a node by its sysfs origin:/sys/devices/virtual/…(uinput, UHID) orvhci_hcd(usbip) means injected.HidrawMonitorskips virtual Valve nodes entirely.InputMonitortags virtual evdev nodes. The agent reports their input as activity withkey: false, and the daemon's ownWakeOnInputignores them.streams.streamingis set.lgtvc setup hidraw-scanmarks virtual pads.docs/external-api.mddocuments Punktfunksession.started/session.endedhooks; CHANGELOG updated.Verification
steamos-manager's uinput device is flagged virtual.🤖 Generated with Claude Code