Sunshine
Sunshine copied to clipboard
Function key exceptions (control, option, command) in the macOS version of Sunshine
Is there an existing issue for this?
- [X] I have searched the existing issues
Is your issue described in the documentation?
- [X] 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
The controlled system is macOS The main control system is Windows or Android Problem phenomenon:
- When remotely controlling macOS through Moonlight, pressing the control key, option key, and command key on the keyboard will cause the macOS to fail to recognize it properly.
- When the keyboard letter keys (such as A \ B \ C) are pressed and then the command key is pressed, the previously pressed letter key becomes a long press and the pressed command key cannot be recognized. You can go to this website for keyboard key testing( https://keyboard.bmcx.com/ )
Expected Behavior
The macOS version of Sunshine can recognize function keys (such as control key, option key, command key) normally
Additional Context
No response
Host Operating System
macOS
Operating System Version
macOS 12.7
Architecture
64 bit
Sunshine commit or version
v2024.724.84421
Package
macOS - Homebrew
GPU Type
AMD
GPU Model
M1
GPU Driver/Mesa Version
M1
Capture Method
AVCaptureScreen (macOS)
Config
{
"env": {
"PATH": "$(PATH):$(HOME)/.local/bin"
},
"apps": [
{
"name": "Desktop",
"image-path": "desktop.png"
},
{
"name": "Steam Big Picture",
"detached": [
"open steam://open/bigpicture"
],
"image-path": "steam.png"
}
]
}
Apps
{
"env": {
"PATH": "$(PATH):$(HOME)/.local/bin"
},
"apps": [
{
"name": "Desktop",
"image-path": "desktop.png"
},
{
"name": "Steam Big Picture",
"detached": [
"open steam://open/bigpicture"
],
"image-path": "steam.png"
}
]
}
Relevant log output
[2024:07:25:15:50:21]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:07:25:15:50:21]: Info: Trying encoder [videotoolbox]
[2024:07:25:15:50:21]: Info: Detecting displays
[2024:07:25:15:50:21]: Info: Detected display: Built-in Retina Display (id: 1) connected: true
[2024:07:25:15:50:21]: Info: Configuring selected display (1) to stream
[2024:07:25:15:50:21]: Info: SDR color coding [Rec. 601]
[2024:07:25:15:50:21]: Info: Color depth: 8-bit
[2024:07:25:15:50:21]: Info: Color range: [JPEG]
[2024:07:25:15:50:22]: Warning: [h264_videotoolbox @ 0x103433ee0] PrioritizeEncodingSpeedOverQuality property is not supported on this device. Ignoring.
[2024:07:25:15:50:22]: Info: [h264_videotoolbox @ 0x103433ee0] This device does not support the AllowOpenGop option. Value ignored.
[2024:07:25:15:50:22]: Info: [h264_videotoolbox @ 0x103433ee0] This device does not support the qmin option. Value ignored.
[2024:07:25:15:50:22]: Info: SDR color coding [Rec. 601]
[2024:07:25:15:50:22]: Info: Color depth: 8-bit
[2024:07:25:15:50:22]: Info: Color range: [JPEG]
[2024:07:25:15:50:22]: Info: [hevc_videotoolbox @ 0x157f60d60] This device does not support the qmin option. Value ignored.
[2024:07:25:15:50:22]: Info: [hevc_videotoolbox @ 0x157f60d60] This device does not support the qmax option. Value ignored.
[2024:07:25:15:50:22]: Info: SDR color coding [Rec. 601]
[2024:07:25:15:50:22]: Info: Color depth: 8-bit
[2024:07:25:15:50:22]: Info: Color range: [JPEG]
[2024:07:25:15:50:22]: Error: Couldn't open [av1_videotoolbox]
[2024:07:25:15:50:22]: Info: Detecting displays
[2024:07:25:15:50:22]: Info: Detected display: Built-in Retina Display (id: 1) connected: true
[2024:07:25:15:50:22]: Info: Configuring selected display (1) to stream
[2024:07:25:15:50:22]: Info: SDR color coding [Rec. 709]
[2024:07:25:15:50:22]: Info: Color depth: 10-bit
[2024:07:25:15:50:22]: Info: Color range: [JPEG]
[2024:07:25:15:50:22]: Info: [hevc_videotoolbox @ 0x107e2c8e0] This device does not support the qmin option. Value ignored.
[2024:07:25:15:50:22]: Info: [hevc_videotoolbox @ 0x107e2c8e0] This device does not support the qmax option. Value ignored.
[2024:07:25:15:50:22]: Info:
[2024:07:25:15:50:22]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:07:25:15:50:22]: Info:
[2024:07:25:15:50:22]: Info: Found H.264 encoder: h264_videotoolbox [videotoolbox]
[2024:07:25:15:50:22]: Info: Found HEVC encoder: hevc_videotoolbox [videotoolbox]
[2024:07:25:15:50:22]: Info: 14.112.67.17: Ping Timeout
[2024:07:25:15:50:22]: Info: CLIENT CONNECTED
[2024:07:25:15:50:22]: Info: Detecting displays
[2024:07:25:15:50:22]: Info: Detected display: Built-in Retina Display (id: 1) connected: true
[2024:07:25:15:50:22]: Info: Configuring selected display (1) to stream
[2024:07:25:15:50:22]: Info: SDR color coding [Rec. 709]
[2024:07:25:15:50:22]: Info: Color depth: 8-bit
[2024:07:25:15:50:22]: Info: Color range: [MPEG]
[2024:07:25:15:50:22]: Info: [hevc_videotoolbox @ 0x159938d40] This device does not support the qmin option. Value ignored.
[2024:07:25:15:50:22]: Info: [hevc_videotoolbox @ 0x159938d40] This device does not support the qmax option. Value ignored.
[2024:07:25:15:50:22]: Warning: audio_control_t::set_sink() unimplemented: BlackHole 64ch
[2024:07:25:15:50:23]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY
[2024:07:25:15:50:24]: Error: Encoder did not produce IDR frame when requested!
[2024:07:25:15:50:24]: Error: Encoder did not produce IDR frame when requested!
[2024:07:25:15:50:25]: Error: Encoder did not produce IDR frame when requested!
[2024:07:25:15:50:25]: Error: Encoder did not produce IDR frame when requested!