Tag Info

New answers tagged

0

To see what happens you can run sudo udevadm monitor in one terminal and then trigger the wanted event with sudo udevadm trigger --action=add --subsystem-match=module The monitor will show the events seen by udev. Your problem is probably that in your scripts mknod and rm are not found as no PATH is set by udev. Use absolute pathnames or set a PATH at ...


0

In the end it came down to syntax, ugh! In /usr/local/etc/sane.d/artec_eplus48u.conf each item EXCEPT the line beginning usb must be preceded by: option Revised version that works: # artec_eplus48u - SANE Backend configuration file # # SANE does not support hardware buttons # Every device configuration must begin with a usb entry in this form: # usb ...


1

You may use PROGRAM to check if your program is running to activate that UDEV rule, otherwise it is disabled because pgrep returns unsuccessfully. PROGRAM Execute a program to determine whether there is a match; the key is true if the program returns successfully. The device properties are made available to the executed program in the environment. ...


2

sudo evtest should give you a list of devices you can get scancodes for. One of them should have the foot pedal's name, so input the eventnumber you can see beside it. Then, once you use the pedal, you should see the scancode on the screen (after (MSC_SCAN), value). For example, here: Testing ... (interrupt to exit) Event: time 1413649733.746534, ...


0

What works for me, adding delay (sleep) and disown the script that has delay using an intermediate script. RUN{type} ... This can only be used for very short-running foreground tasks. Running an event process for a long period of time may block all further events for this or a dependent device. Starting daemons or other ...


1

7.3.3.6. Device naming order changes randomly after rebooting This is due to the fact that Udev, by design, handles uevents and loads modules in parallel, and thus in an unpredictable order. This will never be “fixed”. You should not rely upon the kernel device names being stable. Instead, create your own rules that make symlinks with stable names ...



Top 50 recent answers are included