help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Question] On defining udev rules in system configuration


From: Rodrigo Morales
Subject: Re: [Question] On defining udev rules in system configuration
Date: Mon, 18 Sep 2023 02:20:33 +0000

Solved! I had to also run =chmod= (see complete configuration for
=udev-service-type= below)

#+BEGIN_SRC scheme
(udev-service-type
 config =>
 (udev-configuration
  (inherit config)
  (rules
   `(,(udev-rule
       "90-backlight.rules"
       (string-append
        "ACTION==\"add\","
        "SUBSYSTEM==\"backlight\","
        "RUN+=\"/run/current-system/profile/bin/chgrp video
/sys/class/backlight/intel_backlight/brightness\""
        "\n"
        "ACTION==\"add\","
        "SUBSYSTEM==\"backlight\","
        "RUN+=\"/run/current-system/profile/bin/chmod g+w
/sys/class/backlight/intel_backlight/brightness\""))
     ,@(udev-configuration-rules config)))))
#+END_SRC



reply via email to

[Prev in Thread] Current Thread [Next in Thread]