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

2
votes
0answers
20 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
23 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
44 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
16 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
37 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
26 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
72 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
9 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
10 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
34 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
121 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
58 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
88 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
18 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
36 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
40 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
59 views

Creating Persistant Symbolic Link -Linux

Could somebody assist me in creating a persistent symlink for the block devices, using udev ? I have a cloud server, where a block device (/dev/xvdb1 with filesystem ext3) is attached . I want to ...
3
votes
0answers
55 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
113 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
56 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
31 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
41 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
68 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
52 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
23 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
123 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
50 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
107 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
49 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
267 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
34 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
40 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
37 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
67 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
1answer
90 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
31 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
22 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
74 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
69 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, ...
1
vote
1answer
206 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
109 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
48 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
21 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
48 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
118 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
61 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
59 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
305 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
48 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
96 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 ...