Here’s what worked for me:
- copy /usr/lib/udev/hwdb.d/60-keyboard.hwdb to /etc/udev/hwdb.d:
sudo cp /usr/lib/udev/hwdb.d/60-keyboard.hwdb /etc/udev/hwdb.d/
- edit the new file, e.g.:
sudo vi /etc/udev/hwdb.d/60-keyboard.hwdb
- find the section labeled
# Purism
by typing/Purism
(slash and then the word Purism) and hitting enter - delete the whole section or comment the section out - now vi gets interesting if you do not already know it. Simplest thing to delete those lines by maneuvering the cursor in the first line to be deleted and then pressing
d
twice to delete one row. Repeat until done. - save the edited file by hitting
:wq
followed by enter.
You can use your favorite text editor in place of vi. You also can comment the section out and make it look like the file on my Librem13v4:
###########################################################
# Purism
###########################################################
# # Purism Librem 13 V2
# evdev:atkbd:dmi:bvn*:bvr*:bd*:svnPurism*:pn*Librem13v2*:pvr*
# KEYBOARD_KEY_56=backslash
#
# # Purism Librem 13 V3
# evdev:atkbd:dmi:bvn*:bvr*:bd*:svnPurism*:pn*Librem13v3*:pvr*
# KEYBOARD_KEY_56=backslash
# Purism Librem 13 V4
# evdev:atkbd:dmi:bvn*:bvr*:bd*:svnPurism*:pn*Librem13v4*:pvr*
# KEYBOARD_KEY_56=backslash
Either way after reboot your keys should work (if I didn’t forget anything else I had to do on my very painful and disappointing way to a working keyboard.
A short explanation (to be corrected by people who do know and/or remember better than me): The english keyboard does have a firmware error and needs those lines to fully work. Unfortunately this workaround breaks the german keyboard which does not have this firmware error.
The file you copied and edited overrules the original file in /usr/lib/udev/hwdb.d. Any update to that original file will not activate for you if you choose this solution (and I do not see a good reason why this should be a problem).
From my point of view it is extremely disappointing that this issue has not already been fixed for customers who order their Librem with a german keyboard. I would go as far as saying that it is disrespectful to send a system to customers known not to work.