From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6PJFG53+K2FfdAEAgWs5BA (envelope-from ) for ; Sun, 29 Aug 2021 23:39:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WC/GFp3+K2EyZAAAB5/wlQ (envelope-from ) for ; Sun, 29 Aug 2021 21:39:41 +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 BD1A4E8DB for ; Sun, 29 Aug 2021 23:39:40 +0200 (CEST) Received: from localhost ([::1]:52892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKSWh-0003nF-EL for larch@yhetil.org; Sun, 29 Aug 2021 17:39:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKSWW-0003mr-R0 for help-guix@gnu.org; Sun, 29 Aug 2021 17:39:28 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:43910) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKSWU-0002tU-Ry for help-guix@gnu.org; Sun, 29 Aug 2021 17:39:28 -0400 Received: by mail-ej1-x62b.google.com with SMTP id ia27so26913660ejc.10 for ; Sun, 29 Aug 2021 14:39:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=RPclSl7G8VppRQ3OgMonbJzil2RZY/HboBNCiB32EaI=; b=B0WuAUiMJ7VIF0oPc6tcsGkdBIgbIHsFB3AuRACVmt22+c1ftsVI0nS9i7rrzMJ/UQ BoP6WDWmDUtsKRKAQ5695dQemu8JyAcHAqpalJ3BBVWAz6d9xu7s70Q4IdgVTSMEpBop IJC9eo9mluISn0MuLHUz3JywdCLol07LadoTWXKwPfEiiWDxoJq2DNRFVW/1QHzNlRGm 5qbV665j8xCX8aYRGUlUfvEkz2kXieDr3H++nb8MSTENNFCMp/QLhvMFpg6FJwsKPPaO IxNNh4Ld6tPx4oBmVnqcaSXT6r4dHKYe6Av4GWtW/C5hEeZfT69Xyg3nhz1iE6FBLFof 0RVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=RPclSl7G8VppRQ3OgMonbJzil2RZY/HboBNCiB32EaI=; b=PK42cl2gcXs0c35LfEnk/wBh0gHPCiCaoSJuUEoh5WJlol+gcLtGPLC3XLOhZ0rF3z 9CM0u+kMQCV/lfRVVdt7DoICCYUNBLpIUihHWk7sv76OfQJIjelXklVAppJRgSiy7yIq pLTiFcZZC3rFhGUv5ydXTISAjrZ4kz8J7baX1+BjCdY+IlGU3s8/5qHXwf//yiwV8nQp CxI25gxbz9ZrSWJToRJtjMthenQKsWywBgIkgB1DX2r9GfKXlTXPwvrHogKAYQqsh6lZ UY7+FNElzLHItgl/XoRPifE6wkIaORilCCtAHAsFqzKDPomeT9CFq5uPOGz7a4Bwx1Vk caJg== X-Gm-Message-State: AOAM532LFeFs6kQwwAP+TnLpRe4HH5gvWbxvOyJAq7f+e5lP+C8Nta8f n2iRnyp3ANOhqDS1+cMoCoaKJDxMT1slKJxOWjeybEapF9+plw== X-Google-Smtp-Source: ABdhPJwJqDosUc58+Mz4DOAlN/PARqJqm3vqFhqqVeSfy3oh6vb9UQUXlJTAEAulbZjz7PuDWDM1p0+8Eu0azMSYZyg= X-Received: by 2002:a17:906:a195:: with SMTP id s21mr21809314ejy.181.1630273164586; Sun, 29 Aug 2021 14:39:24 -0700 (PDT) MIME-Version: 1.0 References: <20210829135351.t74ak2maimzfckro@pelzflorian.localdomain> <20210829142808.7wsitnwrmsxudynn@pelzflorian.localdomain> <20210829144200.3rzxztcm7q4z2hkq@pelzflorian.localdomain> <20210829172309.hidcy4pyqmzhksf6@pelzflorian.localdomain> In-Reply-To: From: Antwane Mason Date: Sun, 29 Aug 2021 17:39:13 -0400 Message-ID: Subject: Re: Udev Rule Not Triggered To: help-guix@gnu.org, "pelzflorian (Florian Pelz)" Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=ad.mason1413@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630273180; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=VtOYezKyCK6YuPFEU0cmooOjJb1yrtCXlBoGJceK2Nk=; b=iryjet7Nanl+g7nNGBA2TgYVTgijKLdBSSLe9FRP6zTmtyoTTOKW0aozzKSIme633/UKLk yxkO5eZjkRHLUXg+FexXhjLKFH6+Yf9HO+louVfDV026VrpdKN5CugRbuWI+EIaFgsTfBC btQT43bbOydnSGnLoEEKy38naSapazoIQ1833QvUzACYCEEhZyZOnlBBN35pCtwRaHPmDJ XFmQS7WHvlYjoItXvAPDhQGqRLfVMJ2IF0Q3ugFyc3GanxsRQ0CeQqfAHLN7aptU+oiDIg MXfSyx2RN80cjBiBXaEX2Eh7QhgxzYIYskwXc+LkyB8I8sbuX0CtKUoIFBmfAA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630273180; a=rsa-sha256; cv=none; b=V6R3DNuSMl3RcJEvZaa7qIbMiHvc/E1sBPlEk9H4qmsugpDmogMxi+ydzYNBnUj7N6Rj4N NMSU7Pu/ypXw+zir0B+zoy8Uc0vSSvBRQxk39URnmm8guesKnn+73oB3ec4JQuQQru+4nU mkrUqizBQo0XWlJzzxLOieiSO4gni0aQ3xpo/IvOsNgaWsXHc4vzEyyjtTDrmX4HuCGIgx Lvfl4q+jeNr76GYD+CErlsu5nmRD3j4A5ySjn1QrXR1CB0P2hab4Od/0ZVbPfywLv5cqUR WSHLCNpQEa3M5f7qPViAh41NR7oTavlza6MOUai3sThxb0X7gkQrfOk0jo1GJw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=B0WuAUiM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Migadu-Spam-Score: 0.18 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=B0WuAUiM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Migadu-Queue-Id: BD1A4E8DB X-Spam-Score: 0.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: dpLnqOYjc5SU I'm honestly not sure what fixed the issue, but I am successfully able to use the onlykey-cli without root privileges. I suspect the issue was my method of testing whether a udev rule was being triggered actually was interfering with it working. I used "udevadm test" and noticed two things. First, was even when I was able to run onlykey-cli without root privileges, running the test command did not show that the udev rule was triggered. Second, each time the test command was performed, I had to restart the computer before onlykey-cli would work again. In addition to "udevadm test" being a potential cause of my issues, it is unclear whether my system config changes also contributed to the solution. Instead of creating a standalone udev rule service as I had originally, I adapted the config from https://lists.gnu.org/archive/html/help-guix/2018-05/msg00159.html and modified the udev service type to include the udev rules for the onlykey. I also imported the rules directly from github rather than manually transcribing the rule as before. I'm going to call it a day and try to do some exploration another day to figure out the root cause. For now, I just wanted to say thank you, Florian, for your help today. I hope this information can save someone else some headaches in the future. If I find out the root cause, I'll be sure to follow up here as well. onlykey udev rule definition and extension of udev service type --8<---------------cut here---------------start------------->8--- (define %onlykey-udev-rule (file->udev-rule "49-onlykey.rules" (let ((version "v1.2.5")) (origin (method url-fetch) (uri "https://raw.githubusercontent.com/M0Rf30/https://raw.githubusercontent.com/trustcrypto/trustcrypto.github.io/master/49-onlykey.rules") (sha256 (base32 "1pj9i4hp0d74073x1qqwigd0cyriamg65zmx2j98mi0k66qrhcxa")))))) (define %my-services (modify-services %desktop-services (udev-service-type config => (udev-configuration (inherit config) (rules (append (udev-configuration-rules config) (list %onlykey-udev-rule))))))) --8<---------------cut here---------------end--------------->8--- service field definition --8<---------------cut here---------------start------------->8--- (services (append (list (service gnome-desktop-service-type) (service xfce-desktop-service-type) (bluetooth-service #:auto-enable? #t) (set-xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout)))) %my-services)) --8<---------------cut here---------------end--------------->8--- Regards, Antwane