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

ktrl doesn't work on Gnome #32

Open
sabitm opened this issue Feb 27, 2021 · 4 comments
Open

ktrl doesn't work on Gnome #32

sabitm opened this issue Feb 27, 2021 · 4 comments

Comments

@sabitm
Copy link

sabitm commented Feb 27, 2021

I'm using ktrl installed from crates.io and trying to test it using example configuration based on steps from README, but it doesn't work. When i press any key from my keyboard, it doesn't appear in my monitor. It's like the keyboard just unplugged until i stopped the systemd service and then it worked again. This is my setup

OS: Arch Linux x86_64
Kernel: 5.10.19-1-lts
DE: GNOME 3.38.3 (Wayland)
WM: Mutter

It doesn't output any error in program log. But here some error related to ktrl from journalctl:

kernel: input: ktrl as /devices/virtual/input/input41
systemd-logind[1554]: Watching system buttons on /dev/input/event18 (ktrl)
gnome-shell[2630]: Could not open device /dev/input/event18: GDBus.Error:System.Error.ENODEV: No such device
@ItayGarin
Copy link
Owner

Hello Sabit!

Are you running ktrl as a systemd service?
Regardless, I'd advise checking two things -

  1. The user you're running ktrl with has sufficient permissions (root / a 'ktrl' owned user you've created)
  2. You've located and provided the path to the correct input device :)

@sabitm
Copy link
Author

sabitm commented Mar 1, 2021

Yes, i'm running ktrl as systemd service based on README

  1. I created a new user named 'ktrl' as instructed on the README, that have this permission
$ groups ktrl
audio input uinput ktrl

and when i run it as systemd service, it has the right owner

$ ps aux | grep -i ktrl
ktrl       34048  0.0  0.0   3972  2300 ?        Ss   21:00   0:00 /usr/local/bin/ktrl -d /dev/input/by-path/pci-0000:00:14.0-usb-0:2.2:1.0-event-kbd
  1. I test my keyboard in /dev/input/by-path using cat. And it's outputting something when i press the key on my keyboard. So, i think it's not the problem

@ItayGarin
Copy link
Owner

Ah! In that case, I probably messed up somewhere haha.
Unfortunately, I'm currently preoccupied with other obligations so I'm not sure when I'll be able to investigate this.

So, if you're up to it, I'd really appreciate your help here.
I always welcome PRs and would love any assistance with this issue.

@maujim
Copy link

maujim commented Mar 2, 2021

I'm having the same issue, setup information below.

I've setup everything as per the README (custom ktrl user, all files in /opt/ktrl, running via systemd service). However, I'm not seeing any issues in journalctl output like @sabitm is.

OS: Arch Linux x86_64
Kernel: 5.11.2-arch1-1
DE: None
Display Server: X11 1.20.10
WM: dwm

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

3 participants