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

learn more… | top users | synonyms

2
votes
1answer
50 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
22 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
10 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
144 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 ...
0
votes
0answers
38 views

udev usb stick device list

We have 2 different yocto distributions: ARM Kernel 3.10.53 X86 SMP Kernel 3.10.0 If we add a USB stick to the ARM system we get different udev messages. usb/usb_device usb/use_interface ...
1
vote
0answers
72 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
120 views

sysfs and devtmpfs

Ok, Ulrich Dangel explains very well the difference between devtmpfs and udev but what happen with sysfs I understand that the kernel use sysfs to export device nodes to user space to be used by udev, ...
6
votes
4answers
5k views

Get device node by major/minor numbers pair

Each device node under /dev has its own major/minor number pair. I know that we can retrieve this pair of numbers from the device node by means of stat, like this: stat -c 'major: %t minor: %T' ...
1
vote
0answers
30 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: ...
0
votes
2answers
324 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 ...
1
vote
1answer
40 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 ...
1
vote
1answer
1k 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 ...
4
votes
1answer
90 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 ...
2
votes
1answer
104 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
115 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 ...
8
votes
4answers
18k views

Automounting USB sticks on Debian

I'm running Debian Squeeze on a plug computer (so SSH only, no GUI) and what I'm trying to do is get it so that when a USB stick is plugged in, it gets automatically mounted. What I've done is ...
0
votes
3answers
73 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
117 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 ...
5
votes
3answers
3k 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
2answers
2k views

Udev rule to automatically disable touchpad when a USB mouse is connected

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", ...
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
100 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
52 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
73 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 ...
4
votes
2answers
7k 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
2answers
75 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
43 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 ...
1
vote
3answers
76 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, ...
2
votes
1answer
41 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", ...
5
votes
2answers
1k 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
0answers
51 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
118 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: ...
9
votes
4answers
2k views

How to enable “Predictable Network Interface Names”?

I decided to check out what name my ethernet device will end up with, but contrary to other distros, Debian doesn't seem to have activated this change (or is holding it back?), * Keep the old ...
3
votes
1answer
191 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", ...
1
vote
0answers
37 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 ...
2
votes
1answer
250 views

Debian upgrade from Wheezy to Jessie fails on Amazon EC2

I have searched and read other debian upgrade threads, but my situation doesn't seem to match that described in the other questions on this topic. I have a t1.micro instance of debian running on ...
0
votes
0answers
33 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 ...
1
vote
1answer
31 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
22 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
55 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
16 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 ...
2
votes
1answer
55 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 ...
0
votes
0answers
58 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
27 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
119 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 ...
3
votes
1answer
65 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 ...
4
votes
1answer
56 views

Change eth settings before udev loads

I have a custom version of CENTOS that I'm importing into Hyper-V on a Windows Server. Whenever I import it however, the mac addresses of eth1 and eth2 are now different. So they get incremented to ...
0
votes
0answers
11 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.
0
votes
0answers
57 views

Getting the block device from an udev scsi_disk subsystem (udev C API)

I am using the udev C API to monitor connection and disconnection of SATA drives. struct udev_monitor *mon; mon = udev_monitor_new_from_netlink(udev, "udev"); ...