Questions tagged [udev]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Udev rule returns start request repeated too quickly

The udev command triggered by opening the lid on my scanner, fails as reported in journalctl at the bottom of this post. Otherwise the service enabled via systemctl enable scanbd runs without hassle. ...
0
votes
0answers
54 views

/dev/ Permission denied

I use Ubuntu 18.04 When I install some programs (for example chromium) I get error /dev/fd/62: no such file or directory sudo does not help. I work on root. When I do 'ls /dev' I get error '...
0
votes
0answers
28 views

Trying to automatically mount a backup device on plugin and run a script

I am currently trying to automate backups for my laptop and while doing so fell down some rabbit holes by using old and no longer working solutions. Now I'd like to ask for some advice to improve upon ...
1
vote
0answers
17 views

Renaming CAN interfaces

I have a system with multiple CAN devices that we are using to control other devices in an automation environment and I would like to give them persistent names to help with debugging and ...
0
votes
1answer
65 views

very slow boot (6m), how to force change `systemd-udevd` timeout to 5s?

Essentially what is happening is this: to the linux grub command, I added debug --verbose and got this! after 60s waiting: systemd-udevd 'SomeDevicePartition' is taking a long time after more ...
0
votes
1answer
40 views

How do I (properly) invoke a systemd service from udev with an argument?

I'm trying to trigger a systemd service from udev when a USB storage device is inserted, and pass device info (the name) to my service which will feed it to a script. I have created a udev rule(/etc/...
0
votes
0answers
15 views

udev Rule Doesn't Trigger When USB Gamepad Connected

I have a Raspberry Pi 4 hooked up to my TV. When I plug in my USB controller, I would like to run a script that uses CEC to turn on my TV, switches the TV input to the Pi, then starts Steam Link. The ...
0
votes
0answers
19 views

Unable to run xsetwacom from udev?

I need to run xsetwacom with MapToOutput to use my Cintiq. This works, but I cannot seem to get this to work automatically, when I switch on the device. Following suggestions from an old thread Why ...
0
votes
0answers
26 views

Mount a partition when accessing a file in it or cd into it

I'd like a partition on a hard-disk to be mounted when I try to access it. For example, if /dev/sda2 has label SDA2, when I cd /media/root/SDA2 /dev/sda2 will be mounted on /media/root/SDA2. I ...
0
votes
0answers
23 views

udev rule does not apply on boot - have to reconnect usb every time

I use Arch Linux and have the following udev file in /etc/udev/rules.d to get access to the display on my G19 keyboard: SUBSYSTEM=="usb", ATTR{idVendor}=="046d", ATTR{idProduct}=="c228", RUN{builtin}+...
0
votes
0answers
10 views

Keyboard not getting a keyboard not getting input id, udev rule to do this?

Can I setup a udev rule to assign my keyboard a /dev/input/by-id/ identifier? I can get this from cat /proc/bus/input/devices so it is being recognized at least somewhat correctly. I: Bus=0003 ...
1
vote
1answer
63 views

how to allow non root user to create tun devices

I am developing a program which requires opening /dev/net/tun and issuing ioctl() on it but without root user I get permission denied. I think proper udev rules can help solve this issue. I tried ...
0
votes
0answers
24 views

What is the meaning of SYMLINK in udev rules?

I've been trying to write a USB driver for a device, but none of the methods (libhid, libusb-0.1, libusb-1.0) I've tried work. I've written usb drivers before. I can also communicate with the device ...
2
votes
0answers
18 views

udev rule not worknig as expected with PROGRAM key

My system is Debian Buster with Kernel 4.19. I have a simple udev rule as below that was working fine with Debian Jessie. Now same rule seems to be not working in newer distribution. KERNEL=="sd[a-z]...
0
votes
0answers
79 views

How to use LVM2 inside LXD (LXC) without `systemd-udev`?

I'm trying to use LVM2 inside of an LXD (LXC) container for my Ceph OSD. I believe that I'm getting there! So far, everything works fine, like: pvcreate vgcreate lvcreate ceph-ansible They all work!...
0
votes
0answers
24 views

How to find hid device and detect when inserted/removed?

I'm following this example on reading data from /dev/hidraw : https://elixir.bootlin.com/linux/latest/source/samples/hidraw/hid-example.c It's exactly what I'm looking as a proof of concept. ...
0
votes
1answer
27 views

Why udev doesn't create a symlink to device?

I have a device connected via USB: Bus 001 Device 009: ID 18d1:4ee4 Google Inc. Nexus 4 (debug + tether) I've tried to add both: ACTION=="add", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="4ee4", ...
0
votes
0answers
36 views

Udev rule is not applied

I have a simple udev rule on ubuntu 19.10 ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", RUN+="/sbin/hdparm -B 127 -S 120 /dev/%k" I have 2 drives which this can be applied to ...
1
vote
0answers
26 views

USB device numbers overflow behavior

I have a USB device connected. Each time I send “power on” command over the USB interface, the device disappears from Linux, and reappears as the next device ID. E.g. if I detected the device as /dev/...
2
votes
2answers
96 views

Struggles with udev

I want to automount my SD-Card on Ubuntu. I tried the following rules using udevadm (or /lib/systemd/systemd-udevd). KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end" # Import FS infos ...
0
votes
1answer
57 views

Udev SYMLINK rule is not working!

im trying to create a udev symlink rule: Here is what i have written so far which doesnt seem to work: ACTION=="add", SUBSYSTEM=="block", ATTR{size}=="60626944", ATTRS{model}=="USB DISK 2.0 ", ...
0
votes
0answers
26 views

Udev script stops after first command

My udev rule points to a bash script with two commands. While the first command echo runs fine, the second line ifuse seems not to be executed. $ cat /etc/udev/rules.d/test.rules ACTION=="add", ...
1
vote
0answers
12 views

Trigger script on usb plug - Linux Mint 19

I want to trigger a script when a USB is plugged in, I'm on Linux Mint 19. The consensus appears to be to add a rule in /etc/udev/rules.d/my_rule.rules. I tried several lines: ACTION=="add", ...
3
votes
3answers
206 views

udev rule parameter for systemd template

Background: I want to start a log script when my usb-uart device connects. My /etc/udev/rules.d/10-local.rules: SUBSYSTEM=="tty", ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1015", ATTRS{serial}=="...
1
vote
2answers
141 views

udev rule to trigger systemd service

I am modifying my working udev rule (/etc/udev/rules.d/10-local.rules): SUBSYSTEM=="tty", ATTRS{idVendor}=="1366", ATTRS{idProduct}=="1015", ATTRS{serial}=="000621000000", SYMLINK+="ttymkw" to this (...
4
votes
2answers
82 views

Run udev script every minute (displaying Dualshock 4 Battery level)

I created a simple script that changes the Dualshock 4 Gamecontroller LED color bar based on its Battery status (using the answer https://gaming.stackexchange.com/questions/336934/how-to-set-default-...
4
votes
2answers
181 views

Udev and uevent question

So i was just wondering if my explanations of udev and how it works seem correct and my understanding is correct please let me know. SO my understanding of udev is that it is a dynamic device manager ...
1
vote
1answer
40 views

/dev tmpfs question

I am confused where the devtmpfs filesystem is on my Linux system, I have read on it and I heard it is a virtual filesystem so it should be shown when I run the df -a command it should show the ...
2
votes
1answer
63 views

LVM snapshot: Failed to wipe snapshot exception store, udev doesn't create the partition before lvm tries to wipe it

I am trying to create a snapshot of a logical volume (partition) but I cannot make it work. After days of researching, I found that this post might shed some light on the situation. We are using the ...
0
votes
0answers
8 views

How can I get the active log priority of a running systemd-udevd instance?

root can change the log priority of a running systemd-udevd with: udevadm control --log-priority=XXXX Q: How can I get the active log priority of a running systemd-udevd instance?
1
vote
1answer
121 views

sane, can't find my scanner (permission problem) even if I added udev rules unless i use sudo

My AIO Printer/Scanner is Canon E400 but I can't find my scanner as a normal user, only with sudo & scan is also work with sudo ~ cincinmasukmangkok@orangepizero < sane-find-scanner ...
2
votes
1answer
76 views

How to fire a udev rule after the kernel has registered a driver?

I have a MIDI keyboard "Impulse", and a raspi3. I want to connect the keyboard to the raspi, and having sounds without touching anything. So I use fluidsynth with jack as audio driver. Fluidsynth is ...
0
votes
0answers
29 views

Create a symbolic link to only single event of USB mouse

I am new to udev and want to create a symlink to /dev/input/eventX in case it is the USB mouse input I want. I want to match all USB mouses and create the symlink unless it two particular inputs. ...
1
vote
1answer
16 views

Is there a /dev/video0 like default for pc-microphones?

So, I've been playing with bash scripting on Linux and attempting to level up my terminal wizardry. I've learned about piping data from /dev/video0 for web cams, and quickly creating image files from ...
0
votes
1answer
31 views

Ensuring complete udev info on child devices

I am trying to implement a custom function that upon attachment of a USB drive scans all filesystems it contains and then performs operations based on the file system type detected. I went the "...
1
vote
1answer
87 views

How to write udev rule that matches a device's interface attribute(s)

I have a USBTMC device that has a usbtmc interface. The interface has bInterfaceClass, bInterfaceSubClass, and bInterfaceProtocol attributes with values 'fe', '3', and '1' respectively. The question ...
2
votes
0answers
66 views

OS confusing eMMC device for SD card device - how to fix using udev

Busybox Linux running on an ARM Cortex A7 processor from NXP. The board has an SD card slot and also an eMMC chip that can be used for storage. The device is booting from nor flash. Strangely, when ...
4
votes
1answer
105 views

Input devices stop responding and high X.org and kglobalaccel5 CPU usage when connecting a USB device

I have been having this issue for a while now, but have no idea on how to debug it, so I'll report the details here: Whenever I connect a USB Webcam, a Wacom graphic tablet or my Bluetooth headphones,...
0
votes
1answer
119 views

`udevd command not found` - I just can't get a command list to work

I have the following command execution order to test something with docker. The problem is that udevd is not a binary that I can execute where the command udevd --debug & becomes useless or better ...
1
vote
1answer
55 views

How to reserve a drive letter/name for a specific type of hardware

I am a bit struggling with this topic. I have a server box with one ssd drive. /dev/sda Further does it have a CFast slot which occasionally is occupied by a card. The card is recognized as hard ...
1
vote
0answers
50 views

Running ip or ifconfig from inside an UDEV Rule

I am trying to create an udev rule from which I would like to invoke ifconfig or ip to change ip addresses from a usb kernel network interface. To do this, I created: ACTION=="add", SUBSYSTEM=="net", ...
3
votes
0answers
43 views

How to prevent udev from adding fd0 to /proc/partitions?

I'm updating udev to eudev, the issue I am having is now fd0 shows in /proc/partitions which causes hang delays by things that process items from that file. I would imagine it's some "rule" but I ...
1
vote
1answer
70 views

Will a USB drive be mounted by the time a udev monitor in C receives a signal?

I'm using libudev to detect when a USB drive is attached in a C program. Once I detect that it has been attached via a signal from the kernel (through a udev_monitor structure), can I assume that ...
0
votes
0answers
56 views

Start daemon with udev on Busybox

I have a USB device that contains a modem (a long with a few other cans of worms). The modem (an u-blox LARA) enumerates as /dev/ttyACM[1-6] on this embedded Linux (Yocto) box. This box has Busybox ...
2
votes
0answers
37 views

Delete /dev/loopX entry after detaching loop device

I created a loop device using losetup /dev/loop90 /tmp/disk1, where /tmp/disk1 is a 512M file I have created. Then the loop device was detached using losetup -d /dev/loop90. It was removed from the ...
0
votes
0answers
17 views

Convert from udev to eudev - what files are involved?

I want to convert from udev to eudev. This is on a custom linux boot disk. I don't recall, is udev just a single binary with the various configuration files or are several files involved? In other ...
1
vote
0answers
29 views

Change key code for a given device

I just have get a Logitech Spotlight Presenter, it has two buttons which have key codes incompatible with my presentation (revealjs). Next and Previous are binded as Right and Left, while I want to ...
1
vote
0answers
32 views

Get the USB port 'by path' to autofill in udev rules file

I'm trying to improve on my udev rules for USB serial devices or USB sound cards. I want the USB port number to be populated in the ENV{ID_PATH} field without having to edit it myself (this becomes ...
0
votes
1answer
190 views

udev rule for accessing a USB sensor not working under Raspbian (RPi Zero W)

I have a USB light sensor that I have been using for almost a year without any issues on a Raspberry Pi 3. I am now trying to use it on a Raspberry Pi Zero Wireless instead. I followed the sensor ...
1
vote
1answer
359 views

udev rules for USB serial 'by path' not working

I have more than 2 serial devices enumerated by FTDI driver as /dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2 etc. On reboot, these may get jumbled up in any other order. Also, I may replace/swap these ...