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

Not working with wayland #129

Open
milchmann80 opened this issue Apr 9, 2024 · 4 comments
Open

Not working with wayland #129

milchmann80 opened this issue Apr 9, 2024 · 4 comments

Comments

@milchmann80
Copy link

There is no sound in wayland. System is Ubuntu 23.10 with wayland. I tried installing it as an snap package and with apt. Workaround is starting the gnome session with X11.

@ldedear
Copy link

ldedear commented May 20, 2024

I have bucklespring sound in Wayland, but only in the Vivaldi browser. Not in the terminal, text editor, file manager, LibreOffice, or Firefox. I'm listening to it now while typing this comment, but haven't heard it outside of Vivaldi yet.

Fedora 40, KDE Plasma 6.0.4, window manager Kwin, bucklespring installed via Snap

@zevv
Copy link
Owner

zevv commented May 31, 2024

This is a known issue with wayland, as wayland does not offer any mechanisms for globally sniffing keyboard events. The X11 API for capturing keystrokes is operational, but no events are generated for other windows.
This of course makes sense, as sniffing keystrokes from another application is a potential security issue.

As an alternative, you can build bucklespring with the libinput backend instead, as this will capture keystrokes directly as they are reported from the kernel to userspace:

make libinput=1

This will require some twiddling with permissions though, as regular users typically do not have access to the devices in /dev/input. On debian/ubuntu-based systems adding your user to the input group should suffice.

@agcom
Copy link

agcom commented Jul 16, 2024

As a normal user using Ubuntu Desktop 24.04 on Wayland:

  • git clone https://github.com/zevv/bucklespring && cd ./bucklespring/
  • sudo apt-get install libopenal-dev libalure-dev libxtst-dev
  • sudo apt-get install libinput-dev
  • make libinput=1
  • sudo -E -g input -u $(whoami) ./buckle

@SerJaimeLannister
Copy link

so I tried using this and this still has the issue of
[ALSOFT] (EE) Failed to connect PipeWire event context (errno: 112)
unable to open default device
I had got the things neccessary for make in archlinux

doas pacman -S openal alure li

then make libinput=1

then sudo ./buckle
[ALSOFT] (EE) Failed to connect PipeWire event context (errno: 112)
unable to open default device

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

No branches or pull requests

5 participants