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

learn more… | top users | synonyms

4
votes
1answer
65 views

Can udev trigger an action upon mount alone?

Can udev be used to trigger an action when an always-connected drive is mounted, or is it only useful for hotplugging (as the documentation suggests)? I want to trigger a script when my ...
0
votes
0answers
116 views

Setting standby timeout with hdparm during boot via udev rule not working

I set the APM level and standby timeout of my HDDs during boot with a udev rule: ACTION=="add|change", KERNEL=="sd[b-z]", ATTR{queue/rotational}=="1", RUN+="/usr/bin/hdparm -B 63 -S 36 /dev/%k" I ...
1
vote
1answer
48 views

Can udev monitor network storage mounting & unmounting?

I want to setup notification whenever any network drive is mounted or unmounted. (Basically I want to run a custom script, whenever any network storage is mounted or unmounted). I think udev can do ...
0
votes
0answers
57 views

Udev Rule: Auto-increment device number

I have 3 devices which get mounted as /dev/ttyACM[0-2]. Two of these devices are identical, called flow modules. The third is an Arduino Uno. I have the following udev rules which work to a certain ...
2
votes
2answers
60 views

Having trouble making sense of the df command

uname -a Linux CentOS01.localdomain 3.10.0-229.14.1.el7.x86_64 #1 SMP Tue Sep 15 15:05:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Here is the output of lsblk on the centos VM I'm playing with: ...
0
votes
0answers
18 views

Thinkpad T61: Udev-rule not working

I'd like to create a special udev-rule to improve the batterylife of my thinkpad T61 by set the brightness to a low value if the power supply is unplugged and my laptop using the battery. Therefore I ...
0
votes
0answers
76 views

systemd-networkd: Set VLAN device MAC based on host MAC

I am working on a platform with an ARM CPU running linux that has a single MAC in the CPU directly connected to a switch IC. I am trying to set up a VLAN mode using systemd-networkd which I have done ...
0
votes
1answer
86 views

USB key does not show up in /dev

We use a USB key system that are contain license files and are provided to unlock proprietary software that we used. The USB drives are small however and get lost easily, so I thought I'd clone them ...
2
votes
1answer
69 views

udev rule to turn on keyboard backlight

I have a very simple generic gaming keyboard with a backlight. The, typically, universal way to engage the backlight is with xset led 3. I can confirm that this does in-fact work. Because I have two ...
1
vote
0answers
32 views

Kernel module inconsistency

everyone. I have special USB device (chinese touchscreen), what I need to connect to my computer with Linux. By default, Linux assign connected device to usbhid (I found this info by execute ...
1
vote
0answers
31 views

How to automatically load a new VID&PID to module usb_serial

I have a 4G module that requires me to run echo '03f0 581d' > /sys/bus/usb-serial/drivers/generic/new_id after every startup/resume to make the modem visible. How should I make this automatic? ...
2
votes
0answers
58 views

How can I make udev accept mass storage and reject everything else?

I'm trying to write a udev rule to allow USB mass storage devices but reject anything else (keyboard, mouse, etc). I found this online: ACTION!="add", GOTO="deauthorize_end" SUBSYSTEM!="usb", ...
1
vote
1answer
85 views

In udev, what kind of device events match ACTION==“change”?

The udev rules I've created so far only deal with devices being added or removed, i.e.: ACTION=="add"... or ACTION=="remove"... I've come across an example of a rule that seems to deal with device ...
2
votes
1answer
78 views

Control pseudo-terminal (/dev/pts/*) assignments

Is there any way to control which pseudo-terminal (/dev/pts/*) a connection is given? For example, I have multiple thin clients each running individual terminal sessions to a RHEL server over SSH, I ...
1
vote
0answers
24 views

udev rules official docs

I am looking official UDEV rules, documents, I have noticed there are changes in udev rules in RHEL 7. But could not find any documents some thing like 'request for changes'. Please help Thanks,
0
votes
1answer
12 views

What does GROUP in an udev rule actually set?

I have a new Brother MFC and had permission issues and managed to solve them by changing GROUP="scanner" to GROUP="lp" in the relevant udev rule as my user is in the lp group but not in the scanner ...
4
votes
1answer
150 views

What happened to /dev/raw/?

I am reading an article on LWN and it has an important statement: Raw devices (/dev/raw/rawN) are a special case of O_DIRECT I/O. These devices can be opened without specifying O_DIRECT, but ...
1
vote
0answers
104 views

Redhat 7.1 Udev Rules changes SYMLINK+ And Name

I am tying to install Oracle ASM on RHEL 7.1, for that trying to configure Udev rules. I have noticed there are is new attribute in udev rules SYMLINK+ which seems to be replacement of NAME ...
3
votes
2answers
237 views

sysfs and devtmpfs

Ulrich Dangel explains very well the difference between devtmpfs and udev. What about sysfs? I understand that the kernel uses sysfs to export device nodes to user space to be used by udev. So ...
1
vote
0answers
34 views

udev rules not working

I am trying to change the name of my network device wlan0 to eth1 in order to get Matlab to active, I have added the file: 70-use-eth1-for-matlab-licensing.rules with the following contents: ...
1
vote
1answer
58 views

What are these symlinks in /run/udev/watch?

I searched my computer for all the broken symlinks with the command find / -xtype l And it returned these among a few others: /run/udev/watch/9 /run/udev/watch/8 /run/udev/watch/5 ...
0
votes
2answers
786 views

Install fuse debian 8 jessie

I'm on debian 8 jessie with a 4.2.3 kernel. I can't seem to get fuse installed and working. When I install fuse with sudo apt-get install fuse I get MAKEDEV not installed, skipping device node ...
2
votes
1answer
217 views

udev rules driving me nuts

I have this usb-serial device: root@imx6_armboard:/etc/udev/rules.d# udevadm info -a -p $(udevadm info -q path -n /dev/ttyUSB0) Udevadm info starts with the device specified by the devpath and then ...
1
vote
0answers
215 views

CentOS 7 - Forcing a disk to be /dev/sda

I've been wrestling with this problem for awhile now, and I've hit a wall and need help. In my system, I have 1 drive connected to a SATA port, an SSD. CentOS 7 is installed to this disk. Also in ...
4
votes
1answer
103 views

Where is the default device name (e.g. /dev/ttyUSBx) specified?

I'm investigating dynamic device name mapping via udev. The goal: On a multi user system, each user can allocate and free devices like usb-serial converters or PCIe cards (FPGAs). If an user ...
0
votes
3answers
125 views

udev does not apply rules

I am having some problem assigning rules from udev. I have 2 FTDI232 chips mounted on my board (they are totally 3 but I am interested in 2 of them right now), the kernel manages them with the ...
1
vote
1answer
179 views

Run a udev rule for a USB flash drive when the computer is started with the device inserted

I want my Ubuntu 15.04 x64 server system to execute a script whenever a certain flash drive is inserted. So I created a custom rule file with the following content ...
0
votes
0answers
23 views

Automatically Disable the Touchpad when a USB Mouse is plugged in under Linux with udev [duplicate]

I've looked all over google and trying myself to create this functionallity but to no avail. I am really annoyed by the touchpad on my laptop and I mostly use a USB mouse. I've tried using udev to ...
0
votes
1answer
145 views

No /dev/ttyusb* in Linux

I want to do some serial programming using Python Serial, and all examples I've seen online for USB set the port parameter to "/dev/ttyUSB*" . But on my system, there is no "/dev/ttyUSB*" inspite of ...
0
votes
1answer
76 views

Network interface name: “/var/log/dmesg” vs “/etc/udev/rules.d/70-persistent-net.rules”

Is it more reliable to look up the association between interface name and MAC address in /var/log/dmesg or in /etc/udev/rules.d/70-persistent-net.rules? On Debian 7 or CentOS 7, out of the box, I can ...
1
vote
0answers
122 views

udev: Passing parameters via $attr{key} does not work. How to solve it?

I want to enumerate my USB-UART bridges with my own script. The script shall be called with some attributes and return a new devfs node name. I tested the script on console: ./rc3e.py -d ...
2
votes
2answers
115 views

udev fails to create persistenly named symlink using ID_PATH

I want to name a (USB) device persistently depending on the port it is connected to. Using udevadmin I found the following info # udevadm info --name=input/event3 | grep ID_PATH E: ...
0
votes
1answer
50 views

UDEV: RUN+=“/usr/bin/setsid /usr/bin/nautilus” doesn't work - why AND how do you detect and run it as the X user?

From man udev This can only be used for very short-running foreground tasks. Running an event process for a long period of time may block all further events for this or a dependent device. ...
0
votes
0answers
21 views

UDEV: Where do I store scripts that are used to process events using PROGRAM or RUN?

I want to RUN+='/usr/bin/nautilus' when a USB stick is plugged in. I do it on ACTION=="start", unfortunately I cannot do this directly from udev because it kills the process. This can only be used ...
2
votes
1answer
56 views

UDEV: How do i use the %s{file} substitution specifier?

I'm trying to create a udev rule to name my USB devices as: Sandisk_Cruzer_16GB". How do I use the %s{file} substitution specifier with SYMLINK ? KERNEL=="sd[a-z]", SUBSYSTEM=="block", ATTR{ro}=="0", ...
1
vote
3answers
111 views

Don't add new ethernet interfaces, use it as eth0

I have multiple ARM devices on which Debian runs. I have a single image saved from the SD Card and intent to use it on all devices. Now I have the problem, that each time the MAC address of the eth, ...
1
vote
0answers
68 views

My udev Rule do not trigger when USB driver is connected

I trying to run a script each time a USB drive is connected to the Raspberry PI by using udev rules, but cannot get it to work. I have created a file in: /etc/udev/rules.d/85-usbthumb.rules ...
2
votes
1answer
234 views

How to set Ethernet link speed & duplex

How can I configure my Ethernet (eth0) link speed and duplex on my systemd & connman based system? I've previously used a script in /etc/network/if-up.d, in which I could make a call like: ...
1
vote
0answers
47 views

UDEV-rule:Open new gnome-terminal window on usb-plugin AND activate it for stdin/stdout/stderr?

My attempt is this: If a certain USB-device is plugged in, I want to open a gnome-terminal window in my desktop-environment. This newly opened window must be able to be interactive, this means, the ...
3
votes
1answer
408 views

Udev rule to match any usb storage device

How can I implement udev rules for any USB mass-storage device plugged in, not just for specific one? What should be changed in idVendor, and idProduct? ACTION=="add", SUBSYSTEM=="usb", ...
0
votes
0answers
39 views

Automatically running usb when plugged in

I want to automatically run script when usb is plugged in, and I found one solution,http://stackoverflow.com/questions/23097285/default-file-permissions-for-fat32-usb-stick-on-raspberry-pi, Default ...
0
votes
1answer
35 views

Persisting network names irrespective of network address

We are in process of developing custom linux device with unifil wifi card. Whenever we change wireless device with in device urules changing wlan index based on ATTR{address}. Is there a way to tell ...
1
vote
1answer
34 views

Weird udev rules behaviour

I am trying to get my head around how udev rules are interpreted. Context: make a USB scanner accessible to myself as non-root user (I am part of the scanner group). The following rule does not ...
0
votes
1answer
59 views

problem with udev rules when i want to start bash script

I am trying to write udev rules, so my usb will be recognized when plugged in, and i want to run bash script, but seems that I have some problem, I think I have opened the rules file twice e.g. With ...
0
votes
0answers
21 views

SELinux policy for ifplugd and udev in Raspbian

I've recently enabled SELinux on my RaspberryPi and recieved some AVCs denials. I'm reading SEL documentation and have resolved a few of them. But I'm not sure if I did it right. So please review my ...
0
votes
0answers
75 views

How udev works when we connect USB device

Whenever, I am connecting USB device like Pen drive, Bar-code scanner, mouse etc. udev creates dynamic files in /sys/bus/usb/devices/. like 1-1, 2-1. inside these files I am getting all information ...
0
votes
0answers
38 views

xTerm and wvdial issue [UDEV]

After mounting USB modem opens xterm which connects me to the internet after some time it shuts down. -- When I'm starting sudo wvdial on normal gnome-terminal - All works without any problems. But ...
2
votes
1answer
86 views

udev power_supply rules not triggering

I know this seems to be the most commonly asked question about udev on here, but I believe I've done everything correctly and yet my rules still never get triggered. The script is executable and works ...
3
votes
1answer
103 views

Determine devtype and subsystem for laptop power supplies

I'm writing a small C program on an Ubuntu machine using libudev to monitor for changes to the power supply. At this stage, I just want to successfully detect when the AC adapter is active vs. when ...
0
votes
0answers
12 views

Does MATE DE have user-configurable hooks for udev events?

Does MATE DE have user-configurable hooks for udev events? I would like to disable my embedded keyboard and touchpad when external ones get connected.