jtroo / kanata

Improve keyboard comfort and usability with advanced customization
GNU Lesser General Public License v3.0
2.15k stars 111 forks source link

Bug: Unable to find a keyboard device #1192

Open Jirubizu opened 1 month ago

Jirubizu commented 1 month ago

Requirements

Describe the bug

Unable to find a keyboard device

Relevant kanata config

➜ ~ cat .config/kanata/config.kbd ;; Caps to escape/control configuration for Kanata

(defsrc caps )

(defalias escctrl (tap-hold 100 100 esc lctl) )

(deflayer base @escctrl )

To Reproduce

  1. Went through the setup for linux
  2. Created the provided config.kbd
  3. Launched kanata while passing the config via $HOME/.cargo/bin/kanata --cfg ${HOME}/.config/kanata/config.kbd

Expected behavior

I expected kanata to launch and apply my configuration.

Kanata version

kanata 1.6.1

Debug logs

➜ ~ $HOME/.cargo/bin/kanata --cfg ${HOME}/.config/kanata/config.kbd 2024-08-10T17:46:12.07873201+01:00 [INFO] kanata v1.6.1 starting 2024-08-10T17:46:12.079083984+01:00 [INFO] process unmapped keys: false 2024-08-10T17:46:12.079121144+01:00 [INFO] NOTE: kanata was compiled to never allow cmd 2024-08-10T17:46:12.079337813+01:00 [INFO] config file is valid 2024-08-10T17:46:12.080430694+01:00 [INFO] Created device "/dev/input/event14" 2024-08-10T17:46:12.080801674+01:00 [INFO] Sleeping for 2s. Please release all keys and don't press additional ones. Run kanata with --help to see how understand more and how to disable this sleep. 2024-08-10T17:46:14.08116411+01:00 [INFO] entering the processing loop 2024-08-10T17:46:14.081442816+01:00 [INFO] entering the event loop 2024-08-10T17:46:14.081477702+01:00 [INFO] looking for devices in /dev/input 2024-08-10T17:46:14.08166238+01:00 [INFO] Init: catching only releases and sending immediately 2024-08-10T17:46:14.08177352+01:00 [ERROR] failed to open keyboard device(s): No keyboard devices were found

Press enter to exit 2024-08-10T17:46:14.652880246+01:00 [INFO] Starting kanata proper 2024-08-10T17:46:14.652931142+01:00 [INFO] You may forcefully exit kanata by pressing lctl+spc+esc at any time. These keys refer to defsrc input, meaning BEFORE kanata remaps keys. 2024-08-10T17:46:14.652943896+01:00 [ERROR] channel disconnected

Operating system

Linux

Additional context

➜ ~ ls /dev/input by-path event0 event1 event2 event3 event4 event5 event6 event7 event8 event9 event10 event11 event12 event13 mice mouse0 mouse1 mouse2 mouse3 ➜ ~ ls /dev/input/by-path pci-0000:00:14.3-platform-VPC2004:00-event platform-AMDI0010:00-mouse platform-AMDI0010:01-event-mouse platform-i8042-serio-0-event-kbd platform-AMDI0010:00-event-mouse platform-AMDI0010:01-event platform-AMDI0010:01-mouse platform-PNP0C14:01-event ➜ ~ ls /dev/*input /dev/uinput

/dev/input: by-path event0 event1 event2 event3 event4 event5 event6 event7 event8 event9 event10 event11 event12 event13 mice mouse0 mouse1 mouse2 mouse3

System Information

➜ ~ fastfetch jirubizu@pop-os

OS: Pop!_OS jammy 22.04 x86_64 Host: 82UD (Yoga 6 13ALC7) Kernel: Linux 6.9.3-76060903-generic Uptime: 1 day, 6 hours, 49 mins Packages: 2145 (dpkg), 7 (flatpak-user), 7 (snap) Shell: zsh 5.8.1 Display (IVO854A): 1920x1200 @ 60 Hz in 13″ DE: Regolith:GNOME-Flashback:GNOME WM: i3 (X11) Theme: Yaru [GTK3] Icons: Yaru [GTK3] Cursor: Adwaita Terminal: alacritty 0.14.0-dev Terminal Font: Hack Nerd Font Mono (12pt) CPU: AMD Ryzen 7 5700U (16) @ 4.37 GHz GPU: AMD Lucienne [Integrated] Memory: 5.95 GiB / 13.48 GiB (44%) Swap: 768.00 KiB / 17.48 GiB (0%) Disk (/): 78.52 GiB / 459.50 GiB (17%) - ext4 Disk (/recovery): 2.44 GiB / 3.99 GiB (61%) - vfat Local IP (wlo1): 192.168.1.160/24 Battery: 37% [Discharging] Locale: en_US.UTF-8

jtroo commented 1 month ago

Can you try if specificying devices explicitly via defcfg works?

Jirubizu commented 1 month ago

sorry i'm currently on holiday but i'll be back Saturday and ill have a go