From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 From: Hannes Winkler To: kbd@lists.altlinux.org Message-ID: Date: Wed, 15 Jan 2020 10:14:29 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [kbd] add keymap loading for event devices X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jan 2020 09:14:35 -0000 Archived-At: List-Archive: Good morning, there's currently no way to easily apply a keymap (given as a keymap file) to an event device. What do you think about adding such a feature to loadkeys? That'd also enable udev to easily apply the system keymap to hotplugged event devices. Keymaps are practically the only thing evdevs keep as global state (everything else on a per-fd basis), so you don't need to apply the keymap every time you open an evdev. It's sufficient to apply the keymap to the evdev once, when it's plugged in - loadkeys would be perfect for this. I'd be willing to contribute if you agree to add this feature to loadkeys. Best regards, Hannes Winkler