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
[BUG] Keyboard shortcuts don't work in Wayland #125
Comments
I'm on 22.04 LTS and all shortcuts work just fine. Must be a libkeybinder problem. |
Same problem here... Binding fails. ** (indicator-sound-switcher:212752): WARNING **: 09:53:40.814: Binding '1' failed! ** (indicator-sound-switcher:212752): WARNING **: 09:53:40.814: Binding '2' failed! ** (indicator-sound-switcher:212752): WARNING **: 09:53:40.814: Binding '3' failed! |
Unfortunately, You can also try to figure out if the binding isn't working in general or only for specific key combinations. |
Which window manager are you using? Wayland or X11? After a quick search it seams that libkeybinder and Wayland don't work well together? |
I've installed Cinnamon on my Ubuntu, and it works
Then tried
Then
This guy seems to have exactly the same issue kupferlauncher/keybinder#17 It is extremely likely that the issue comes from upstream, e.g. from |
As a workaround: You can run indicator-sound-switcher with X11 Backend and then it works: A real fix could be to use a GAction instead of libkeybinder, when on Wayland. :-/ |
Indeed, it does work in a X11 session but fails on Wayland. @finsterwalder can GAction be used for making a global shortcut? |
Wow it does work, even with Wayland. Thanks! |
Conclusion: the error is caused by kupferlauncher/keybinder#17 and appears to only affect Wayland session. The current workarounds are:
|
Describe the bug
On a fresh install of Ubuntu 22.04 LTS.
I've set shortcut to output device ports. They do not work. I've tested various keyboard combinations and none of them work.
When switching sound from the graphical menu, it works flawlessly.
I used to use Linux Mint before Ubuntu, and it was working fine. It stopped working on a fresh Ubuntu (vanilla) install.
To this day I do not know whether the issue is from the SoundSwitch, or Ubuntu which may not let the keystroke event go through.
To Reproduce
On Ubuntu 22.04 LTS, set some shortcuts, and strike them. It does nothing.
Expected behavior
Sound output should be switched.
Desktop (please complete the following information):
Indicator config:
Indicator log:
The text was updated successfully, but these errors were encountered: