-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
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
When using the "Map Right Alt key to Windows Key" option, the alt key acts as if BOTH win and alt are held down, not just win. In other words, using the alt key on the client triggers hotkeys that are bound to alt+win on the host.
Expected Behavior
"Map Right Alt key to Windows Key" option makes it so pressing the right alt key on the client triggers just the windows key to be pressed on the host, and not win+alt
Additional Context
Host: Sunshine 2025.1210.519 on Linux Xorg via flatpak (from github releases page)
Client: Moonlight 6.1.0 on Linux Xorg via flatpak (from flathub)
Global hotkeys (i.e. the ones that get triggered by win key or win+alt) are managed by sxhkd on host. Window manager is bspwm.
Workaround
I have found that it is possible to work around this bug. Instead of using Sunshine's native ralt-is-win functionality,
it can be implemented by running keyd on the host with the following config file:
[ids]
*
[main]
rightalt = layer(meta)
Host Operating System
Linux
Operating System Version
Alpine Linux 3.22 kernel 6.12.61-0-lts
Architecture
amd64/x86_64
Sunshine commit or version
2025.1210.519
Package
Linux - flathub/flatpak
GPU Type
AMD
GPU Model
AMD Radeon RX Vega
GPU Driver/Mesa Version
25.1.9
Capture Method
X11 (Linux)
Config
key_rightalt_to_key_win = enabledApps
Relevant log output
[2025-12-22 16:47:09.425803] [0x00007f5a2a367000] [info] config: 'key_rightalt_to_key_win' = enabled
[2025-12-22 16:47:09.426]: Info: Sunshine version: 2025.1210.519 commit: eb3afd43df290f51b30f1b8b9bef915f40ca969b
[2025-12-22 16:47:09.426]: Info: Package Publisher: LizardByte
[2025-12-22 16:47:09.426]: Info: Publisher Website: https://app.lizardbyte.dev
[2025-12-22 16:47:09.426]: Info: Get support: https://app.lizardbyte.dev/support
[2025-12-22 16:47:09.426]: Info: config: 'key_rightalt_to_key_win' = enabled
Cannot load libcuda.so.1
[2025-12-22 16:47:09.428]: Error: Couldn't load cuda: -1
[2025-12-22 16:47:09.428]: Error: Failed to gain CAP_SYS_ADMIN
[2025-12-22 16:47:09.428]: Info: /dev/dri/card1 -> amdgpu
[2025-12-22 16:47:09.428]: Error: Failed to gain CAP_SYS_ADMIN
[2025-12-22 16:47:09.428]: Error: Couldn't get handle for DRM Framebuffer [122]: Probably not permitted
[2025-12-22 16:47:09.428]: Error: You must run [sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))] for KMS display capture to work!
If you installed from AppImage or Flatpak, please refer to the official documentation:
https://docs.lizardbyte.dev/projects/sunshine/latest/md_docs_2getting__started.html#linux
[2025-12-22 16:47:09.428]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2025-12-22 16:47:09.428]: Info: Detecting displays
[2025-12-22 16:47:09.458]: Info: Detected display: DP-1 (id: 0)DP-1 connected: true
[2025-12-22 16:47:09.459]: Info: Detected display: DP-2 (id: 1)DP-2 connected: false
[2025-12-22 16:47:09.459]: Info: Detected display: DP-3 (id: 2)DP-3 connected: false
[2025-12-22 16:47:09.459]: Info: Detected display: HDMI-1 (id: 3)HDMI-1 connected: true
[2025-12-22 16:47:09.481]: Warning: Gamepad ds5 is disabled due to No such file or directory
[2025-12-22 16:47:09.481]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-12-22 16:47:09.481]: Info: Trying encoder [nvenc]
[2025-12-22 16:47:09.481]: Info: Screencasting with X11
[2025-12-22 16:47:09.482]: Info: Creating encoder [h264_nvenc]
[2025-12-22 16:47:09.482]: Info: Color coding: SDR (Rec. 601)
[2025-12-22 16:47:09.482]: Info: Color depth: 8-bit
[2025-12-22 16:47:09.482]: Info: Color range: JPEG
Cannot load libcuda.so.1
[2025-12-22 16:47:09.483]: Error: Couldn't load cuda: -1
[2025-12-22 16:47:09.483]: Info: Creating encoder [h264_nvenc]
[2025-12-22 16:47:09.483]: Info: Color coding: SDR (Rec. 601)
[2025-12-22 16:47:09.483]: Info: Color depth: 8-bit
[2025-12-22 16:47:09.483]: Info: Color range: JPEG
Cannot load libcuda.so.1
[2025-12-22 16:47:09.483]: Error: Couldn't load cuda: -1
[2025-12-22 16:47:09.483]: Info: Encoder [nvenc] failed
[2025-12-22 16:47:09.485]: Info: Trying encoder [vaapi]
[2025-12-22 16:47:09.485]: Info: Screencasting with X11
[2025-12-22 16:47:09.488]: Info: Creating encoder [h264_vaapi]
[2025-12-22 16:47:09.488]: Info: Color coding: SDR (Rec. 601)
[2025-12-22 16:47:09.488]: Info: Color depth: 8-bit
[2025-12-22 16:47:09.488]: Info: Color range: JPEG
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[2025-12-22 16:47:09.512]: Info: vaapi vendor: Mesa Gallium driver 25.2.6 for AMD Radeon RX Vega (radeonsi, vega10, ACO, DRM 3.61, 6.12.61-0-lts)
[2025-12-22 16:47:09.512]: Info: Streaming bitrate is 1000000
[2025-12-22 16:47:09.512]: Info: Using normal encoding mode
[2025-12-22 16:47:09.512]: Info: Using default rate control
[2025-12-22 16:47:09.549]: Info: Creating encoder [hevc_vaapi]
[2025-12-22 16:47:09.549]: Info: Color coding: SDR (Rec. 601)
[2025-12-22 16:47:09.549]: Info: Color depth: 8-bit
[2025-12-22 16:47:09.549]: Info: Color range: JPEG
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[2025-12-22 16:47:09.565]: Info: vaapi vendor: Mesa Gallium driver 25.2.6 for AMD Radeon RX Vega (radeonsi, vega10, ACO, DRM 3.61, 6.12.61-0-lts)
[2025-12-22 16:47:09.566]: Info: Streaming bitrate is 1000000
[2025-12-22 16:47:09.566]: Info: Using normal encoding mode
[2025-12-22 16:47:09.566]: Info: Using default rate control
[2025-12-22 16:47:09.601]: Info: Creating encoder [av1_vaapi]
[2025-12-22 16:47:09.601]: Info: Color coding: SDR (Rec. 601)
[2025-12-22 16:47:09.601]: Info: Color depth: 8-bit
[2025-12-22 16:47:09.601]: Info: Color range: JPEG
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[2025-12-22 16:47:09.615]: Info: vaapi vendor: Mesa Gallium driver 25.2.6 for AMD Radeon RX Vega (radeonsi, vega10, ACO, DRM 3.61, 6.12.61-0-lts)
[2025-12-22 16:47:09.615]: Info: Streaming bitrate is 1000000
[2025-12-22 16:47:09.615]: Error: [av1_vaapi @ 0x7f5a000a6a40] No usable encoding profile found.
[2025-12-22 16:47:09.615]: Error: Could not open codec [av1_vaapi]: Function not implemented
[2025-12-22 16:47:09.618]: Info: Screencasting with X11
[2025-12-22 16:47:09.619]: Info: Creating encoder [hevc_vaapi]
[2025-12-22 16:47:09.619]: Info: Color coding: SDR (Rec. 709)
[2025-12-22 16:47:09.619]: Info: Color depth: 10-bit
[2025-12-22 16:47:09.619]: Info: Color range: JPEG
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[2025-12-22 16:47:09.634]: Info: vaapi vendor: Mesa Gallium driver 25.2.6 for AMD Radeon RX Vega (radeonsi, vega10, ACO, DRM 3.61, 6.12.61-0-lts)
[2025-12-22 16:47:09.635]: Info: Streaming bitrate is 1000000
[2025-12-22 16:47:09.635]: Error: [hevc_vaapi @ 0x7f5a000a6a40] No usable encoding entrypoint found for profile VAProfileHEVCMain10 (18).
[2025-12-22 16:47:09.635]: Error: Could not open codec [hevc_vaapi]: Function not implemented
[2025-12-22 16:47:09.638]: Info:
[2025-12-22 16:47:09.638]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-12-22 16:47:09.638]: Info:
[2025-12-22 16:47:09.638]: Info: Found H.264 encoder: h264_vaapi [vaapi]
[2025-12-22 16:47:09.638]: Info: Found HEVC encoder: hevc_vaapi [vaapi]
[2025-12-22 16:47:09.639]: Info: Starting system tray
[2025-12-22 16:47:09.642]: Error: Failed to create client: Daemon not running
[2025-12-22 16:47:09.643]: Info: Configuration UI available at [https://localhost:47990]
(sunshine:2): libayatana-appindicator-WARNING **: 16:47:09.647: libayatana-appindicator is deprecated. Please use libayatana-appindicator-glib in newly written code.
[2025-12-22 16:47:09.669]: Info: System tray created
[2025-12-22 16:47:09.670]: Info: Starting main loop
(sunshine:2): Gdk-CRITICAL **: 16:47:09.806: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
[2025-12-22 16:47:20.374]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-12-22 16:47:20.374]: Info: Trying encoder [nvenc]
[2025-12-22 16:47:20.374]: Info: Screencasting with X11
[2025-12-22 16:47:20.375]: Info: Creating encoder [h264_nvenc]
[2025-12-22 16:47:20.375]: Info: Color coding: SDR (Rec. 601)
Cannot load libcuda.so.1
[2025-12-22 16:47:20.375]: Info: Color depth: 8-bit
[2025-12-22 16:47:20.375]: Info: Color range: JPEG
[2025-12-22 16:47:20.375]: Error: Couldn't load cuda: -1
[2025-12-22 16:47:20.375]: Info: Encoder [nvenc] failed
[2025-12-22 16:47:20.376]: Info: Trying encoder [vaapi]
[2025-12-22 16:47:20.376]: Info: Screencasting with X11
[2025-12-22 16:47:20.377]: Info: Creating encoder [h264_vaapi]
[2025-12-22 16:47:20.377]: Info: Color coding: SDR (Rec. 601)
[2025-12-22 16:47:20.377]: Info: Color depth: 8-bit
[2025-12-22 16:47:20.377]: Info: Color range: JPEG
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[2025-12-22 16:47:20.413]: Info: vaapi vendor: Mesa Gallium driver 25.2.6 for AMD Radeon RX Vega (radeonsi, vega10, ACO, DRM 3.61, 6.12.61-0-lts)
[2025-12-22 16:47:20.413]: Info: Streaming bitrate is 1000000
[2025-12-22 16:47:20.413]: Info: Using normal encoding mode
[2025-12-22 16:47:20.413]: Info: Using default rate control
[2025-12-22 16:47:20.451]: Info: Creating encoder [hevc_vaapi]
[2025-12-22 16:47:20.451]: Info: Color coding: SDR (Rec. 601)
[2025-12-22 16:47:20.451]: Info: Color depth: 8-bit
[2025-12-22 16:47:20.451]: Info: Color range: JPEG
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[2025-12-22 16:47:20.469]: Info: vaapi vendor: Mesa Gallium driver 25.2.6 for AMD Radeon RX Vega (radeonsi, vega10, ACO, DRM 3.61, 6.12.61-0-lts)
[2025-12-22 16:47:20.470]: Info: Streaming bitrate is 1000000
[2025-12-22 16:47:20.470]: Info: Using normal encoding mode
[2025-12-22 16:47:20.472]: Info: Using default rate control
[2025-12-22 16:47:20.507]: Info: Creating encoder [av1_vaapi]
[2025-12-22 16:47:20.507]: Info: Color coding: SDR (Rec. 601)
[2025-12-22 16:47:20.507]: Info: Color depth: 8-bit
[2025-12-22 16:47:20.507]: Info: Color range: JPEG
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[2025-12-22 16:47:20.521]: Info: vaapi vendor: Mesa Gallium driver 25.2.6 for AMD Radeon RX Vega (radeonsi, vega10, ACO, DRM 3.61, 6.12.61-0-lts)
[2025-12-22 16:47:20.521]: Info: Streaming bitrate is 1000000
[2025-12-22 16:47:20.522]: Error: [av1_vaapi @ 0x7f59dcf14540] No usable encoding profile found.
[2025-12-22 16:47:20.522]: Error: Could not open codec [av1_vaapi]: Function not implemented
[2025-12-22 16:47:20.524]: Info: Screencasting with X11
[2025-12-22 16:47:20.525]: Info: Creating encoder [hevc_vaapi]
[2025-12-22 16:47:20.525]: Info: Color coding: SDR (Rec. 709)
[2025-12-22 16:47:20.525]: Info: Color depth: 10-bit
[2025-12-22 16:47:20.525]: Info: Color range: JPEG
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[2025-12-22 16:47:20.540]: Info: vaapi vendor: Mesa Gallium driver 25.2.6 for AMD Radeon RX Vega (radeonsi, vega10, ACO, DRM 3.61, 6.12.61-0-lts)
[2025-12-22 16:47:20.541]: Info: Streaming bitrate is 1000000
[2025-12-22 16:47:20.541]: Error: [hevc_vaapi @ 0x7f59dc05c2c0] No usable encoding entrypoint found for profile VAProfileHEVCMain10 (18).
[2025-12-22 16:47:20.541]: Error: Could not open codec [hevc_vaapi]: Function not implemented
[2025-12-22 16:47:20.543]: Info:
[2025-12-22 16:47:20.543]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-12-22 16:47:20.543]: Info:
[2025-12-22 16:47:20.543]: Info: Found H.264 encoder: h264_vaapi [vaapi]
[2025-12-22 16:47:20.543]: Info: Found HEVC encoder: hevc_vaapi [vaapi]
[2025-12-22 16:47:20.543]: Info: Executing [Desktop]
[2025-12-22 16:47:20.647]: Info: New streaming session started [active sessions: 1]
[2025-12-22 16:47:20.686]: Info: CLIENT CONNECTED
[2025-12-22 16:47:20.688]: Info: Detecting displays
[2025-12-22 16:47:20.700]: Info: Detected display: DP-1 (id: 0)DP-1 connected: true
[2025-12-22 16:47:20.700]: Info: Detected display: DP-2 (id: 1)DP-2 connected: false
[2025-12-22 16:47:20.700]: Info: Detected display: DP-3 (id: 2)DP-3 connected: false
[2025-12-22 16:47:20.700]: Info: Detected display: HDMI-1 (id: 3)HDMI-1 connected: true
[2025-12-22 16:47:20.700]: Info: Screencasting with X11
[2025-12-22 16:47:20.701]: Info: Configuring selected display (0) to stream
[2025-12-22 16:47:20.716]: Info: Streaming display: DP-1 with res 1920x1080 offset by 0x0
[2025-12-22 16:47:20.717]: Info: Creating encoder [h264_vaapi]
[2025-12-22 16:47:20.718]: Info: Color coding: SDR (Rec. 601)
[2025-12-22 16:47:20.718]: Info: Color depth: 8-bit
[2025-12-22 16:47:20.718]: Info: Color range: MPEG
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/radeonsi_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[2025-12-22 16:47:20.739]: Info: vaapi vendor: Mesa Gallium driver 25.2.6 for AMD Radeon RX Vega (radeonsi, vega10, ACO, DRM 3.61, 6.12.61-0-lts)
[2025-12-22 16:47:20.741]: Info: Streaming bitrate is 14988000
[2025-12-22 16:47:20.741]: Info: Using normal encoding mode
[2025-12-22 16:47:20.741]: Info: Using default rate control
[2025-12-22 16:47:20.754]: Info: Minimum FPS target set to ~30fps (33.3333ms)
[2025-12-22 16:47:21.143]: Info: Setting default sink to: [sink-sunshine-stereo]
[2025-12-22 16:47:21.143]: Error: Couldn't set default-sink [sink-sunshine-stereo]: Access denied
[2025-12-22 16:47:21.143]: Error: Unable to initialize audio capture. The stream will not have audio.
[2025-12-22 16:47:27.060]: Info: CLIENT DISCONNECTED
[2025-12-22 16:47:27.060]: Info: Setting default sink to: [alsa_output.pci-0000_0b_00.6.analog-stereo]
[2025-12-22 16:47:27.060]: Error: Couldn't set default-sink [alsa_output.pci-0000_0b_00.6.analog-stereo]: Access denied
libnotify-Message: 16:47:27.199: App Icon is not available when using Portal Notifications