You are not logged in.

#1 2013-08-08 17:16:24

rman
Member
From: United States
Registered: 2013-08-08
Posts: 14

[SOLVED] Migrating udev keymap to systemd 206

I have a laptop keyboard that I wanted to remap several keys on. However, I also use a USB keyboard that I wanted to leave unchanged. That ruled out solutions like xmodmap and setxkbmap, so I created a custom udev keymap for my laptop keyboard as described on the wiki.

SUBSYSTEM=="input", ATTRS{name}=="AT Translated Set 2 keyboard", RUN+="/usr/lib/udev/keymap $name hp-dv7-custom"

However, after the upgrade to systemd 206, my setup no longer works because the keymap files were replaced by a built-in "keyboard" utility. With absolutely no documentation for migrating old configurations...

I have tried adding in custom KEYBOARD_KEY_xx entries to my keyboard's list in the hwdb, but it doesn't make a difference. Unfortunately I don't have the machine in front of me right now, I will post my configuration files ASAP.

Any hints? Thanks in advance.

Last edited by rman (2013-08-09 01:25:49)


Laptop: Lenovo L440, Intel Core i3-4000M, HD Graphics 4600
Desktop: Intel Core i5-4690, HD Graphics 4600, AMD Radeon R7 265 (KVM VGA passthrough)

Offline

#2 2013-08-08 20:40:45

PhobosK
Member
Registered: 2013-08-08
Posts: 1

Re: [SOLVED] Migrating udev keymap to systemd 206

I run into your post seeking for a solution for my Logitech G11 keymap customization that stopped working in v206.
I managed to migrate it and it works now.
About your problem....

Have you run as root the:

udevadm hwdb --update

command line after adding your hwdb keymapping file to /etc/udev/hwdb.d?

After that it'll probably be best to reboot, so the new hwdb entries be used best (udevadm control --reload will not help you much I think).

Try checking the exact syntax of your custom kemap hwdb file too (use http://cgit.freedesktop.org/systemd/sys … board.hwdb file as a documentation and mind the lowercase/uppercase rules).

Offline

#3 2013-08-09 01:25:06

rman
Member
From: United States
Registered: 2013-08-08
Posts: 14

Re: [SOLVED] Migrating udev keymap to systemd 206

Well, gee - I got it working! I just messed around with my hwdb file and it finally took effect, after running that update command and rebooting.

For future visitors, here's my working config:

/etc/udev/hwdb.d/60-keyboard.hwdb

# match all DMI keyboards
keyboard:dmi:bvn*:bvr*:bd*:svn*:pn*:pvr*
 KEYBOARD_KEY_dd=rightmeta
 KEYBOARD_KEY_d2=sysrq
 KEYBOARD_KEY_b7=insert

Thanks, Phobos! Marking solved. smile


Laptop: Lenovo L440, Intel Core i3-4000M, HD Graphics 4600
Desktop: Intel Core i5-4690, HD Graphics 4600, AMD Radeon R7 265 (KVM VGA passthrough)

Offline

#4 2013-08-09 01:39:58

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,134

Re: [SOLVED] Migrating udev keymap to systemd 206

Shouldn't this be in the testing forum? Or at least note that systemd 206 is not yet in the stable repos?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2013-08-23 05:12:21

Gaudi
Member
Registered: 2013-08-23
Posts: 2

Re: [SOLVED] Migrating udev keymap to systemd 206

Hi, I have found this thread while also looking to migrate from the keymap command into the new keyboard built in function.
I was using the former keymap to map some missing keys from a RF remote (MEle F10) to use on my HETP on OpenELEC.
But on the latest update of OpenELEC they have updated systemd to 206, and then to the new way to remap keys.

I used to use the keymap command to check config changes and also to get the right scancodes from a certain device as described here: https://wiki.archlinux.org/index.php/Ma … o_keycodes:

I still wanted to remap some other remote (ATI Remote Wonder II).
Is there any workaround to continue using the useful keymap for getting the pressed keys (like on a remote)?

Thanks

Offline

Board footer

Powered by FluxBB