Closed tslight closed 7 months ago
TTY
Not supported on FreeBSD. My guess: vt(4) expects native keyboard events instead of evdev, so either /dev/uinput
needs to create vkbd(4) or kbdmux(4) needs to pull/read evdev events.
closing whatever terminal I launch it from
Try starting keyd within tmux session. Otherwise, try wayfire or labwc instead as hikari likely has many unfixed bugs due to dormant upstream.
remapping keys on FreeBSD in the TTYs
For simple cases try editing keymap(5) files under /usr/share/vt/keymaps
. To get scancodes kbdscan package may help.
under Wayland
For simple cases try creating custom XKB keymap based on xkeyboard-config package. It'd also work under Xorg.
Note, your "very basic" keyd config matches export XKB_DEFAULT_OPTIONS=caps:swapescape
:
// From /usr/local/share/X11/xkb/symbols/capslock
hidden partial modifier_keys
xkb_symbols "swapescape" {
key <CAPS> { [ Escape ], type[group1] = "ONE_LEVEL" };
key <ESC> { [ Caps_Lock ] };
};
Yes, I believe FreeBSDs uinput implementation doesn't only emulates evdev devices. As far as I know there is no way to simulate native devices on FreeBSD, but PRs are welcome those who know better :P.
HI there,
This could very well be a PEBKAC issue, but I've spent a good couple of hours researching and looking through past issues and reading the man page, but try as I might, I cannot figure this out...
I installed
keyd
viapkg install keyd
on a fresh install of FreeBSD 13.2 and created this very basic config in/usr/local/etc/keyd/default.conf
:However when I start
keyd
from either/usr/local/bin/keyd
or/usr/local/etc/rc.d/keyd start
my keyboard completely stops working until I hitESC->BKSP->RET
to force a panic (thank you for building that in BTW!)Perhaps I can't see the wood for the trees at this point, but I can't see anything obviously wrong with my config and running
keyd -m
looks good and works fine:Also here is the output of running
keyd
withKEYD_DEBUG=2
incase it helps someone figure out what is going on with my setup:So again, everything appears to be working and yet no keyboard input works until I force quit
keyd
.This happens in both a TTY and under the Hikari Wayland Window manager, although interestingly in Hikari starting
keyd
also has the side effect of closing whatever terminal I launch it from and breaking my mouse aswell.My hardware is pretty standard old ThinkPad X131E laptop that is fully supported by FreeBSD.
I'm really desperate for this to work as there doesn't seem to be any other easy solution for remapping keys on FreeBSD in the TTYs and under Wayland so any help/pointers greatly appreciated.
Cheers, Toby