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

CTRL-ALT-SPACE shortcut not working with evdev or auto mode on Ubuntu 20.04 #80

Open
SamirSaidani opened this issue Nov 26, 2024 · 2 comments

Comments

@SamirSaidani
Copy link

SamirSaidani commented Nov 26, 2024

I'm using the latest version of WhisperWriter on Ubuntu 20.04, and I've encountered an issue with the CTRL-ALT-SPACE shortcut not working when using the evdev backend. It took me a lot of time to figure out that in auto mode, it automatically switches to evdev in user mode, which causes the shortcut to fail. After multiple tests, I found that when setting up recording in auto mode instead of pynput, the shortcut doesn't work with either evdev or auto modes. However, when using pynput in user mode, the shortcut works as expected. Additionally, both modes work fine when running as root.

Steps to reproduce:

Install WhisperWriter on Ubuntu 20.04.

  • Use the CTRL-ALT-SPACE shortcut.
  • Test with evdev or auto mode in user mode – the shortcut does not work.
  • Test with pynput in user mode – the shortcut works.
  • Test with evdev or auto mode in root – the shortcut works.

Expected behavior: The CTRL-ALT-SPACE shortcut should work in user mode with evdev or auto mode.

Additional context:

  • Python version: 3.11
  • This issue does not occur when running WhisperWriter as root.
@Nielius
Copy link

Nielius commented Dec 3, 2024

This sounds like it's the same as the issue I was having: #84

  • To check if it's the same issue, run python -c "import evdev; print(evdev.list_devices())". If it prints an empty list, it's probably the same issue.
  • You can also try my solution: sudo usermod -aG input your-username-here and then restart (maybe logout/login is good enough).

@SamirSaidani
Copy link
Author

This sounds like it's the same as the issue I was having: #84

* To check if it's the same issue, run `python -c "import evdev; print(evdev.list_devices())"`. If it prints an empty list, it's probably the same issue.

I confirm, it's the same issue.

* You can also try my solution: `sudo usermod -aG input your-username-here` and then restart (maybe logout/login is good enough).

I'm aware of this solution, I avoid it because it allows keyloggers to operate in user mode.

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

2 participants