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

learn more… | top users | synonyms

1
vote
1answer
141 views

Can't run put udisks commands in udev scripts

I'm trying to launch a script when a LUKS drive is inserted. So I setup a udev rule: KERNEL=="sd*3", ACTION=="add", ATTRS{serial}=="XXX", ATTRS{manufacturer}=="XXX", ...
0
votes
0answers
160 views

Linux “/dev/SDA” goes read only file system on SDB device failure [closed]

i have a very peculiar issue that is running in my system. Using debian linux : My system boots up very normally with a primary and secondary hard disk. suddenly my secondary hard disk fails with ...
6
votes
1answer
374 views

trigger udev rules from systemd

I have one of those hdds, that have a very aggressive power management. To prevent load cycles from rising in to critical numbers I wrote an udev rule: SUBSYSTEM=="block", SUBSYSTEMS=="scsi", ...
3
votes
1answer
964 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 ...
3
votes
2answers
624 views

how to include or add /dev with tar --one-file-system

I'm running tar on a complete remote filesystem using ssh -n <hostname> 'sudo tar -cpvzf - --one-file-system /' | cat > Bak.tar.gz This gave me a tarball. I tried importing this tarball ...
3
votes
1answer
147 views

What does it mean when something says that UNIX device files are static?

I've been reading up on udev. In the "overview" section, Wikipedia states that "unlike traditional Unix systems, where the device nodes in the /dev directory have been a static set of files, the Linux ...
1
vote
0answers
58 views

GKrellM vs. udev's asynchronous drive mappings on bootup

Well, supposing you had multiple drives (3 in this example), udev would always play dice with them on each system reboot. And now, let's make things a little more quirky by adding one USB flash drive ...
3
votes
0answers
110 views

How to rename devices for graphical output such as VGA0

On my Laptop the names of my graphical outputs change depending on what chip is activated in the BIOS. This leads to problems in some scripts where outputs such as VGA-0 or LVDS-0 are specified. So I ...
1
vote
1answer
2k views

Symlinks on /dev/ttyUSB* via udev

So I built a nice little GSM-Gateway with a PC-Engines ALIX.2D13, a Huawei E220 umts modem, Debian Wheezy and gammu-smsd. I need a fixed device name für gammu-smsd to survive reboots. I tried to make ...
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 ...
2
votes
1answer
383 views

udev Unable to Rename Network Device: Device or Resource Busy

I'm trying to use udev rules in order to give my network interfaces static, consistent names. However, it seems like there is some race condition happening preventing these rules from consistently ...
2
votes
1answer
466 views

systemd - umount device after service which depends on it finishes

I'm trying to implement a mechanism of automated backup using udev rules and systemd. The idea is to launch a backup routine upon hot-plugging a specific storage device, quite similar to this ...
2
votes
1answer
190 views

Why doesn't my udev rule work?

I created a file /etc/udev/rules.d/60.alsa.rules with the following content: KERNEL=="0000:00:1b.0", SUBSYSTEM=="pci", ATTR{label}=="Realtek High Definition Audio Device", ATTR{vendor}=="0x8086", ...
1
vote
1answer
364 views

Udev Rule Isn't Used

I'm trying to write a udev rule on my Beaglebone White that runs when a Pantech UML 295 finishes booting. When using udevadm monitor --environment I get the following final output which I would like ...
5
votes
1answer
398 views

Swapping <esc> and <caps lock> in a way that persists with external keyboards

I have a file called ~/.speedswapper which contains the following: ! Swap caps lock and escape remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock ...
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 ...
4
votes
1answer
522 views

Udev rule to match multiple node USB device

I have a 3G/GPS device that creates 5 tty nodes, although it's only one physical USB connection. Basically, a multi port usb-serial adapter. I'm trying to create some udev rules to make sure those ...
1
vote
1answer
106 views

Losing (realtime) permission when sudoing from root to myself

After an upgrade to debian wheezy (I did not upgrade the kernel - it is still 3.8.2) I can no longer start jackd in the way I used to do it. I get you are not allowed to use realtime scheduling. My ...
3
votes
1answer
171 views

Is it possible to have two seperate one way (simplex) serial ports to make single tty device?

I am building embeded device, which has IR comunication with PC and it will have two IR Led/detector pairs which are one-way and are setup like this: IR source input commands -> near embeded device ...
3
votes
2answers
2k views

/dev/hidraw: read permissions

What do I need to do to have read permissions on /dev/hidraw*? I'm seeing stuff about udev rules and saw this on the net, but the world of udev is like a foreign land to me, and if there's some sort ...
2
votes
1answer
664 views

Not working udev rule with systemd-udevd on Fedora 19

I would like to play with IOIO on my Fedora 19, so I installed the udev rule as the documentation tells, in /etc/udev/rules.d/50-ioio.rules: ACTION=="add", SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ...
1
vote
1answer
307 views

UDev automounting drives as 'usbhd' regardless of type and name on Ubuntu 12.10

I have 3 drives which I use for storage on my system. Here are their mounting points in /etc/fstab # <file system> <mount point> <type> <options> <dump> ...
0
votes
2answers
484 views

sed - replace complex lines in a file using variables

How do I replace a complex line in a file using sed? For example I want replace a udev rule in /etc/udev/rules.d/70-persistent-net.rules. This doesn't work: OLD_RULE='SUBSYSTEM=="net", ...
1
vote
1answer
216 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 ...
1
vote
0answers
451 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
61 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 ...
2
votes
1answer
1k 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 ...
2
votes
1answer
702 views

Re-ordering serial ports on a multiport card

I have a Red Hat Enterprise 6.2 machine with two on-board serial ports and a PCIe card with 8 additional serial ports (16C950 UARTs, 16C550 compliant). I've added the kernel option 8250.nr_uarts=10 so ...
3
votes
2answers
2k 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 ...
1
vote
3answers
650 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 ...
2
votes
1answer
165 views

Virtual mouse is ignored by xorg when loaded

I'm trying to run virtual mouse driver from book "Essential Linux Device Drivers" but when I'm load this module into kernel using insmod in /var/log/Xorg.0.log I see: [ 757.212] (II) config/udev: ...
3
votes
1answer
3k 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
120 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
120 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?
1
vote
1answer
375 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
3answers
2k views

udev rule not working

I have created a udev rules which is supposed to mount a USB device, backup some datas et cleanup everything. I am actually working on a Debian server. There is the information about my usb device ...
3
votes
1answer
933 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, ...
5
votes
3answers
1k 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 ...
2
votes
0answers
79 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 ...
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 ...
6
votes
1answer
3k 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
3k 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
601 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
329 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
2k 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
95 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
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 ...
2
votes
1answer
3k 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
209 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. ...