[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: what keyboard do you use?



On Tue, 2024-02-06 at 11:11 +0700, Max Nikulin wrote:
> On 05/02/2024 18:37, hw wrote:
> > With xmodmap, I was able to adjust the layout as needed.  With
> > wayland, I can't do that anymore
> 
> Untested:
> 
> https://who-t.blogspot.com/2020/02/user-specific-xkb-configuration-part-1.html
> User-specific XKB configuration - part 1
> 
> and I have heard about a low-level trick
> 
> /etc/udev/hwdb.d/90-custom-keyboard.hwdb
> evdev:input:b0003v1A2Cp0E24*
>   KEYBOARD_KEY_70039=f14

ls -la /etc/udev/hwdb.d/
total 0
drwxr-xr-x. 1 root root  0 Jan 22 01:00 .
drwxr-xr-x. 1 root root 82 Feb  5 13:03 ..

But this is on Fedora, and perhaps Debian does it differently.

> However I am unsure if it is possible to remap "Fn" key, it may be 
> handled by device firmware.

IIUC that is the case: The number of keys the PC hardware can deal
with is (was) limited, and it's less than 122.  There used to be
terminals that could use all 122 keys, using connectors that don't fit
PCs.  So a keyboard to be connected to a PC which has 122 keys is
either incompatibel, or you can't use all keys, or the
hardware/firmware in the keyboard translates (some) keys to what a PC
can understand.

In case of the 122 key keyoard I'm using, its hard-/firmware
translates keys like F14 to Shift+4.  IIRC that was the classical way
to press F14 (because someone made up that pressing Shift+F4 should be
called F14 because they wanted more keys for some software).  There is
probably no scan code for F14 a PC would understand because it doesn't
exist for a PC.  This keyboard has other keys like 'Help' that it also
translates to something a PC can understand.


Reply to: