Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

[Bug] Touch/pen input disabled when native_pen_touch omitted from config (v2026.808 regression)

Open AliceJump opened this issue 3 months ago • 1 comments

THIS IS NOT THE PLACE TO ASK FOR SUPPORT! Please use our Support Center for support issues. Before creating an issue, please review our AI Community Rules.

Describe the Bug

After updating Sunshine from the old version to the new version, I found that multi-touch input is always unusable. The client (Moonlight Android, https://github.com/Axixi2233/moonlight-android) was unchanged — it only broke after the Sunshine update. I noticed the old Sunshine version had this feature working, so I ran an experiment:

  • Old version (touch works): 2025.924.154138
  • New version (touch broken): 2026.808.164219
  1. Used the Web UI to change the option to unchecked (disable) and saved. After saving, the config contained native_pen_touch = disabled. Restarted, touch was unusable.
  2. Re-enabled it via the Web UI. After saving, the key disappeared from the config file. Restarted, touch was still unusable.
  3. Directly edited the config file to force native_pen_touch = enabled. Touch became usable.

Corresponding logs: see scenarios 1/2/3 in "Additional Context".

Expected Behavior

Multi-touch input should work after updating to the new version, matching the behavior of the old version. The native_pen_touch option should be enabled by default so touch input works even when the key is absent from the config.

Additional Context

  • Sunshine version: 2026.808.164219 (commit 25c06d79), Windows 11
  • Client: Moonlight Android (fork) - https://github.com/Axixi2233/moonlight-android
  • Full (redacted) logs for all three scenarios: https://gist.github.com/AliceJump/e4e893dba40b455bb0012cb84efe7932

Scenario 1 - Web UI disable + save (config: 'native_pen_touch' = disabled) — touch unusable:

Startup:

[2026-08-18 08:07:17.574]: Info: Sunshine version: 2026.808.164219 commit: 25c06d79b54f3d092d3fedd5f5ba44989f394692
[2026-08-18 08:07:17.574]: Info: Package Publisher: LizardByte
[2026-08-18 08:07:17.574]: Info: Publisher Website: https://app.lizardbyte.dev
[2026-08-18 08:07:17.574]: Info: Get support: https://app.lizardbyte.dev/support
[2026-08-18 08:07:17.574]: Info: config: 'native_pen_touch' = disabled
[2026-08-18 08:07:17.574]: Info: Provided workaround settings for SettingsManager:

Session:

[2026-08-18 08:07:23.592]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2026-08-18 08:07:23.592]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2026-08-18 08:07:23.592]: Info: Executing [Desktop]
[2026-08-18 08:07:23.672]: Info: New streaming session started [active sessions: 1]
[2026-08-18 08:07:23.858]: Info: nvprefs: No need to modify application profile settings
[2026-08-18 08:07:23.925]: Info: CLIENT CONNECTED
[2026-08-18 08:07:24.198]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY
[2026-08-18 08:07:24.255]: Info: Using realtime GPU priority

Stop:

[2026-08-18 08:09:32.696]: Info: Interrupt handler called
[2026-08-18 08:09:32.706]: Info: Starting async encoder teardown
[2026-08-18 08:09:33.055]: Info: Unregistered Sunshine mDNS service

Note: no Creating virtual touch input device line appears during the whole session.

Scenario 2 - Web UI enable + save (key omitted from config, no load line) — touch unusable:

Startup:

[2026-08-18 08:09:36.101]: Info: Sunshine version: 2026.808.164219 commit: 25c06d79b54f3d092d3fedd5f5ba44989f394692
[2026-08-18 08:09:36.101]: Info: Package Publisher: LizardByte
[2026-08-18 08:09:36.101]: Info: Publisher Website: https://app.lizardbyte.dev
[2026-08-18 08:09:36.101]: Info: Get support: https://app.lizardbyte.dev/support

Note: there is no config: 'native_pen_touch' = ... line because the key is absent. Session:

[2026-08-18 08:09:41.089]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2026-08-18 08:09:41.089]: Info: Executing [Desktop]
[2026-08-18 08:09:41.181]: Info: New streaming session started [active sessions: 1]
[2026-08-18 08:09:41.367]: Info: nvprefs: No need to modify application profile settings
[2026-08-18 08:09:41.435]: Info: CLIENT CONNECTED
[2026-08-18 08:09:41.701]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY

Note: no Creating virtual touch input device line appears during the whole session.

Scenario 3 - manually set native_pen_touch = enabled + restart — touch works:

Startup:

[2026-08-18 08:11:11.907]: Info: Sunshine version: 2026.808.164219 commit: 25c06d79b54f3d092d3fedd5f5ba44989f394692
[2026-08-18 08:11:11.907]: Info: Package Publisher: LizardByte
[2026-08-18 08:11:11.907]: Info: Publisher Website: https://app.lizardbyte.dev
[2026-08-18 08:11:11.907]: Info: Get support: https://app.lizardbyte.dev/support
[2026-08-18 08:11:11.907]: Info: config: 'native_pen_touch' = enabled
[2026-08-18 08:11:11.908]: Info: Provided workaround settings for SettingsManager:

Session:

[2026-08-18 08:11:24.741]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2026-08-18 08:11:24.741]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2026-08-18 08:11:24.741]: Info: Executing [Desktop]
[2026-08-18 08:11:24.816]: Info: New streaming session started [active sessions: 1]
[2026-08-18 08:11:25.007]: Info: nvprefs: No need to modify application profile settings
[2026-08-18 08:11:25.067]: Info: CLIENT CONNECTED
[2026-08-18 08:11:25.362]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY
[2026-08-18 08:11:25.397]: Info: Using realtime GPU priority
[2026-08-18 08:11:26.066]: Info: Creating virtual touch input device

Note: Creating virtual touch input device appears once the client sends touch input.

AliceJump avatar Aug 18 '26 02:08 AliceJump

Confirmed on Windows with Sunshine v2026.906.222525 (cb72dffa3233c5815cd5ba88f09f049dd679ba75) and an iOS VoidLink client.

Manually adding native_pen_touch = enabled and restarting restored native multitouch. However, saving unrelated settings in the Web UI repeatedly removed that explicit value. After the subsequent restart, multitouch stopped working again. Startup logs confirmed the option was present in the working run and absent in the later runs.

The packaged config page treats native_pen_touch as enabled by default and removes values equal to UI defaults on save. This makes the manual workaround in this issue fragile until the initializer fix in #5519 is applied.

For my personal installation, I temporarily excluded only native_pen_touch from that default-value deletion filter (preserving both explicit enabled and disabled values), then restored the explicit enabled setting. Multitouch was confirmed working afterward. This is a workaround, not a replacement for fixing the C++ initializer.

Could regression coverage include both an omitted native_pen_touch key and a Web UI save/restart round trip after changing an unrelated setting? The latter should not silently turn off a feature shown as enabled.

Personal workaround notes: https://github.com/Tomclanc/Sunshine-Personal-Patches . This is explicitly unofficial and recommends the original upstream release. No driver licensing changes are involved. I have not established any connection between this issue and occasional video freezes/unlock disconnects, so I am not claiming those are fixed by the workaround.

Tomclanc avatar Sep 11 '26 12:09 Tomclanc