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

Function key exceptions (control, option, command) in the macOS version of Sunshine #2911

Open
2 tasks done
dreamfly-jiefa opened this issue Jul 25, 2024 · 2 comments
Open
2 tasks done
Labels
input:keyboard Keyboard issue

Comments

@dreamfly-jiefa
Copy link

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

The controlled system is macOS
The main control system is Windows or Android
Problem phenomenon:

  1. 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.
  2. 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!
@ReenigneArcher ReenigneArcher added the input:keyboard Keyboard issue label Jul 25, 2024
@Hazer
Copy link
Member

Hazer commented Aug 6, 2024

I'm having some keyboard issues myself, but what are your keyboard layouts @dreamfly-jiefa ? So I can better understand your issue.

@dreamfly-jiefa
Copy link
Author

My keyboard layout is a regular QWERTY

My keyboard layout is a regular QWERTY @Hazer
Xnip2024-08-06_14-46-46

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

No branches or pull requests

3 participants