Results 1 to 1 of 1

Thread: udev rules runs earlier than /sys/device is ready.

  1. #1
    Join Date
    May 2009
    Location
    Ontario, Canada
    Beans
    67
    Distro
    Ubuntu 14.04 Trusty Tahr

    Question udev rules runs earlier than /sys/device is ready.

    I was trying to speed up thinkpad trackpoint.

    Set /etc/udev/rules.d/10-trackpoint.rules as:
    SUBSYSTEM=="serio", DRIVER=="psmouse", ATTR{speed}="220", ATTR{sensitivity}="190"

    Verified by calling # udevadm trigger
    it works fine, but does't work on system boots.

    /var/log/syslog:
    Code:
    Jul 11 22:31:19 t60p udevd-work[356]: error opening ATTR{/sys/devices/platform/i8042/serio1/serio2/speed} for writing: No such file or directory
    Jul 11 22:31:19 t60p udevd-work[356]: error opening ATTR{/sys/devices/platform/i8042/serio1/serio2/sensitivity} for writing: No such file or directory
    It seems when rules are called, the /sys/devices/platform/i8042/serio1/serio2 is not ready yet.

    Also, try directly assigning {speed} & {sensitivity} values in /etc/rc.local, same situation "No such file or directory"

    But after user login, just call # udevadm test /sys/... or # udevadm trigger, it works.

    Check /sys/devices/platform/i8042/serio1/serio2/speed | sensitivity files they are actually newer than those timestamps in syslog.

    Could not find documentation explaining how /sys/devices system is generated upon system boot, nor when and how udev rules are called on system boot.

    Anyone, please share your knowledge, or simply point me to some useful documentation. I need to figure out these.

    Great thanks,
    Last edited by legendbb; July 12th, 2011 at 04:44 AM.

Tags for this Thread

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
  •