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

learn more… | top users | synonyms

4
votes
1answer
2k views

Why doesn't this udev rule trigger upon removal of the device?

I have two mice, one which has an issue where the middle mouse button and button6 get triggered simultaneously. So I configured my ~/.Xmodmap to disable this button. At the same time, however, I ...
0
votes
1answer
2k views

Fixed udev rules for USB modems

On gentoo i have 10 USB modems and every of them has 3 interfaces /dev/ttyUSB0, 1, 2 and so on for each modem. Sometimes their postitions can change, so it is very difficult to work with them. I'm ...
1
vote
1answer
492 views

Change value of USB “max_sectors” for an entire family of devices

I've been using Linux for a while, but only since I started using "recent" distros (ie.: anything non-Debian) I have started having I/O problems with most of my USB devices. Basically when trying to ...
2
votes
2answers
3k views

Network naming on Arch Linux

I've just installed Arch Linux on my old PC, to do the installation I used wifi-menu wlan0, now I've reboot but if I type: ifconfig wlan0 up I have as a result: wlan0: ERROR while getting ...
2
votes
1answer
245 views

What is the udev rule to allow specific thumb drive vendors?

How can I write a udev rule that whitelists specific vendors and doesn't allow other USB drives? Do I put it in /etc/udev/rules.d, or /lib/udev/rules.d? What command do I run to test if the rule is ...
1
vote
3answers
1k views

Restarting udev on centos6 (tethering a mobile phone using proxoid)

I am trying to use proxoid (a proxy server to allow tethering like facility for mobile phones). The https://code.google.com/p/proxoid/wiki/installationLinux says that I need to restart the process ...
2
votes
1answer
91 views

How to list all present optical drivers?

How can I list all the installed optical drivers with udev or any other core-based tool (perl is also very good) ? P.S.: I know about the wodim --devices command, but it's an undesirable ...
2
votes
2answers
383 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 ...
2
votes
1answer
2k views

How to execute a shellscript when I plug-in a USB-device

I want to execute a script when I plug in a device in my Linux machine. For example, run xinput on mouse or a backupscript on a certain drive. I have seen a lot of articles on this, most recently ...
1
vote
0answers
177 views

How to resume the ?WATCH command when a USB GPS is reconnected

I have some hacks to ensure that my USB GPS devices continues spitting data if disconnected, then reconnected. The devices are so flaky that they need restarting so as to continue transmitting data. ...
2
votes
1answer
399 views

Enable udev and speex support for pulseaudio

I tried to install pulse audio, but after running ./configure I got a warning message: ===== WARNING WARNING WARNING WARNING WARNING WARNING WARNING ===== You do not have udev support enabled. It is ...
1
vote
1answer
7k 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", ...
5
votes
1answer
601 views

What is the correct way to write a udev rule to stop a service under systemd

I'm running Arch Linux, and I have a udev rule which starts a service when a device is inserted. In this case, it dials a connection when a 3G modem is plugged in. KERNEL=="ttyUSB*", ...
3
votes
1answer
242 views

Removing device from USB hub triggers udev event for removing hub

I have a udev rule to halt the system when a usb hub is removed: SUBSYSTEM=="usb", ACTION=="remove", ENV{ID_VENDOR_ID}="050d", ENV{ID_MODEL_ID}="0237", RUN+="/sbin/halt" Unfortunately, this also ...
1
vote
1answer
345 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
0answers
255 views

Failed to execute shell script from “network” udev rule to change the MAC-address

I am trying to execute a shell script from udev rule, when a network interface is added, as follows: SUBSYSTEM=="net", ACTION=="add", KERNEL=="eth*", PROGRAM="/usr/local/bin/changemac.sh", ...
1
vote
1answer
576 views

Reserve Ports for modem

I have a modem with 16 ports using for sending SMS. When it's connected to my Linux machine, I get 16 ports from ttyUSB0 to ttyUSB15. Currently if I remove this modem and attached another it,I get it ...
3
votes
2answers
1k views

Udev Rule file for Modem not working

I am using modem for sending sms which has 16 ( ttyUSB0 to ttyUSB15 ) ports. I want to make udev rule to give device name "AMPM" and ports should be name Port1, Port2,...Port16. Check out this output ...
2
votes
0answers
127 views

Can a FAT32 and NTFS file system exist without UUID?

I have an USB disk drive partioned with 2 FAT32 partitions, which is not getting detected in the embedded device, but gets detected in a Fedora system. Basically in the udev rules, I am not able to ...
3
votes
1answer
1k views

FUSE : Allow any user in the fuse group to unmount

I'm currently trying to write a couple of systemd/udev configuration files that will allow me to automount/unmount MTP Android devices on my Archlinux laptop. It took me some time, but so far it works ...
4
votes
1answer
830 views

How does udev create /dev/sr*? (Or: Which rule does create /dev/sr*?)

udev is responsible for populating /dev. It adds and removes device nodes to /dev dynamically based on rules/configs/scripts under /lib/udev and /etc/udev/. If I have a CDROM device node /dev/sr0 I ...
3
votes
4answers
1k views

How to run long time process on Udev event?

I want to run a ppp connection when my USB modem is connected, so I use this udev rule: ACTION=="add", SUBSYSTEM=="tty", ATTRS{idVendor}=="16d8",\ RUN+="/usr/local/bin/newPPP.sh $env{DEVNAME}" ...
1
vote
2answers
622 views

RHEL 5.5 - Need to refresh /dev/disk/by-label links

I've added a fibrechannel disk to a RHEL 5.5 server. The disk is present and shows under /dev/sdxx - But I need to give udev a kick and have it refresh the /dev/disk/by-label/LABEL links; this is ...
1
vote
1answer
1k views

Network Interface Names output from ifconfig

So this has been driving me nuts for a good couple of hours, so I thought I'd ask about it here (let me know if there's a better forum for this question). I have a CentOS Virtual Machine on ESXi. I ...
3
votes
2answers
3k views

building my own initrd, how to populate dev directory

I am trying to learn stuff about initrd. I have followed this tutorial to build my own initrd from scratch, and I installed busybox on it. Then I made an .iso from it with isolinux, so I could test it ...
1
vote
1answer
895 views

Udev usb mouse rule

I am pretty new to udev and wanted to write a rule that upon connecting an usb mouse disables my touchpad. This is what I have come up with(mostly by ear): ACTION=="add", SUBSYSTEM=="input", ...
6
votes
2answers
2k views

Auto-run script when Wifi card is plugged in (udev)

I've been trying to use udev to make a Debian system run a bash script when a wireless card is connected. So far I created this file /etc/udev/rules.d/wifi-detect.rules: ACTION=="add", ...
7
votes
1answer
5k views

Understand output of `udevadm info -a -n /dev/sdb`

I plug an external HDD into my laptop. I try to find out the information by $ udevadm info -a -n /dev/sdb Udevadm info starts with the device specified by the devpath and then walks up the chain of ...
7
votes
2answers
2k views

How can I hide messages of udev?

When I plug in a usbhub (7 sticks in) udev displays a lot of messages in console. Can I hide these messages or send them to /dev/null?
4
votes
1answer
928 views

Problems copying large files to USB drive

I've got some issues when copying larger files to my USB drive. First of all, my system stopped recognizing my USB drives automatically. I now have to run modprobe usb-storage in order for my USB ...
1
vote
1answer
172 views

Monitoring interface changes with udev, especially if a route is set

Is there a way to monitor interface up/downs, especially to check if a route is setup or removed, with udev?
2
votes
0answers
2k views

Understanding udev rules and permissions in libusb

I had a problem with my scanner. Xsane worked only as root. Using it as normal user it didn't find any devices. Adding the user to the groups saned or scanner didn't help. Finally I solved the ...
0
votes
0answers
374 views

Automount in Xfce4 just stopped working

A little while ago my usb drives stopped auto mounting. It might have been after an update but not sure where to look. I have been manually mounting them as root and that is a pain. Is there maybe ...
2
votes
1answer
284 views

Prevent specific USB device from automounting

I have a SD card which is always inserted in my SD-card slot. However, I do not often use it (but do not want to take it out). Currently, it's being auto-mounted every time I start my computer. I feel ...
5
votes
1answer
2k views

Udev rule is not being used?

I'm setting up udev to handle my external USB hard drive when it gets plugged in and removed (no mounting yet). So far, I've made two new rules in /etc/udev/rules.d/10-local.rules to log ...
1
vote
0answers
419 views

How to achieve fast user switching with multiple graphics adapters, prevent virtual terminal switch?

My boxen has two video nVidia graphics adapters which I'd like to assign to separate seats, including virtual terminals. This question most likely isn't display manager specific, but in this case I'm ...
30
votes
4answers
42k views

How to reload udev rules without reboot?

How should one reload udev rules, so that newly created one can function? I'm running Arch Linux, and I don't have a udevstart command here. Also checked /etc/rc.d, no udev service there.
0
votes
0answers
526 views

upstart-udev-bridge is using 100% CPU (and a known fix doesn't help)

I'm running Linux Mint 12 on a Latitude D630 and every time I start my laptop (and sometimes when I come back from being suspended), top shows that upstart-udev-bridge is using 100% CPU (and if I do ...
3
votes
1answer
510 views

udev randomly mixing up ethernet devices on Debian Squeeze

Installing Squeeze with newer kernels on servers with 4, 6 or more interfaces, I keep getting this really annoying problem: interfaces are always mixed up across cards, and don't even follow ascending ...
4
votes
1answer
2k views

Udev triggers are not firing on insert of CF card into USB card reader (anymore)

I've got a udev rule that triggers a shell script that copies photos off my CF card when I insert the card into my USB card reader. This worked fine for a while. But after a recent upgrade it has ...
10
votes
2answers
5k views

In which log should I check for udev errors?

I've written a udev rule which is run each time my device is mounted/dismounted. However, in which Linux (Debian) error log should I check when debugging such rules?
3
votes
1answer
84 views

Starting backintime at disk plug

I use backintime, you can tell it to backup via backintime -b as user (not root, but I can change that if needed). Now I'd like it to start as soon as I plug my backup hd. As udev is likely the right ...
3
votes
1answer
254 views

UDEV assign ATTRS{variable} to ENV{variable}

I am writing my first udev rule. I read many how tos but can't find a way to assign ATTRS{variable} to ENV{variable} in order to have access to that variable from RUN like ...
2
votes
2answers
2k views

Where is the official udev source and other dev information?

I'm trying to find a changelog or commit history for udevd, but I can't seem to find the official source. Where is that?
2
votes
0answers
378 views

Automatically update MPD database upon external storage insertion

I have an Alix board in my living room running Voyage MPD edition and acting as jukebox. In order to play "guest" music, I would like that MPD automatically updates its database with the content of ...
2
votes
1answer
308 views

Differentiate between Galaxy Nexus and Galaxy Tab in UDEV rule?

I love Samsung devices, I have a Samsung Series 9 Laptop, Galaxy Nexus Phone (SCH-i515), and a Galaxy Tab 8.9 (GT-P7310) Tablet. For the most part, they're all great products. Samsung made one major ...
5
votes
1answer
2k views

How do I disable udevd in systemd?

I'm trying to boot a Fedora Rawhide LXC container from a Fedora 16 host, and it's not working - systemd just keeps dropping into emergency mode. Because udevd doesn't work in LXC containers, I thought ...
4
votes
3answers
2k views

Why is pcmanfm such a headache when it comes to mounting filesystems?

If I would have known how much 'customization' it takes to get LXDE and its default file manager, pcmanfm, just working, I would probably have never chosen to try it. I've got a problem. Lots of ...
4
votes
4answers
3k views

UDEV rule when USB flash drive is unplugged

I wrote a rule to automount my USB stick to certain folder but when I unplug it the folder still mounted and when I ls there I see a lot of errors like: Directory bread (block: NNNN) failed I tried ...
17
votes
2answers
13k 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 ...