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

learn more… | top users | synonyms

1
vote
1answer
325 views

Udev rules involving X11 don't run on startup

I have some udev rules written to run when I connect certain usb devices. For example, I change pointer velocity for certain mice, and change xmodmaps for particular keyboards. The scripts work well ...
1
vote
1answer
173 views

Udev: running a shellscript that accesses an X display [duplicate]

After getting my 3g-modem to work in Arch Linux I wanted to eliminate some manual labour required in the process. Hence I needed to create an udev rule. After some trial and error I came up with the ...
2
votes
1answer
924 views

“PS/2 Generic Mouse” gets lost. How to reload without reboot?

I am running Ubuntu 12.04LTS on a ThinkPad E420s. My Trackpoint is recognized as "PS/2 Generic Mouse". My problem is that it doesn't load/disappears after booting or after suspension. I can't move ...
1
vote
3answers
350 views

udevd eats too many CPU cycles

It sits at around 64% CPU usage, but only because rsyslog is taking pretty much the rest of it (struggling to keep up). I am getting these sorts of messages on /var/log/syslog: Jun 5 23:59:38 vab ...
1
vote
0answers
341 views

Check if Keyboard and Mouse are plugged in

Is there a way to detect if a keyboard and a mouse is plugged in (and working) in Linux? This will be embedded in a PXE setup, so I only have Kernel + Modules and Busybox available. Bonus question: ...
1
vote
0answers
49 views

udev does not see drm subsystem changes on laptop resume

I am using udev to manage setting up monitors on my ThinkPad T400. I use a docking station, and the desired behavior is that when I dock the laptop, the LVDS output is turned off, and the DVI-0 output ...
3
votes
2answers
1k views

udev re-numbering when creating symlinks

I have USB cellular modem attached to an ALIX 3d2 board running voyage linux (which is based on Debian Squeeze). The modem registers itself as a TTY device, and so by default, udev will create TTY ...
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
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?
3
votes
1answer
2k views

Point USB phone to specific /dev/ttyACM using udev

We have a Nagios + check_mk setup on Ubuntu 12.04 LTS server with smstools for sending text message notifications. We are using an old Nokia 6230 phone connected by a USB cable, though I do not ...
2
votes
1answer
113 views

Where can I find documentation or source code for udev properties?

Specifically, I've been trying to find what the possible values are for the property UDISKS_PARTITION_FLAGS. It seems to be set to "boot" if the partition has the boot/active flag set, and unset if ...
1
vote
0answers
103 views

Udev rule- change group

I would like to change group of /dev/nvidia0. I was write udev rule: KERNEL="nvidia[0-9]", GROUP="video", MODE="0666" But it does't change group, after reboot file is in rootgroup. How do this?
5
votes
3answers
750 views

Watch USB connections vendor id, product id, revision

I'd like to simply watch all devices added and removed from my system and view their USB vendor ID, product ID, and revision and other relevant information. How can I do this in Linux? Is there a ...
3
votes
1answer
613 views

udev: How do you identify the physical device that a sys device belongs to?

I have several USB modems that each have several endpoints: lot of TTYs, a network interface, a cdc-wdm port, and some other things. I'm trying to group them together so that I know, for instance, ...
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
0answers
72 views

How to know when a device is ready

I have firewire mixing console and I wrote an udev rule which calls a script to set up the whole audio chain (alsa -> pulseaudio -> jackd -> firewire) as soon an the console is switched on. Now I ...
3
votes
1answer
83 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 ...
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 ...
1
vote
1answer
491 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 ...
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 ...
2
votes
1answer
243 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 ...
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
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 ...
2
votes
2answers
382 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
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
396 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 ...
3
votes
2answers
4k views

Arch Linux not booting after system update

After running a system update pacman -Syu with the testing repo not commented, my computer no longer boots. It shows the udev loading, then shows a black screen with a cursor blinking in upper left. I ...
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", ...
4
votes
2answers
2k views

udev rules don't appear to be working

I'm running Arch Linux on my server, and I need to let users of the group usb access my weather station. Here's my rule: /etc/udev/rules.d/usb-70.rules SYSFS {idVendor} == "1941", SYSFS {idProduct} ...
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 ...
2
votes
0answers
253 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
570 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 ...
9
votes
3answers
2k views

Fake serial number of USB device

I have a mobile phone connected to my PC via USB. When viewing the device info using sudo udevadm info --attribute-walk the product and vendor id's show up fine, but there is no ATTR{serial}. An ...
2
votes
0answers
126 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 ...
1
vote
2answers
620 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 ...
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
825 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
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 ...
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 ...
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 ...
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 ...
5
votes
2answers
2k views

Making UDEV ignore certain devices during boot.

I'm trying to make UDEV stop mounting one of my devices at boot time, and I've created a rule in /etc/udev/rules.d/ called 1-myblacklist.rules. All the rule does is matches the device by kernel ...
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?
1
vote
1answer
171 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
2answers
730 views

Detecting monitor on boot time?

I am using my laptop in several monitor configurations that do require xorg.conf (say, I am driving a T221 from my laptop) and it's very inconvenient to manually switch them. Is there something in ...
2
votes
1answer
283 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 ...