From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yOtHMaQAYF+/ZAAA0tVLHw (envelope-from ) for ; Mon, 14 Sep 2020 23:45:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YF3LK6QAYF/WOwAAbx9fmQ (envelope-from ) for ; Mon, 14 Sep 2020 23:45:40 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3FE399404C5 for ; Mon, 14 Sep 2020 23:45:39 +0000 (UTC) Received: from localhost ([::1]:34370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHyAD-0007Yr-Uh for larch@yhetil.org; Mon, 14 Sep 2020 19:45:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHyA2-0007YV-NE for help-guix@gnu.org; Mon, 14 Sep 2020 19:45:26 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21194) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHyA0-0003Ak-Hu for help-guix@gnu.org; Mon, 14 Sep 2020 19:45:26 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1600127120; cv=none; d=zohomail.com; s=zohoarc; b=evu4BvJsRHMKswTr/B4OA0LQXDYFUMya6Qy236MmpQWO9hhNWcsc4bLAduWEB0LnCk6eRZI9AUa33uCJK21hvVxR0QVq2wRQBCyp4Lvb9iCqFKWdAaM7aeTWkwU5C/ttPLyt5khbXew0KtEeLYo7DI39eeCiNQft48tOgMPmyUM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600127120; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=pB4d+NtbsuDVdNdz0Ppsmf1uAqw7ZKuUBVHbxjLVpco=; b=GJdCLo2Wd02BEeSKOTgW9u4EpWc+NSj2LRO+tzQXuIw1JpOGq+3aO9voAxTSFN/z/EfntLreAei7iOttDfWFgyU6PmMcEibwYXiiORu9vRgSAkwrNYFFzhzoAzHZ/XhVoWj1x1q2mp5UhqS6ZI+nSimJoDSchGJtposlQ/b+dW0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1600127120; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=pB4d+NtbsuDVdNdz0Ppsmf1uAqw7ZKuUBVHbxjLVpco=; b=D2AhyoCus93HdeuN8XATuOFQNlZkS57TL44PurP+cPlQTomZyQxXGxTf6dU33Ny1 iQ9y5uYOFHLB+2DaN27dEV79s/7eIGCjGd1rIQtI+po7mPMevKx2qR7Ix4hI930E68Z WqlQJ85Ugpa2Q44dxtxK365m0xt2cgOlTOprMPs0= Received: from localhost (p54ad4c23.dip0.t-ipconnect.de [84.173.76.35]) by mx.zohomail.com with SMTPS id 1600127118632642.7509200441797; Mon, 14 Sep 2020 16:45:18 -0700 (PDT) References: <87zh5wntu7.fsf@mail.de> <87tuw3oos1.fsf@mail.de> <87k0wwniiw.fsf@mail.de> User-agent: mu4e 1.4.13; emacs 27.1 From: Ricardo Wurmus To: Stefan Huchler Subject: Re: how to add hwdb of keyboard In-reply-to: <87k0wwniiw.fsf@mail.de> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Tue, 15 Sep 2020 01:46:36 +0200 Message-ID: <87y2lbx6oz.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/14 15:46:00 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=D2AhyoCu; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -2.21 X-TUID: d6CUGmC/AzOI Hi Stefan, it took me a while to reply to your original message, because I didn=E2=80= =99t know what hwdb was supposed to mean. The code snippet in this mail made it clearer to me. > I forked now the eudev definition to add my hwdb data: > > (add-before 'build-hwdb 'add-my-hwdb-file > (lambda* (#:key outputs #:allow-other-keys) > (let ((out (assoc-ref outputs "out"))) > (call-with-output-file > (string-append out "/etc/udev/hwdb.d/90-X220-keyboard.hwdb") > (lambda (port) > (display > "keyboard:dmi:bvn*:bvr*:bd*:svnLENOVO*:pn*:pvrThinkPadX220*\n" p= ort) > (display "KEYBOARD_KEY_7b=3Dcompose\n" port) > (display "KEYBOARD_KEY_39=3Denter\n" port) > (display "KEYBOARD_KEY_79=3Dspace\n" port) > (display "KEYBOARD_KEY_70=3Dtab\n" port) > (display "KEYBOARD_KEY_0f=3Dbackspace\n" port) > (display "KEYBOARD_KEY_3a=3Dhome\n" port) > (display "KEYBOARD_KEY_1c=3Dend\n" port) > (display "KEYBOARD_KEY_0e=3Dbackspace\n" port) > (display "KEYBOARD_KEY_7d=3Dbackspace\n" > port)))))) > > Is there a way to make guix system priotise my modified eudev over the > upstream one? No, you would need to rebuild with your eudev as a replacement. But let=E2=80=99s take a step back: is it possible to provide this hwdb with the udev-service? If not, perhaps we should augment the udev-service to not only accept udev rules, but also custom hwdb files. --=20 Ricardo