Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [udev]

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

2
votes
0answers
24 views

restrict access to the webcam to certain user/software on Ubuntu 16

I would like to restrict the access to the webcam only to certain programs/users. I use Ubuntu 16.04. If I am right my webcam is linked with /dev/video0 (just as an example), which is owned by root ...
0
votes
0answers
21 views

How to ensure that I refer to the correct USB device? [duplicate]

I connected a USB-serial dongle to Ubuntu and I get it as /dev/ttyUSB0. I can also see it: $ lsusb Bus 001 Device 007: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port However, I may ...
1
vote
3answers
27 views

Why use udev rules for naming, if we could just use /dev/disk/by-uuid?

I don't understand the inclination towards using udev rules for raw devices. Example for Oracle ASM devices, it recommends using udev rules for naming raw devices, as the device order can be ...
0
votes
1answer
21 views

umask not applied when mounting from udev

I have a udev rule which automatically mounts usb device when connected The rule is the following one : # cat /etc/udev/rules.d/10-usbdetectd.rules KERNEL!="sd[a-z]*", GOTO="...
2
votes
1answer
54 views

How to make desktop apps see YubiKey without sudo?

I've recently obtained a YubiKey 5 NFC, which seems to be working fine when prompted for a u2f token (both on Firefox and Chromium) but in order to use it in OTP mode, I need to run the applications ...
0
votes
0answers
15 views

How do I do to detect both the disk (/dev/sd{x}) device and its sibling tty (/dev/ttyACM{y}) device when a composite USB ACM_MS device is inserted?

Suppose you have multiple embedded devices that enumerates as Composite ACM/Mass Storage devices (/dev/ttyACM0 <--> /dev/sdb, /dev/ttyACM1 <--> /dev/sdc, ...) when they get plugged to the ...
1
vote
0answers
92 views

Automount LVM logical volume with a udev rule and udisks2

I want to automatically mount an LVM logical volume on an external drive as soon as it is connected to the computer. The solution I choose here is to use udev to detect plug in events and udisks2 to ...
0
votes
0answers
10 views

Different network interface name at boot

I have a Huawei modem for which I set the following udev rule to rename the network interface at boot: ACTION="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="15c1", ATTRS{...
0
votes
0answers
62 views

lsusb does not show all devices

The lsusb command is not showing one of the attached USB devices with the 4.14 linux kernel. The same hardware works correctly with the 4.9, 4.4, and 3.2 kernels. The 'missing' USB device is detected,...
0
votes
0answers
21 views

Create udev rules to run a shell script after insert an USB device

Actually, I have two lines of rules in my rules.d folder: SUBSYSTEM=="tty", ATTRS{idVendor}=="23b8", ATTRS{idProduct}=="0005", SYMLINK+="ttyACM-Daruma", MODE="0777" SUBSYSTEM=="tty", ATTRS{idVendor}==...
0
votes
0answers
38 views

Linux UDEV not reload configuration automatically after system reboot

I have a problem with my single host, where I'm using Oracle ASM on raw disks (UDEV). In file /etc/udev/rules.d/30-oracle_asm.rules I defined UDEV rules KERNEL=="sd?", PROGRAM=="/root/SCRIPTS/asm....
0
votes
0answers
35 views

How to create a udev rules?

I am trying to create a simple udev rule, for the device below, Sony Computer Entertainment Inc BD Remote Control, but it does not work, I have read several tutorials, some documentation and other ...
1
vote
1answer
88 views

PPS GPIO with Buildroot image on Raspberry Pi 3

I using Buildroot trying to build a Linux image for the Raspberry Pi 3 in which I have access to pulse-per-second (PPS) inputs on one of the GPIO pins. First off, I have tried this with the standard ...
1
vote
0answers
38 views

Problem with USB device on Debian

I used to be able to plug my USB headphones in and out without an issue. I occasionally had to use the Sound section of settings to reset the device back to my headphones, but that was it. Today, I ...
-1
votes
1answer
32 views

Exit from the udevadm monitor

I can't figure out how to quit the udevadm monitor. I tried typing exit and quit. I hit keys like e, q and ESC, but it still keeps going. I could just close the terminal window, but I like to know ...
0
votes
0answers
55 views

Udev - Network cable hotplug event not catched

I'm running a buildroot custom linux (kernel 4.9.87) on a custom board based on an Atmel Sama5d2. I'm trying to configure the network on the eth0 interface using dhcp only at hotplug. Originally, ...
0
votes
1answer
80 views

Possible to force udev to create specific device event number, or change device event numbers

I have a kernel module that reads usb keyboard input specifically from /dev/input/event2 and /dev/input/event3. On some devices the keyboard doesn't get assigned event2 and event3, it gets assigned /...
0
votes
1answer
89 views

Firewall-like software for udev usb devices?

O.MG Cable is here and the way technology is going, more of those devices will be available to the common user. This kind of USB attack isn't new and there is plenty of devices out there ready to do ...
2
votes
0answers
41 views

udev event triggering multiple times and not respecting matching conditions

I'm attempting to write a udev rule that triggers when my laptop power cable is plugged in, however I'm having some odd issues with it triggering multiple times, on both plugging and unplugging. ...
0
votes
0answers
94 views

How to control order of disk devices during Ubuntu Linux installation?

I have an automated installation script (preseed file) for Ubuntu 18.04 which automatically partitions /dev/sda and /dev/sdb. I run this by booting from a USB drive, in "legacy BIOS" mode (so MBR is ...
0
votes
1answer
68 views

Udev event and xrandr

I am writing a UDEV rule to change the display settings when the external monitor plugs-in or plugs-out. The rule is working perfectly fine. Randomly, the script doesn' t work. After inspection, I ...
0
votes
0answers
20 views

How to write dev rules if all parameters seem to be the same?

I have 3 USB SMS Modems, each having 2 (or 4) usb hubs inside The problem is that sometimes modem 1 mounts to /dev/ttyUSB0 and /dev/ttyUSB1 and other times it mounts to /dev/ttyUSB12 and /dev/ttyUSB13....
1
vote
1answer
58 views

Mount fuse.mergerfs in udev script

I use a udev rule to recognize when a specific USB stick is plugged. When it's plugged in, a bash script is started which mounts some devices. That works very well after I did some changes to the ...
1
vote
0answers
33 views

detecting monitor wakeup

Context: Debian/testing on a ASRock B450 with Ryzen 2200G, HDMI monitor. In order to reset Pulseaudio default sink I need to know when the monitor comes back from standby so that I can run a script ...
1
vote
0answers
180 views

Linux device unit inactive (dead) after systemctl daemon-reload

I used the solution proposed by galets in this post to add my own udev rule: How to wait for a /dev/video0 before starting a service When Linux boots, my device is detected, and the rule creates a ...
0
votes
1answer
11 views

Are there any changes in udev/rules.d syntax from RHEL6 to RHEL7?

Can local rules defined in RHEL6 be used as it is in RHEL7 or we need to do changes with respect to syntax before using them in RHEL7.
1
vote
0answers
13 views

Assigning users to serial device server

I'm working on a server (CentOS 7) that will be connected to a serial device service. I also have 6 client machines. The SDS makes the devices show as actual devices in linux and can be controlled by ...
3
votes
1answer
141 views

Adding Events to Udev Event Queue

One of my udev rules runs a script on removal of USB storage devices. This script performs some general cleanup and removes the mount point directory for the storage device. The issue is that I want ...
5
votes
3answers
238 views

Is there any documentation for udev builtins?

The man page for udev mentions in several places that certain rules options can be used to invoke 'builtin' commands, which are apparently built in to the udev program itself. However, I haven't been ...
0
votes
0answers
131 views

Opensuse installation boot stuck at “Starting udev… ok”

I want to install Opensuse. I tried all versions from 42.1 to 15.0 (newest), all fail to install. The boot process gets stuck at "Starting udev... ok", after which nothing happens. Trying to start ...
1
vote
1answer
129 views

Gaming Mouse Detected as a Keyboard

I was given a gaming mouse from a company I had never heard of before as a gift. Naturally, it doesn't work. When I first plugged it in, the LEDs lit up, and that was that. No movement, no buttons -- ...
0
votes
0answers
24 views

Launching an GUI app with udev rule after plugging in usb?

so Im trying to run gui app with udev but with 0 success, I read somewhere that i have to find Xauthority file, and put display variable in scripts, Is this right, and if yes could someone write an ...
0
votes
1answer
66 views

Udev not working [duplicate]

SUBSYSTEMS=="usb", ATTRS{idProduct}=="1337", ACTION=="add", RUN+="/usr/local/bin/New.sh" script: #!/bin/sh vlc v4l2:///dev/video0 udevadm test shows that it runs the script but nothing happens :/
0
votes
1answer
117 views

Bind serial device address to specific usb port

My OS: Raspbian Stretch Lite tl;dr; I have 2 identical USB device I want to make sure their address didn't get confused My thinking goes to bind the address to specific USB Port. I'm fine to "...
0
votes
1answer
76 views

Creating Persistant Symbolic Link -Linux

I have a cloud server, where a block device (/dev/xvdb1 with filesystem ext3) is attached . I want to create a persistent symlink (/dev/test_link) which should always target to (/dev/xvdb1) using ...
3
votes
0answers
107 views

how to prioritize udev-rules over the driver/kernel (network interfaces names)?

I have an ubuntu server 14.04 virtual machine with 2 network interfaces eth0 - for web management, SSH eth1 - for incoming span network analysis I've configured the machine with udev rules (to ...
0
votes
1answer
235 views

What is /dev/vcs* on Linux?

man vcs(4) is Greek to me. I'm running Lubuntu 18.04 with the LXDE graphical user interface. When searching for an answer to my other question, Where is terminal output stored?, I found that /dev/...
1
vote
1answer
93 views

Need UDEV to set device ownership with AD/LDAP users and groups after sssd starts

The given constraints are: System: Oracle 12.2. ASM cluster Must use AD/LDAP based users and groups for software and ASM disk device ownership The oracle ASM cluster uses a number of raw block ...
0
votes
0answers
38 views

How to enable all users to access arduino card?

I am trying to set up Linux (Debian 9) machines in a computer lab to let users plug in their arduino interface and flash their device with their code. I do not really know about arduino and so on, ...
0
votes
1answer
73 views

How to make a USB device register as HID?

I have a hardware device which I'd like to communicate with in C via the HID library. But this device does not show up as HID. Is there a way to make it so (with a udev rule maybe) ? $ dmesg usb 1-2: ...
0
votes
1answer
139 views

UIO device files /dev/uioX are not created on Linux Debian

I'm having a problem on Linux Debian 9.6. Although I have UIO support compiled into the kernel, the /dev/uioX device files are not beeing created. root@machine:~# zcat /proc/config.gz | grep UIO ...
1
vote
0answers
118 views

Make the TTY console ignore the /dev/input/event3 keyboard

I have a remote control IR USB receiver, but it acts just like a normal keyboard. I'm reading the input from /dev/input/event3 to handle events. Because of this I need a way for the TTY console to ...
0
votes
1answer
43 views

How to use Libudev to find out which ports are connected to my Usb

I made a kind of module. Different sensors are placed in the module. I connected the module to Raspberry Pi through RS232 converter. I am using Libudev to automatically find out which Pi port has ...
1
vote
0answers
303 views

How to get my device recognized as an HID device?

I'm trying to get a USB HID device to work in Ubuntu, but can't seem to get it to work at all. It is a USB HID device, and shows up as such in dmesg: [ 2236.277518] usb 1-1: new full-speed USB device ...
1
vote
1answer
123 views

Udev rules for seemingly indistinguishable devices

I'm trying to use udev to automatically set up symlinks to an Intel RealSense D415. This is because I use several cameras on the machine and need to be able to reliably refer to them via a filename (...
0
votes
1answer
178 views

Correct way to fix missing device file in /dev?

I am using a proprietary PCI card from Sensoray in my Ubunut 14.04 machine (I intend to upgrade to 18.04 soon). The card comes with the source code for the driver and a Makefile to build and install ...
1
vote
0answers
73 views

Udev rule for disabling usb serial driver [duplicate]

I have an ANT+ USB dongle, and some software I wrote, which uses libusb to communicate with the device. On recent linux distributions (like Ubuntu 18.04) when I plug in the dongle, in my dmesg I see ...
2
votes
1answer
441 views

Run a script when bluetooth device is connected

I'm trying to run a script automatically right after a certain bluetooth device is connected. To do so, I tried to create a new UDEV rule. The problem I encounter is that my rule doesn't execute upon ...
1
vote
1answer
51 views

How to use udevadm to fix unrecognized usb device

I am having trouble getting a midi controller (piano keyboard) to work on a raspberry pi. It works on my linux laptop, and another midi keyboard does work on the pi. It is listed under lsusb, so I ...
0
votes
1answer
81 views

change value in udev rule to 45% ATTR{capacity}==“[0-5]”

I have an old laptop which poweroff when battery is about 40% so I would like to add udev rule to suspend the laptop at 45% from arch wiki I found a udev rule to suspend when battery is 5% or lower ...