moonlight-qt icon indicating copy to clipboard operation
moonlight-qt copied to clipboard

Linux enable catch all key cannot adjust volume with keyboard shortcut.

Open ashesofdream opened this issue 1 year ago • 7 comments

Describe the bug On windows , enable catch all key(for example alt+tab), use keyboard shortcut like ( fn+xxx ) can adjust volume. But linux seems not work. Steps to reproduce

  1. enable catch all key on linux moonglight
  2. start stream to a windows computer.
  3. adjust volume with keyboard shortcut and not work.

Other Moonlight clients not bug on windows

Client PC details (please complete the following information)

  • OS: debian 12
  • Moonlight Version: 5.0.1
  • GPU: HD 610

ashesofdream avatar Dec 11 '23 16:12 ashesofdream

Supplement: I mean catch system key . In the meanwhile ,can adjust local host volume by keyboard shortcut.

ashesofdream avatar Dec 12 '23 04:12 ashesofdream

Same problem, but I noticed that even adjust the volume inside the Windows PC using mouse, the volume indicator will change but the actual volume won't change. It seems the actual volume is totally controlled by Debian host.

Winson-Huang avatar Dec 16 '23 14:12 Winson-Huang

Capturing keyboard events seems to be broken on Gnome on Wayland. It works correctly if you switch to X11.

ntkoopman avatar Dec 18 '23 05:12 ntkoopman

I don't think there's anything we can do about this one.

Moonlight uses SDL for OS integration. SDL uses the Wayland keyboard shortcut inhibition protocol to grab keyboard input, which doesn't have an option to exclude certain keys.

It's possible maybe SDL could reinject unhandled keys itself, but that's a feature request for SDL not Moonlight.

cgutman avatar Dec 22 '23 21:12 cgutman

Just to back up the original post - I notice the exact same issue using X11. System keys are captured correctly, however so are fn+key combinations (like adjusting volume, screen brightness etc.).

This doesn't happen on windows - using a fn+key combo still goes to the host, so you can modify things like volume or brightness of the client while streaming.

Is this something that can be tweaked to allow fn+key combinations to not be sent to the host (or a setting option to this effect)? Or is there something existing that allows you to temporarily suspend sending system keys to the host?

Olorin92 avatar Jan 04 '24 15:01 Olorin92

For now a workaround seems to be using the Ctrl+alt+shift+z shortcut to temporarily return control to the host, adjusting volume or brightness, then using the same shortcut to return control back to moonlight

Olorin92 avatar Jan 06 '24 02:01 Olorin92

I don't think there's anything we can do about this one.

Moonlight uses SDL for OS integration. SDL uses the Wayland keyboard shortcut inhibition protocol to grab keyboard input, which doesn't have an option to exclude certain keys.

It sounds like it might be a good idea to file a feature request with the Wayland people, then.

Silent-Hunter avatar Jan 30 '24 17:01 Silent-Hunter