Stack Exchange Network

Stack Exchange network consists of 174 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

3
votes
0answers
19 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
0answers
13 views

How does udev get devlink information for kernel device events?

I understand how the devlinks are created for linux devices by udev via udev rules. The one piece I don't understand is when the kernal emits an event that a particular device went down, how does udev ...
0
votes
1answer
45 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
17 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
24 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
26 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
27 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
27 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
0answers
14 views

udev rule not pointing to correct tty*

I have a USB device that I would like to call "mydevice" so that an external program can reference it. I have created a rule (99-mydevice.rules) where I place the key attributes to it. ATTR{...
0
votes
1answer
11 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
37 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
30 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
54 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 ...
0
votes
0answers
14 views

trace-cmd.service Slowing Down Bootup?

I installed trace-cmd.x86 package on CentOS 7 because I was planning to trace some latency issue in my application. But then, I noticed once awhile, the boot up time took like 2+ mins. Then, I ...
0
votes
0answers
37 views

I want to block all USB devices except USB keyboard and USB mouse using udev rules in Ubuntu.?

I want to block all usb devices except usb keyboard and usb mouse using udev rules? The purpose is to restrict users from attaching external storage devices (flash drives, phone internal storage and ...
1
vote
0answers
34 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
89 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
26 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
15 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 ...
0
votes
0answers
20 views

Broken links in /dev/disk/by-path

I work with a lot of low quality USB flash memory modules - some of them can even hang the USB controller and block all traffic until I remove them. I'm testing these drives using f3 and a custom ...
0
votes
0answers
32 views

Multiple links in /dev/disk/by-path pointing to the same /dev/sd* device files

I'm working with mass testing and duplication of USB flash memory on Linux. The script I wrote for this stores paths to /dev/disk/by-path to detect if a device was plugged into a specific USB port - ...
0
votes
0answers
24 views

udev rule hotplugging at same time makes symlinks refer to same USB device

I have two udev rules that work fine separately. Both assign symlinks and permissions. However when I plug in the two devices at the exact same time (manually or through a USB hub), the symlinks point ...
0
votes
1answer
51 views

Unmount all your partitions to release/free up SSD

I have a machine with a single SSD and 3 partitions. I want to unmount the entire SSD while staying live so that I can run a firmware upgrade tool on the SSD. I know that unmounting your only disk is ...
0
votes
2answers
25 views

How to add link to a device permanently

Using the command: ln -s /dev/ttyUSB0 /dev/gps0 I link the device gps0 to ttyUSB0. The problem is after rebooting the machine, the created link will disappear and I should create it again. Is there ...
0
votes
0answers
19 views

Why does udev not catch optical media insertion?

I have a Debian Linux system with xfce4. While investigating CD-DVD automount issue I have found that for some reason udev does not detect media insertion in my optical drive unless I act somehow upon ...
1
vote
2answers
40 views

Adding udev rules results in systemd networking timeout

I am trying to have udev run certains scripts when my laptop is connected to charger or disconnected from it. To do that I created a file 99-local.rules in /etc/udev/rules.d and placed the following ...
2
votes
1answer
40 views

udev - Automatically disabling trackpad upon connection of wireless mouse

I keep the dongle in my laptop at all times for my wireless mouse, and want to use udev to run a script that disables my trackpad when the mouse is actually turned on. I've written rules and a script, ...
0
votes
0answers
63 views

udev not loading a module

I'm trying to get udev to load the brcmfmac driver as a module but for some reason it's not detected unless I create a .conf file in a /modules-load.d directory (either in /etc or /lib). As far as I ...
1
vote
1answer
81 views

How can I debug a udev rule?

I want to make a USB audio device accessible for passthrough to QEMU. I have created a udev rule but it is not working. I would like to know how I can debug this issue? SUBSYSTEM=="usb", ATTRS{...
0
votes
1answer
63 views

Can gentoo provide a Xorg/Wayland + Browser , without needing dbus, udev and systemd?

I have for the good part of a day tried to install gentoo distribution, desiring to avoid at all costs the following software dbus systemd udev My assumption was that using the USE flags in /etc/...
1
vote
0answers
36 views

Force release key with hwdb

I've got new keyboard and mute key is not sending release event. From what I've been reading in hwdb it is possible to make driver send synthetic release event and I've tried to make it do so. Here ...
1
vote
0answers
20 views

how to change disk order shown at sidebar in thunar of xfce4?

I have pc running with dual boot, win/debian+xfce4, and it shares some partition (those D/E/F in windows,ntfs). The partitions are sorted F/E/D at sidebar in thunar of xfce4. Is there any udev rules ...
0
votes
0answers
38 views

Block systemd-udevd from probing volume snapshot

We have a driver which creates volume snapshot. However, on RHEL 7.2 systemd-udevd is crashing RANDOMLY after removing the snapshot device, say /dev/volsnap001. The crash dump says: unable to ...
1
vote
0answers
51 views

udev: how to wait for a specific device to appear from a shell script

I have an embedded system with a tiny initramfs which needs to mount an overlayfs over the rootfs partition and switch_root to the new merged filesystem. It's just a couple operations run from the ...
0
votes
1answer
42 views

udev ACTION add isn't working

I'm trying to use udev for some basic actions, in this case the idea is to launch a simple script. The problem is that when I use this rule: ACTION=="remove", ENV{ID_FS_LABEL}=="NAMEHERE", KERNEL=="...
2
votes
0answers
46 views

Udev rule: test if a certain device property is defined

I'm writing udev rules to mount usb drive on raspbian and I need to check if the property ID_FS_TYPE is defined, whatever the value is. What I have so far is: ACTION=="add", DRIVERS=="usb-storage", ...
3
votes
1answer
169 views

udev uaccess and hid

I'm currently on a systemd based Linux distribution and while reading documentation, I noticed that hid devicecs such as keyboards and mice are not tagged with "uaccess" in 70-uaccess.rules. Is there ...
1
vote
1answer
27 views

Rename USB Sound device

I have raspberry pi running raspbian that has 3 sound devices plugged in via USB. I successfully renamed the card ids for alsa based on the USB port with this rule: SUBSYSTEM!="sound", GOTO="...
1
vote
1answer
42 views

What is the meaning of `ATTR{type}==“1”` on udev?

On getting info on a network device, one of the attributes listed for the top level device is: ATTR{type}=="1" What is the meaning of this and why rules to give persistent names to network devices ...
1
vote
1answer
271 views

Udev rule to automount media devices stopped working after systemd was updated to version 239

For some time I had a working udev rule to automount media devices. /etc/udev/rules.d/61-mount_media_by_label.rules # # To propagate udev's mountpoint to the user space, MountFlags must have a ...
0
votes
0answers
65 views

UDEV Run Script Cannot Read Device Unless Root

I'm using floppy diskettes as ID cards. To accomplish this (on raspi debian jessie) I have created the following udev rule to kick off a script which runs a Java program to verify information written ...
2
votes
0answers
150 views

/dev/tty* serial devices are in group “root” for a second before they are switchted to group “dialout”. How to make them start out in “dialout”?

When I plug in a usb-to-serial device, it takes some time for the device to be switched to the "dialout" group (it starts out in the "root") group. This wreaks havoc with some client software that ...
0
votes
0answers
196 views

udev rule triggers error “Read-only file system”

I created an udev rule that launches a shell script that creates a directory /media/my-disk when some specific USB HD is connected. It has been working many months, but after a reboot (probably some ...
2
votes
0answers
48 views

Inconsistent behaviour with udev and “su -c ”

I have a JACK server set up in my computer to take care of all the sound inputs and outputs. When I connect an external USB sound card (name: CODEC), I want it to be detected by udev, so I setup udev ...
0
votes
1answer
22 views

udev rule not working when adding bInterfaceNumber

This is my udev rule SUBSYSTEM=="usb", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea71", ATTRS{serial}=="0", ATTRS{bInterfaceNumber}=="00",RUN+="/home/jamal/test.sh" The script is not running when ...
1
vote
2answers
432 views

How to mount USB drive in udev rule?

I setup a rule in udev to run a script in background to automount the USB drive. It managed to run the script fine, but the mounting is failing for some reason. RULE: ACTION=="add", KERNEL=="sd[a-z]*...
0
votes
0answers
251 views

Udev Rules Not Running

I'm playing with Udev Rules on OpenSuse Leap, and I'm trying to run a simple and small script once a USB device is plugged into my system. However, my script which I added in my keyword "RUN+=" does ...
1
vote
2answers
57 views

USB Device 'attached' several times

I got a problem when i am pluggin USB devices into my server. It looks like the USB devices repeatedly plugged in or re-assign the device letters sdb1: sdb1 The problem with that is that i execute a ...
1
vote
1answer
25 views

Dynamic Drive HotSwapping

Setup is simple. I have a rack-mounted server with 24 5" drive bays in the front. The server runs PLEX. Each HDD is NTFS partitioned and contain optional folders in root. Server is running Debian8 (3....
0
votes
2answers
388 views

How to mount my RFID reader as /dev/ttyUSB0

I've a USB RFID reader and main software I found on linux could use it through /dev/ttyUSB0 device When I connected it on my laptop I can see it with lsusb command returning : Bus 001 Device 012: ...