Questions tagged [udev]

The kernel's device manager, responsible for the contents of /dev.

udev is the Linux kernel's generic device manager.

Primarily, it manages device nodes in /dev. It is the successor of devfs and hotplug, so it handles the /dev directory and all user space actions when adding and removing devices, including firmware load.

Source: Copied with modification from udev on Wikipedia.

Links:

676 questions
84
votes
4 answers

I can read from /dev/null; how to fix it?

I read the Wikipedia article on /dev/null and was playing around by moving files to /dev/null. For this I created a test_file and put some contents in it: $ touch test_file $ echo "This is written by Aditya" > test_file $ cat test_file This is…
Aditya
  • 13,416
10
votes
3 answers

Why do my udev rules run if I use udevadm trigger, but NOT at boot time?

I'm having trouble with udev rules not running. Here's an example: I have a rule /etc/udev/rules.d/99-test.rules which contains: ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x8086", RUN+="/sayhi" And sayhi just has: #!/bin/bash date +"%Y-%m-%d…
Daniel
  • 460
8
votes
1 answer

How does automated hotplug mounting work?

I was reading a bit about gnome-mount, HAL, udev, etc. It left me with a couple of faint ideas how mounting a hotplug device might work in the latest Ubuntu release. Could someone give a detailed explanation about what exactly is going on after a…
koloman
  • 347
7
votes
3 answers

udev Run commands not running

I'm trying to create a udev rule to unlock my computer when I connect my phone by USB. I could not find that that rule was being ran and so I tried a much simpler rule. This is the rule (anonymized) : KERNEL=="sd?1", ATTRS{idVendor}=="****",…
Andrew Redd
  • 2,157
6
votes
1 answer

0% usage on udev (/dev) partition

On two Ubuntu VMs I have a filesystem under the name udev with a size of 7.4G and 0% used. It's mounted on /dev. Just wondering if this low usage is normal behavior.
William
  • 163
6
votes
2 answers

How do I make udev rules work?

I would like to learn udev rules. Here is what I do: victor@X301A1:~$ ls /etc/udev/rules.d/ 70-persistent-cd.rules 70-persistent-net.rules README Then: victor@X301A1:~$ sudo gedit /etc/udev/rules.d/01-my-first-udev.rules My rule: ACTION=="add",…
5
votes
1 answer

udev not running remove events

I have two rules one for when a device, my phone, is connected and one for when it is disconnected. The rule for add runs the remove rule does not. Here is my udev rule. I simplified but the remove event does not run. #RUNS: KERNEL=="sd?1",…
Andrew Redd
  • 2,157
4
votes
2 answers

udev rules.d - hot plug HDMI monitor - script not running

I am trying to get a script to run every time my HDMI monitor is plugged in and after doing some reading I found this and in it asks me to create 99-monitor-hotplug.rules and put it /etc/udev/rules.d and specify which script I want to run. The rule…
rwx
  • 163
4
votes
1 answer

Problem with executing udev rules for olimex's avr-usb-jtag

I'm using Ubuntu 12.04 for programming purposes and recently decided to bring my previous atmel's micro-controller projects from Win to Linux. Namely AVR. I installed the tool chain all right. It includes: avrdude binutils-avr gcc-avr avr-libc…
Anton
  • 43
3
votes
2 answers

udev script does not start when event happen

I was annoyed that every time I connect my hdmi cable I need to manually change the sound setting. I started looking into udev rules, what I came out with are these two files: /etc/udev/rules.d/99-hdmi_sound.rules SUBSYSTEM=="drm",…
guy
  • 141
  • 5
3
votes
2 answers

How to symlink a device throught udev and always point to the same device?

I have the following udev rule for a USB thermal printer that works with serial through usb: SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c8a", ATTRS{idProduct}=="3001", SYMLINK+="ttyS99", MODE="0660", GROUP="lp" output of ls -la: lrwxrwxrwx 1 root root 7…
2
votes
1 answer

How can I see udev actions at runtime?

Does there exist a udev command that allows me to see in real time (at run time) on the terminal the creation of the device node when newly device is attached? A little bit as happens when using the tail command to visualize the log: tail -f…
applejtter
  • 41
  • 1
  • 1
  • 5
2
votes
1 answer

If udev service create /dev files then what is the need of mknod command?

Iam trying to understand mknod command, but got stuck here .In linux udev service detects devices connected to the linux machine ,then what is the need of the mknod command .please help..
2
votes
1 answer

Usb udev rule never worked for me

I try to have a USB device recognized as being part of my user group. So I don't have to issue a sudo during development time when I debug my program which access those devices. Especially painful when using Netbean or Eclipse. The udev rules never…
user254885
  • 21
  • 2
2
votes
2 answers

Doubts about symbolic link Printer Brother all-in-one

I have a doubt and confusion regarding symlinks on settings of "Brother MFC-660CN printer" I installed the drivers through an installation file of the website Brother The file is "linux-1.0-installer-brfax" Installed everything right without errors…
Lc1975
  • 56
  • 1
  • 4
1
2 3