unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Antwane Mason <ad.mason1413@gmail.com>
To: help-guix@gnu.org,
	 "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
Subject: Re: Udev Rule Not Triggered
Date: Sun, 29 Aug 2021 17:39:13 -0400	[thread overview]
Message-ID: <CAAztfgK86ZGL4vPdEoW1aWs0SZRqkJCUP4=LaZKpBM=9j0YHrA@mail.gmail.com> (raw)
In-Reply-To: <CAAztfgLEcotH7BjmDctAMhuqbsCtkTDr1T5bUymZjJ_+d34kTQ@mail.gmail.com>

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

  reply	other threads:[~2021-08-29 21:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-29 13:39 Udev Rule Not Triggered Antwane Mason
2021-08-29 13:53 ` pelzflorian (Florian Pelz)
2021-08-29 14:01   ` Antwane Mason
2021-08-29 14:28     ` pelzflorian (Florian Pelz)
2021-08-29 14:42       ` pelzflorian (Florian Pelz)
2021-08-29 15:22         ` Antwane Mason
2021-08-29 15:44           ` Antwane Mason
2021-08-29 17:23             ` pelzflorian (Florian Pelz)
2021-08-29 18:54               ` Antwane Mason
2021-08-29 21:39                 ` Antwane Mason [this message]
2021-08-29 22:12                   ` pelzflorian (Florian Pelz)
2021-08-29 22:17     ` Tobias Geerinckx-Rice
2021-08-31 21:59       ` Antwane Mason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAztfgK86ZGL4vPdEoW1aWs0SZRqkJCUP4=LaZKpBM=9j0YHrA@mail.gmail.com' \
    --to=ad.mason1413@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=pelzflorian@pelzflorian.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).