Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input controls not working in k8s #3446

Open
2 tasks done
eball opened this issue Dec 12, 2024 · 1 comment
Open
2 tasks done

Input controls not working in k8s #3446

eball opened this issue Dec 12, 2024 · 1 comment
Labels
input:controller Gamepad issue input:keyboard Keyboard issue input:mouse Mouse issue

Comments

@eball
Copy link

eball commented Dec 12, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

I tried to deploy the sunshine server in k8s, and connected with Moonlight-qt in MacOS via the same internal network. If I enabled the option hostNetwork: true, it worked fine. Unfortunately, if I disabled the option and used the nginx ingress to proxy it including all TCP and UDP ports, the video stream was still worked, but the input control stream seemed not working.

I tried to attach into the sunshine server container and I found the control stream data packet was received, and also the mouse virtual input device /dev/input/event13 received the event. But on the moonlight screen, the mouse pointer was not moved.

Expected Behavior

No response

Additional Context

No response

Host Operating System

Docker

Operating System Version

Debian bookworm

Architecture

amd64/x86_64

Sunshine commit or version

v2024.903.123219-debian-bookworm

Package

Linux - Docker

GPU Type

NVIDIA

GPU Model

RTX 4060 Ti

GPU Driver/Mesa Version

550

Capture Method

None

Config

No response

Apps

No response

Relevant log output

[2024-12-12 06:37:30.978]: Debug: Initialized new control stream session by connect data match [v2]
[2024-12-12 06:37:30.978]: Debug: Control local address [10.233.98.101]
[2024-12-12 06:37:30.978]: Debug: Control peer address [192.168.50.206:180]
[2024-12-12 06:37:30.978]: Info: CLIENT CONNECTED
[2024-12-12 06:37:30.978]: Debug: type [IDX_REQUEST_IDR_FRAME]
[2024-12-12 06:37:30.982]: Debug: type [IDX_START_B]
[2024-12-12 06:37:30.983]: Debug: RAISE: 192.168.50.206:55245 :: VIDEO
[2024-12-12 06:37:30.983]: Debug: Received ping [v2] from 192.168.50.206:55245 [0100000041384441324430303639373146453237]
[2024-12-12 06:37:30.983]: Debug: Start capturing Video
[2024-12-12 06:37:31.037]: Debug: --begin relative mouse move packet--
deltaX [1]
deltaY [1]
--end relative mouse move packet--
[2024-12-12 06:37:31.049]: Debug: --begin relative mouse move packet--
deltaX [-1]
deltaY [-1]
--end relative mouse move packet--
[2024-12-12 06:37:31.145]: Info: Found [1] outputs
[2024-12-12 06:37:31.146]: Info: Virtual Desktop: 1600x900
[2024-12-12 06:37:31.146]: Info: XrandR: available
[2024-12-12 06:37:31.146]: Info: -- Output --
[2024-12-12 06:37:31.146]: Debug:   ID: 444
[2024-12-12 06:37:31.146]: Debug:   Name: HDMI-0
[2024-12-12 06:37:31.146]: Info:   Resolution: 1280x800
[2024-12-12 06:37:31.146]: Info:   Offset: 160x50
[2024-12-12 06:37:31.168]: Error: Couldn't release NvFBC context from current thread:
[2024-12-12 06:37:31.168]: Info: Screencasting with NvFBC
[2024-12-12 06:37:31.286]: Info: Creating encoder [hevc_nvenc]
[2024-12-12 06:37:31.286]: Info: Color coding: SDR (Rec. 601)
[2024-12-12 06:37:31.286]: Info: Color depth: 8-bit
[2024-12-12 06:37:31.286]: Info: Color range: MPEG
[2024-12-12 06:37:31.287]: Debug: [hevc_nvenc @ 0x7f3e44002900] Loaded Nvenc version 12.1
[2024-12-12 06:37:31.287]: Debug: [hevc_nvenc @ 0x7f3e44002900] Nvenc initialized successfully
[2024-12-12 06:37:31.306]: Debug: Sent HDR mode: false
[2024-12-12 06:37:31.314]: Debug: Minimum frame time set to 100ms, based on min fps factor of 1.
[2024-12-12 06:37:31.316]: Debug: Frame 1: IDR Keyframe (AV_FRAME_FLAG_KEY)
[2024-12-12 06:37:31.374]: Debug: RAISE: 192.168.50.206:46886 :: AUDIO
[2024-12-12 06:37:31.374]: Debug: Received ping [v2] from 192.168.50.206:46886 [0200000041384441324430303639373146453237]
[2024-12-12 06:37:31.374]: Debug: Start capturing Audio
[2024-12-12 06:37:31.375]: Debug: Connecting to pulseaudio
[2024-12-12 06:37:31.378]: Debug: null-sink args: rate=48000 sink_name=sink-sunshine-stereo format=float channels=2 channel_map=front-left,front-right sink_properties=device.description=sink-sunshine-stereo
[2024-12-12 06:37:31.379]: Debug: null-sink args: rate=48000 sink_name=sink-sunshine-surround51 format=float channels=6 channel_map=front-left,front-right,front-center,lfe,rear-left,rear-right sink_properties=devic
e.description=sink-sunshine-surround51
[2024-12-12 06:37:31.379]: Debug: null-sink args: rate=48000 sink_name=sink-sunshine-surround71 format=float channels=8 channel_map=front-left,front-right,front-center,lfe,rear-left,rear-right,side-left,side-right
sink_properties=device.description=sink-sunshine-surround71
[2024-12-12 06:37:31.380]: Info: Setting default sink to: [sink-sunshine-stereo]
[2024-12-12 06:37:31.380]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
[2024-12-12 06:37:31.390]: Info: Opus initialized: 48 kHz, 2 channels, 96 kbps (total), LOWDELAY
[2024-12-12 06:37:31.403]: Debug: type [IDX_REQUEST_IDR_FRAME]
[2024-12-12 06:37:31.409]: Debug: type [Unknown] { 5502 }
---data---
01001400000C0003000E0000000C000B0001000000
---end data---
[2024-12-12 06:37:31.415]: Debug: Frame 5: IDR Keyframe (AV_FRAME_FLAG_KEY)
[2024-12-12 06:37:31.619]: Debug: type [IDX_REQUEST_IDR_FRAME]
[2024-12-12 06:37:31.622]: Debug: type [Unknown] { 5502 }
---data---
010014000003000200080000004F004E0007000000
---end data---
[2024-12-12 06:37:31.622]: Debug: Frame 11: IDR Keyframe (AV_FRAME_FLAG_KEY)
[2024-12-12 06:37:31.734]: Debug: type [Unknown] { 5502 }
---data---
010014000005000200070000006D006C000A000000
---end data---
[2024-12-12 06:37:31.815]: Debug: type [IDX_REQUEST_IDR_FRAME]
[2024-12-12 06:37:31.831]: Debug: Frame 17: IDR Keyframe (AV_FRAME_FLAG_KEY)
[2024-12-12 06:37:31.838]: Debug: type [Unknown] { 5502 }
---data---
0100140000080003000E000000790078000B000000
---end data---
[2024-12-12 06:37:31.838]: Debug: type [Unknown] { 5502 }
---data---
01001400000100020009000000830082000C000000
---end data---
[2024-12-12 06:37:31.838]: Debug: type [Unknown] { 5502 }
---data---
010014000002000200080000008F008E000D000000
---end data---
[2024-12-12 06:37:32.030]: Debug: type [IDX_REQUEST_IDR_FRAME]
[2024-12-12 06:37:32.030]: Debug: type [IDX_REQUEST_IDR_FRAME]
[2024-12-12 06:37:32.039]: Debug: Frame 23: IDR Keyframe (AV_FRAME_FLAG_KEY)
[2024-12-12 06:37:32.158]: Debug: type [Unknown] { 5502 }
---data---
0100140000050003000F000000F800F70017000000
---end data---
[2024-12-12 06:37:32.158]: Debug: type [Unknown] { 5502 }
---data---
010014000002000200090000000701060118000000
---end data---
[2024-12-12 06:37:32.185]: Debug: type [IDX_REQUEST_IDR_FRAME]
[2024-12-12 06:37:32.206]: Debug: Frame 28: IDR Keyframe (AV_FRAME_FLAG_KEY)
[2024-12-12 06:37:32.290]: Debug: type [IDX_REQUEST_IDR_FRAME]
[2024-12-12 06:37:32.331]: Debug: Frame 32: IDR Keyframe (AV_FRAME_FLAG_KEY)
[2024-12-12 06:37:32.377]: Debug: type [Unknown] { 5502 }
---data---
01001400000E0003000F0000003A0139011C000000
---end data---
[2024-12-12 06:37:32.905]: Debug: --begin relative mouse move packet--
deltaX [0]
deltaY [-3]
--end relative mouse move packet--
[2024-12-12 06:37:32.911]: Debug: --begin relative mouse move packet--
deltaX [4]
deltaY [-6]
--end relative mouse move packet--
[2024-12-12 06:37:32.919]: Debug: --begin relative mouse move packet--
deltaX [6]
deltaY [-7]
--end relative mouse move packet--
[2024-12-12 06:37:32.932]: Debug: --begin relative mouse move packet--
deltaX [8]
deltaY [-9]
--end relative mouse move packet--
[2024-12-12 06:37:32.947]: Debug: --begin relative mouse move packet--
deltaX [23]
deltaY [-23]
--end relative mouse move packet--
[2024-12-12 06:37:32.951]: Debug: --begin relative mouse move packet--
deltaX [14]
deltaY [-13]
--end relative mouse move packet--
[2024-12-12 06:37:32.957]: Debug: --begin relative mouse move packet--
deltaX [15]
deltaY [-12]
--end relative mouse move packet--
@ReenigneArcher ReenigneArcher added input:mouse Mouse issue input:keyboard Keyboard issue input:controller Gamepad issue labels Dec 12, 2024
@DistantThunder
Copy link

Base NGINX ingress can't proxy TCP unless you make a specific config:

Also you should upload your YAMLs for debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
input:controller Gamepad issue input:keyboard Keyboard issue input:mouse Mouse issue
Projects
None yet
Development

No branches or pull requests

3 participants