The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
1answer
692 views

Debian Lenny expects udev on a vps that doesn't support it

Primary symptom: /proc/self/fd is there and normally populated, however /dev/fd is not. Process substitution therefore fails, because bash wants to create files under /dev/fd. /dev/.static/ and /dev/...
1
vote
1answer
400 views

Udev rule is not working

I use Gentoo. I write a udev rule. localhost biergaizi # cat /etc/udev/rules.d/91-change-schduler.rules #SUBSYSTEMS=="usb", KERNEL=="sd??", ACTION=="add", RUN+="echo deadline > /sys/block/%k/...
14
votes
6answers
26k views

Using udev rules to run a script on USB insertion

I'm trying to set up a script to run every time I plug in a USB device. I created the file /etc/udev/rules.d/90-local.rules and added the following rule: ACTION=="add", SUBSYSTEM=="usb", KERNEL=="sd*...
3
votes
2answers
310 views

Use USB numeric keypad with phone-like typing?

I have USB numeric keypad like this: I need to write chars (A to Z) on this keyboard, and so my idea is to use it like on old cell phone: If I press 1x 2 it writes A, 2x 2 - B, 4x 9 - Z, etc. ...
3
votes
2answers
3k views

Use UUID in udev rules and mount usb drive on /media/$UUID

I want to mount the usb drive in /media based on the UUID of the disk. How can I use the UUID of a usb drive in a udev rules file and what is a udev rule to mount the usb drive with the UUID number ...
2
votes
2answers
7k views

Reloading udev rules fails

I've changed my rules in /etc/udev/rules.d (Ubuntu) to change my ethernet port names from 0 to 1 and 1 to 2, however whenever I run: sudo service udev restart sudo udevadm control --reload-...
0
votes
2answers
60 views

How do I use ENV{SYSTEMD_USER_WANTS}= in udev rule?

I want to set up a docked.target in my user level systemd. The idea is to run some services to configure my external displays. I currently have this as my rule: SUBSYSTEM=="usb", ACTION=="add", ENV{...
0
votes
1answer
384 views

udev rules doesn't work with small number

I was writing a udev rule that makes use of the ID_PATH, just to make the device persistent against the port it's inserted in. So here is what I have KERNEL=="ttyUSB?",SUBSYSTEM=="tty",ENV{ID_BUS}=...