Re: [systemd-devel] update: udev keymaps are moving to hwdb
Kay Sievers [2013-07-16 16:25 +0200]: Committed it now. All the old udev keymap files are gone and only the hwdb file: http://cgit.freedesktop.org/systemd/systemd/tree/hwdb/60-keyboard.hwdb is carrying all the data. \o/ Martin is looking into the missing USB Logitech maps at the moment. I went through the original bug reports and usb.ids to salvage the real product IDs, committed to http://cgit.freedesktop.org/systemd/systemd/commit/?id=1b6bce89 That should cover most bits, other models need new bug reports now (Logitech USB keyboards are a catastrophe..) Thanks, Martin -- Martin Pitt| http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] update: udev keymaps are moving to hwdb
On Tue, Jul 16, 2013 at 05:01:17PM +0200, Martin Pitt wrote: Kay Sievers [2013-07-16 16:25 +0200]: Committed it now. All the old udev keymap files are gone and only the hwdb file: http://cgit.freedesktop.org/systemd/systemd/tree/hwdb/60-keyboard.hwdb is carrying all the data. \o/ Can we have some easy documentation what commands have to be invoked to extract the information to write the rules? The format is nice and simple, but which field goes where to get the values for the fields is nonobvious. Zbyszek -- they are not broken. they are refucktored -- alxchk ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] update: udev keymaps are moving to hwdb
On Wed, Jul 10, 2013 at 11:38 PM, Kay Sievers k...@vrfy.org wrote: The systemd git source tree has now all the pieces to prepare the move from the current keymap handling to the hardware database. None of it will take any action at the moment, the hwdb file is not committed. The hand-edited: /usr/lib/udev/hwdb.d/60-keyboard.hwdb is in the systemd source tree now: http://cgit.freedesktop.org/systemd/systemd/tree/hwdb/60-keyboard.hwdb? It should contain almost all data from the keymaps. The Logitech too broad matches for USB devices, which use the textual string instead of the usual USB IDs have been dropped, they need to be resurrected when someone can supply the USB IDs. Again, any help or testing would be very welcome. Thanks, Kay ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
[systemd-devel] update: udev keymaps are moving to hwdb
We need to cut down the use of udev rules, and move all hardware matches to the magnitudes more efficient hardware database. Udev rules were not meant to carry out huge lists of sequential matches against hardware IDs, this model just doesn't scale too well. The keymaps are the first, other users like libsane, libgphoto, media player, ... should be converted too. The systemd git source tree has now all the pieces to prepare the move from the current keymap handling to the hardware database. None of it will take any action at the moment, the hwdb file is not committed. All keymap scan/key code pairs, and the force-release lists will move into the file: /usr/lib/udev/hwdb.d/60-keyboard.hwdb The input device will import the keymap data into the udev database like: $ udevadm test /class/input/event5 ... KEYBOARD_KEY_01=screenlock KEYBOARD_KEY_02=battery KEYBOARD_KEY_03=sleep KEYBOARD_KEY_04=wlan KEYBOARD_KEY_06=switchvideomode KEYBOARD_KEY_07=f21 KEYBOARD_KEY_08=f24 KEYBOARD_KEY_0b=suspend KEYBOARD_KEY_0f=brightnessup KEYBOARD_KEY_10=brightnessdown ... There is a new builtin keyboard which will read these keys and install them into the kernel device. The force-release flag is carried as '!' in front of the key identifier like: KEYBOARD_KEY_78=mail KEYBOARD_KEY_82=!switchvideomode KEYBOARD_KEY_83=!battery After all keymap data is moved to the 60-keyboard.hwdb file, all current keymap files, force-release files, the keymap binary, the udev rule and the force-release shell script will be removed from the source tree. Attached is the current version of the hwdb file, which is not committed to the source tree. It contains maybe 30% of the old keymaps and should cover all of the force-release lists. The header of the file carries some documentation. Some data like USB devices with too broad and insufficient matches on the USB strings instead of the USB IDs cannot be ported over and need to be reworked if they are still needed. Any help or testing would be more than welcome to get that thing properly working. Thanks, Kay 60-keyboard.hwdb Description: Binary data ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel