Udev is a Linux process that manages device file entries under /dev

learn more… | top users | synonyms

7
votes
1answer
1k views

USB connect/disconnect notification

I use Linux Mint 13 MATE, and I'm trying to set up notifications when I plug/unplug devices. First of all, I found udev-notify package, but unfortunately it almost doesn't work for me: it works for ...
2
votes
0answers
11 views

Trouble getting USB printer to 'stick' using udevadm

What I’ve got so far $ udevadm info -a -p$(udevadm info --q path -n /dev/usb/lp1) | grep serial ATTRS{serial}=="544336460792090000" /etc/udev/rules.d/50-udev.rules: SUBSYSTEM=="usb", ...
5
votes
5answers
13k views

Ubuntu 13.04 does not recognize USB drive

Using Ubuntu 13.04 (with Gnome 3), my new USB stick (details see dmesg/lsusb) doesn't show up automatically. Situation: The drive does not show up at fdisk -l The drive does appear when running ...
1
vote
1answer
18 views

UDEV Rule Not Triggering

I have gone through 10s of answers on this and other sites trying to debug my udev rule, but to no avail. The rule is very simple: I want to lock my screen when my Yubikey is unplugged. My rule is ...
4
votes
1answer
51 views

how to write a udev rule to remove a tag?

Is it possible to write a new udev rule that undoes TAG+="uaccess" (removes the uaccess tag) without undoing any of the other tags on a device? If so, how? (I have a device that should be opened by ...
0
votes
0answers
13 views

serial port devices not found on bootup

I am running linux kernel 3.9.2 on my embedded device. I have this standalone program called usb_device_label.c, which checks for various USB devices connected and passes the information to main ...
0
votes
0answers
11 views

Error to install svn on ubuntu 14.04

I tried to install SVN on ubuntu 14.04 and got the following error: $ sudo apt-get install subversion apache2 libapache2-svn apache2-utils * udev requires hotplug support, not started ... fail! E: ...
2
votes
2answers
1k views

udev rule for usb attach/detach not triggering

I'm running RHEL6 and I'm trying to write a udev rule that is triggered upon plugging in and removing usb devices. I created a file called 80-usb.rules in /etc/udev/rules.d/ and I gave it the ...
1
vote
0answers
74 views

No ttyUSB when connecting USB-RS485 to Beaglebone Black

I'm trying to connect a externally powered board to control the motors of a robot to my BeagleBone Black. I'm using ssh over USB(the mini-usb) to control the Beaglebone from my laptop. The BBB is ...
30
votes
9answers
9k views

A tool for automatically applying RandR configuration when external display is plugged in

is there a tool which enables one to: remember current RandR configuration (position, orientation, resolution etc) on per-monitor basis, automatically apply last known good configuration as soon as ...
11
votes
3answers
610 views

Are there alternatives to using `udev`?

While I understand the greatness of udev and appreciate the developers' effort, I was simply wondering if there is an alternative to it. For instance, I might imagine there should be a way to make ...
1
vote
0answers
12 views

udevadm trigger runs only one rule

I have 1294:1320 RISO KAGAKU device on F17. The problem is after sleep/resume hid reclaims this device back and its udev rule is ignored. If I unplug and plug in the device it is OK until next ...
6
votes
2answers
11k views

Udev : renaming my network interface

I just installed RHEL 6.3 on a Dell 1950 server. This server as two GBit ports, Gb0 and Gb1. For some obscure reason, udev chose to name Gb0 eth1 and Gb1 eth0. This is definitly not a good find for ...
1
vote
1answer
442 views

Why do I not seem to have hidraw options on my system, and how can I fix my usb devices?

Starting today, I noticed a few problems with my system. USB devices, including the internal ones such as microphones, don't seem to be working at all. I first noticed when my keyboard and mouse ...
2
votes
1answer
53 views

Udev RUN rule to run touch has no effect

I've created the file bellow $ cat /etc/udev/rules.d/10-tuned.rules SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_STATUS}=="Charging", RUN+="touch /home/fx/charg" SUBSYSTEM=="power_supply", ...
0
votes
1answer
1k views

Consistent network interface name ubuntu using pci slot

One can set consistent interface naming via mac address by modifying /etc/udev/rules.d/70-persistent-net.rules. Can you establish consistent interface naming by PCI slot number? (I tried but failed) ...
0
votes
0answers
19 views

udev rule not working with su [duplicate]

I want to run a simple script when I plug in a monitor, and here is my rule: KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/user/.Xauthority", RUN+="/home/user/auto.sh" ...
4
votes
1answer
419 views

lshw lists my drive but it has no /dev file

Ive just got a dedicated server which has 2x 1TB HDD. However when I type df -h I get the following: [root@sd-56537 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 916G ...
1
vote
0answers
53 views

/dev/disk/by-id creating wrong symlinks for harddrive

I'm running into an interesting problem where on reboots and power cycles, my harddrives will occasionally be given the wrong symlink in /dev/disk/by-id. For example, when I issue ls /dev/disk/by-id I ...
1
vote
1answer
31 views

arch linux recognizes the partitions and hard disks wrongly

My arch Linux system does not recognize neither the partition nor the hard disk in which it is installed. it is installed on /dev/sdb1 but it recognizes that as /dev/sdc1 and the initialization goes ...
2
votes
1answer
48 views

Get ID and Mounted location of an USB

I need to find a way of retrieving the ID and Mounted Location for USB devices. I've found two commands that gives me what i want, but i haven't find how to associate them.. rsm@matrice:~$ lsusb Bus ...
1
vote
0answers
16 views

System doesn't see HDMI attached tv&receiver until reboot

When my system starts and receiver with tv are disabled during boot, then system will not see them even if later I will replug hdmi cable. To make receiver/tv visible to the system, I must leave them ...
2
votes
1answer
534 views

XFCE on Debian: hiding block devices

I'm running XFCE 4.8 on Debian Wheezy and I can't find a clean way to hide a block device (system's SATA/SSD drive) on the desktop, but still be able to see / mount removable devices via Thunar. The ...
1
vote
2answers
120 views

Arch, Ubuntu: So what's the deal with libudev.so.0?

I'm interested in building Linux desktop apps with Web front-end technologies. Both platforms I've tried -- Chromium Embedded Framework/CEFPython, and Awesomium, seem to have a dependency on ...
2
votes
0answers
45 views

How do I get ata-style IDs in /dev/disk/by-id to work for USB disks?

I have USB drive dock that I'm plugging SATA drives into. The way they show up in /dev/disk/by-id seems to be dependent on whether the drive has a partition table (usb if not, ata if yes). This makes ...
2
votes
1answer
25 views

stop an external hard disk from being in group floppy

I have an external hard-disk, connected by usb. Because it is external, the /dev file for it is in group floppy. However I use it as if it is internal. I also sometimes format sd cards and other usb ...
0
votes
0answers
27 views

How to modify rights automatically when I plug a usb device ?

I am running CentOS 6.6. I need to get specific rights (666) on /dev/bus/usb/... when I plug a specifc usb board (Digilent FPGA board). Otherwise my software complains about LIBSUB_ERROR_ACCESS. It ...
2
votes
1answer
25 views

create several /dev/xconsole files automatically upon boot

I understand from my previous question that the /dev/xconsole file can be created using mkfifo. On my system (Debian Wheezy), /dev/xconsole gets created automatically. I am wondering who creates it ...
3
votes
1answer
966 views

What's wrong with this udev rule?

I'm reading through this link in trying to make the appropriate rule to make the BSG device nodes have group ownership of wheel and permissions of 0660. This is the rule that I have: [user@mylinux ...
1
vote
0answers
36 views

UDEV rule to run partprobe on loop device

I use udisks2 to mount raw image over a loop device: udisksctl -f image.img --no-user-interaction Policykit is configured, so no errors here. For some reason kernel does not want to re-read ...
18
votes
2answers
16k views

How to run custom scripts upon USB device plug-in?

What is the state-of-the-art method for automatically executing custom scripts upon USB device plug-in under current Linux distributions like Debian/CentOS/Fedora? For example if you want to ...
2
votes
1answer
202 views

How to get device filename from lsusb output or by device path

Related question: USB connect/disconnect notification When the device is plugged/unplugged, I get instant notification, that's great. But to make it (almost) perfect, I also want to get device ...
2
votes
1answer
51 views

How to disable USB devices based on their vendor ID on GNU/Linux?

In that question someone wanted a blacklist for all USB devices, and then only allow specific devices. In this question, we want to accept all USB devices, but prevent the driver (e.g. cdc_acm) from ...
1
vote
0answers
63 views

Udev running hibernation script

I have this udev rule that launches a script when the battery level is 5% or below: $ cat /etc/udev/rules.d/90-lowbat.rules: SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ...
1
vote
0answers
19 views

How to disable USB Keyboard at run time from udev.c not from udev rules

I want to disable my USB keyboard at boot time (in some scenarios) without modifying udev rules, as I know udev rules only works when a device is attached or detached from the target. Is there any ...
1
vote
0answers
60 views

How to populate /etc/network/interfaces automatically

I am trying to populate /etc/network/interfaces with a dhcp config for all interfaces at the first system boot (Debian 7.6 server). I modified the script in : /lib/udev/write_net_rules by adding: ...
1
vote
1answer
71 views

Auto-hibernate with udev rule

I'm using Debian Jessie with systemd. In the past I've used an acpid script that let's my computer hibernate when the battery is 5% or below. In an attempt to make a replacement for that I've made ...
1
vote
0answers
22 views

Unable to unmount a partition - respawned by udev

I have set up the udev rules to automatically mount/unmount the removable devices with udev rules based on this answer (have not enough reputation to comment there). The setup works fine, but when I ...
0
votes
0answers
16 views

How do I get a udev rule that used to work in older versions to work in Linux Mint 17 [duplicate]

I've been using this udev rule for probably ten years: ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", NAME="FTDI/$attr{serial}", MODE="666" I'm sure it's typed correctly as every time I install ...
2
votes
2answers
50 views

Is there a udev attribute/something that determines whether a device is a USB drive or not?

I am trying to create a UDEV rule to match/allow the use of USB devices. However, there is a twist. I want to be able to use only USB mass storage. Is there a unique UDEV parameter that can be used ...
2
votes
2answers
11k views

PuTTY can access serial port as /dev/ttyUSB0, but not as named udev device

I have multiple USB-to-serial converters. I need to access one of them in particular. I'm using a udev rule to give it a special name. I have rebooted since I last modified it. SUBSYSTEM=="usb", ...
1
vote
0answers
44 views

Failing to load a module on udev event

I have a pretty simple udev rule which is executed when a USB is plugged into my Debian machine: SUBSYSTEMS=="usb", KERNEL=="sd?", ACTION=="add", RUN+="/usr/local/bin/USB/t.sh \ %k" My t.sh is also ...
1
vote
0answers
200 views

Udev rule not working on Debian

I can detect and mount my USB drive on my Debian VM machine. And the first post here - explained below - works on my Ubuntu machine. Should not it work on Debian too? It doesn't of course. Why is ...
0
votes
0answers
49 views

Ubuntu 14.04 HDMI UDev Script

I have tried multiple variations to this script but I cannot get it to work. The UDEV Rule fires the script and the script exectutes but simply does not change the audio profile. If I run the script ...
0
votes
2answers
992 views

udev rule trouble on a Raspberry Pi (Raspbrian) using an ACR122U card reader

I am trying to get my ACR122U usable by all users on my Pi. I have the drivers installed correctly and nfc-list is working for root: root@raspberrypi:/etc/udev/rules.d# nfc-list nfc-list uses libnfc ...
1
vote
0answers
16 views

character device file (rtai_shm) disappears under runlevel=5 in fedora9 (exists when runlevel=3)

I am trying to run Realtime (RTAI) on my Linux Fedora 9 machine. For that, it is needed to have a character device file, named rtai_shm, in /dev, that takes care of shared memory. I have made this ...
2
votes
3answers
528 views

Why doesn't xsetwacom work from udev?

I made a script to rotate my Wacom Bamboo tablet 180 degrees. It works fine when I execute it as myself (user) or root, but when started from udev (i.e. when plugging the tablet into a usb port) it ...
1
vote
0answers
143 views

udev rules fail to run a script on addition of usb device

Here is a simple rule I created in /etc/udev/rules.d/21-persistent-local.rules for my Seagate 500 GB expansion drive which uses a USB interface on a Debian machine running inside a VM. ...
2
votes
2answers
67 views

mount is not executed when called by udev

I tried to create some udev rules to mount and unmount my USB flash drives; the rules for the moment are very simple: ACTION=="add",KERNEL=="sd[b-z]",RUN+="/root/scripts/plug_flash_drive.sh %k" ...
4
votes
1answer
972 views

can not create /dev/shm

I need to create /dev/shm on an embedded ARM system. From "Installed The Latest Changes to Current and......". I see that it can be created with mkdir /lib/udev/devices/shm, but I'm wondering what ...