Results 1 to 4 of 4

Thread: Trying to write udev rule, part 1

  1. #1
    Join Date
    Nov 2007
    Beans
    145

    Trying to write udev rule, part 1

    L-Ubuntu 14.04, udev 204-5ubuntu20.15 (most recent).

    Problem 1: man udev says that udev reads its rules from

    /usr/lib/udev/rules.d
    /run/udev/rules.d and
    /etc/udev/rules.d

    The first 2 of these do not exist. There are rules files in the 3rd, also
    in /lib/udev/rules.d My first Q is: how can I find out which if any
    of these rules does udev read, say on reboot?

    Problem 2: I wrote a udev rule file, which does not work as hoped.
    Please is there a way to find out which rules got applied when I
    plugged in the device?

    Thank you.

  2. #2
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,952

    Re: Trying to write udev rule, part 1

    Quote Originally Posted by mringer View Post
    Problem 1: man udev says that udev reads its rules from

    /usr/lib/udev/rules.d
    /run/udev/rules.d and
    /etc/udev/rules.d

    The first 2 of these do not exist.
    Instead of /usr/lib/udev/rules.d, try /lib/udev/rules.d
    If the manpage is incorrect, please file a bug report.

    Quote Originally Posted by mringer View Post
    Problem 2: I wrote a udev rule file, which does not work as hoped.
    Please is there a way to find out which rules got applied when I
    plugged in the device?
    Are you asking if your device got hijacked by some other rule?
    Or are you asking for ways to troubleshoot the rule you wrote?

  3. #3
    Join Date
    Nov 2007
    Beans
    145

    Re: Trying to write udev rule, part 1

    Quote Originally Posted by ian-weisser View Post
    Instead of /usr/lib/udev/rules.d, try /lib/udev/rules.d
    If the manpage is incorrect, please file a bug report.



    Are you asking if your device got hijacked by some other rule?
    Or are you asking for ways to troubleshoot the rule you wrote?
    Thank you for your reply. I will try to file a report.

    I think I am asking: has the device been grabbed by some other rule?

    Thank you, Mark

  4. #4
    Join Date
    Nov 2007
    Beans
    145

    Re: Trying to write udev rule, part 1

    I have now attempted to file a bug report. "udev errror in man page".

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •