[systemd-bugs] [Bug 82482] Cannot remap keys of bluetooth keyboard

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Sep 1 05:46:44 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=82482

--- Comment #3 from Jamie Lentin <jm at lentin.co.uk> ---
Before with /lib/udev/keymap it was pretty easy to write a custom udev rule to
apply a keymap:

SUBSYSTEM=="input", \
  ATTRS{name}=="ThinkPad Compact Bluetooth Keyboard with TrackPoint", \
  RUN+="keymap $name /etc/udev/keymaps/thinkpad-bluetooth-keyboard.map"

...so I wouldn't have noticed that the default rules don't play around with
bluetooth keyboards. NB: my remappings themselves are not worthy of upstream,
just my own odd quirks.

Now with hwdb I have 2 levels of indirection to mine through. I presume adding
my own rule (and associated hwdb entry) like this would work:

SUBSYSTEM=="input", \
  ATTRS{name}=="ThinkPad Compact Bluetooth Keyboard with TrackPoint", \
  IMPORT{builtin}="hwdb 'keyboard:custom:compact-bluetooth-keyboard'", \
  RUN{builtin}+="keyboard"

However, adding this udev rule and inventing my own namespace seems
unnecessary. A hwdb mapping for bluetooth devices, or bluetooth devices using
using the "keyboard:name:" mapping would mean I just have to add entries to
hwdb, as with other keyboard types.

Unfortunately I am currently away, however will suggest a patch next week.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140901/959cec4d/attachment.html>


More information about the systemd-bugs mailing list