Questions tagged [udev]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
16 views

How to call a script from udev rule as non-root user?

I have a rule in udev, which backups my files when my usb hdd is plugged. But I have a problem, all the copied files are accessible only for the root user and I cannot see or use it. How can I call ...
user avatar
  • 13
0 votes
1 answer
20 views

Why my udev rule does not work in my Fedora PC?

I would like to call a script and back up my files when my external hdd is inserted but it does not work. First I entered in terminal the command udevadm info -a -n /dev/sdb looking at parent device '/...
user avatar
  • 13
0 votes
0 answers
9 views

Detecting addition or removal of hard drives to RAID configuration

I need to be able to trigger a command to run whenever a hard drive is removed or inserted into a RAID configuration. To detect the removal or addition of hard drives I would usually use udevadm hooks ...
user avatar
0 votes
0 answers
17 views

Migrating network interface names on Debian 9

Before upgrading a server from Debian 9 to 10 I am trying to migrate, as recommended, the interface names from old naming (eth0 eth1) to new, that would be enp1s0, enp2s0. All the guides I found tell ...
user avatar
1 vote
0 answers
38 views

how to find needed udev rules for streamdeck (hid)

I got myself streamdeck to play with. No support for linux by company, but there is streamdeck-ui written in python, which kinda works (but kinda does not work, so I'd like to use something else, ...
user avatar
1 vote
0 answers
11 views

Can't automount partition that contain the booting iso file

I have a strange problem i am dual booting windows with chromeos from iso file using grub2 i am using the following udev rules ACTION=="add", SUBSYSTEMS=="block", ATTRS{removable}==...
user avatar
0 votes
1 answer
44 views

How to suppress USB disconnect system message when using a KVM switch with linux

I use a KVM switch to switch back and forth between a rasberry pi and an Acer notebook running Rocky Linux in console mode so that they can share a keyboard and mouse. Whenever I switch back and forth ...
user avatar
0 votes
0 answers
30 views

Cannot get IP on cloned VM LINUX7,8

I have cloned a virtual machine running RHEL 7 and 8. I am not getting an ip address After cloning the virtual machine, networking no longer functions. The ifconfig command does not show the network ...
user avatar
0 votes
0 answers
19 views

UDEV Ignore Power Supply from USB C Dock

I have a Notebook which is connected to a normal Power Supply and a USB C Dock which also gets recognized as Power Supply. My Problem is that the Dock signalize that it is charging but the battery ...
user avatar
0 votes
1 answer
173 views

Debian 10 udev rule not matching for bluetooth keyboard connect event

I'm trying to detect when a bluetooth keyboard is connected via a udev rule. I'm on debian buster. $ udevadm --version 241 $ cat /lib/udev/rules.d/98-bt-rules SUBSYSTEM=="input", ACTION==&...
user avatar
0 votes
0 answers
19 views

Fixing issues with mount called from script (in Ubuntu 20.04)

THE SCRIPT I AM TRYING TO BUILD WORKS FINE WHEN RUN FROM THE COMMAND LINE, BUT NOT VIA UDEV. I've checked that it is running as "root" when launched via udev, the lines in question are ...
user avatar
  • 63.9k
0 votes
1 answer
33 views

udev related to Casio EX-ZR700: camera cannot be attached as disk, Debian Buster

After changing from Fedora to Debian, I'm not more able to attach via hotplug the Casio EX-ZR700 camera. I expect to see the partition of the mass storage device as usually. But there is a cycle of ...
user avatar
1 vote
1 answer
39 views

libmtp udev rule removes symlink from custom udev rule

I use Ubuntu 20.04 LTS and have wrote a custom udev rule in /etc/udev/rules.d/, which creates a symlink, called "mybackup" and wrotes a short message to syslog/journalctl, if a specific ...
user avatar
0 votes
1 answer
30 views

Assigning a missing device by udev

Given that I have a PCI parallel port that isn't recognized in some way, I was considering if writing a udev rule for it could make my day. I found some old note discouraging from doing it: Writing ...
user avatar
0 votes
0 answers
14 views

Invoking an interactive shell via a udev event so a prompt can be filled by the user upon inserting USB

Invoking an interactive shell via a udev event so a prompt can be filled by the user upon inserting USB I have scripted the commands that need to be inputed right after connecting an storage drive ...
user avatar
1 vote
0 answers
31 views

Udev rule (Ubuntu 18)

I have a device that is required to bind to /dev/ttyACM0 specifically, so I created a udev rule to ensure that happens. Unfortunately I am seeing a condition in which the device disconnects and ...
user avatar
0 votes
0 answers
28 views

Why ping does not work on script started by udev

I try to run a script when I connect a device but I have a network issue. Let's assume I just need to ping google when a device is connected. First I created a udev rule in the file /lib/udev/rules.d/...
user avatar
3 votes
2 answers
490 views

Disk drive serial number reversed in /dev/disk/by-id/scsi-*

I'm using Ubuntu 20.04 with USB external drives and experiencing a rather odd bug. I've got a bunch of USB enclosures for hard disk drives here (or rather sold as external drives): Samsung Portable ...
user avatar
  • 3,348
0 votes
1 answer
90 views

Raspberry Pi OS: udev rule xset does not set keyboard repeat rate

I created a udev rule with corresponding shell script to set the keyboard repeat rate when my usb keyboard is connected to the Raspberry Pi. The script contains this line xset r rate 250 50 as well ...
user avatar
  • 1,907
0 votes
0 answers
122 views

udev rule file works in Debian but not in RHEL8

I'm connecting a USB camera to a computer previously running Debian 9 and now RHEL8. I placed a rule file (50-blackfly.rules) in /etc/udev/rules.d/ setting the camera to be owned by a non-root user. ...
user avatar
  • 3
0 votes
0 answers
278 views

python-usbtmc insufficient permissions. Raspberry Pi 4, Python3

I'm trying to use python-usbtmc to connect to my Agilent oscilloscope. I managed to use the readme on github to get it working, but am experiencing errors since restarting my Pi. The output from ...
user avatar
1 vote
0 answers
48 views

Unable to identify USER on bash script executed by udev

I have created an udeve rule (on Debian) to copy files from sdcard when it is plug in: # only do something for sdX KERNEL!="sd[a-z]*", GOTO="my_mount_end" # SUBSYSTEM=="block&...
user avatar
  • 199
0 votes
1 answer
217 views

Overriding udisks2 /media/$USER/mount with custom fixed mount point for specific volume, under Debian Buster

I am using Debian Buster, 10.7, and I am relatively new to udev/udisks2/systemd and have been making a effort to get to know them better and have learned quite a lot, though I cannot seem to figure ...
user avatar
0 votes
0 answers
207 views

Is there a way to know which USB device file (/dev/ttyUSB0) is related to a particular interface (wwan0)

The title pretty much says it all, but here is my scenario in case it's relevant: I'm trying to automate bringing a USB modem online when it's first plugged in. With my hardware and cellular service, ...
user avatar
  • 101
1 vote
1 answer
818 views

How to automatically enable wifi 4addr (WDS) mode before connecting to specific SSID or network?

I have a laptop on which I have setup a bridge interface between the Ethernet and WiFi devices in order to connect non-WiFi devices to the network before they go into their final, wired, position. I ...
user avatar
  • 21
0 votes
1 answer
76 views

udev rules to run pactl

Trying to check if an a2dp profile exists each time a bluetooth device connects/disconnects. I created two udev rules: # ACTION=="add", SUBSYSTEM=="bluetooth", RUN+="/bin/sh -...
user avatar
1 vote
1 answer
321 views

Changing keyboard layout when keyboard is plugged with udev

I want the activate a keyboard layout and to enable "sticky" modifier keys when my external keyboard is plugged in. I've made this udev rule: /etc/udev/rules.d/keyboard.rules ACTION=="...
user avatar
  • 438
1 vote
0 answers
728 views

Windows equivalent to udev rules

(don't know if this question suits to this site, so sorry if not) There is a possibility to create a link to USB device according to its inner parameters using udev rules. Is there some equivalent to ...
user avatar
  • 111
2 votes
1 answer
1k views

systemd does not assign a seat to my session when using NIS authentication

The title says almost all. When I am a local user (let's say the normal situation) my session gets a seat assigned. jlinkels@donald-pc:~$ loginctl SESSION UID USER SEAT TTY 3 1000 ...
user avatar
2 votes
0 answers
100 views

Error Running udev trigger for USB Insertion

So I'm struggling to get a udev rule to work when I plug in my USB. I've read a lot of posts about how to do this with udev, but I'm coming across an error that I can't find much help on. When I plug ...
user avatar
0 votes
1 answer
811 views

Arch udev rule not triggering

I am trying to trigger xsecurelock upon removal of a yubikey. This is done as follows: file: 90-yubikey.rules: ACTION="remove", SUBSYSTEM="usb", ATTRS{idVendor}=="1050", RUN+="/bin/xsecurelock" I ...
user avatar
1 vote
1 answer
331 views

Stopping dhclient on non-existent eth0 interface

My Ubuntu 18.04.3 system takes an extra 90 seconds to boot because it is trying to run dhclient on a non-existent interface "eth0". At the same time, DHCP has already run and succeeded within 1 second ...
user avatar
  • 326
3 votes
0 answers
92 views

How to wait for Thunderbolt device discovery before invoking cryptsetup during startup?

I am using a Linux sytem running Kernel 5.4.12 and systemd 234 on a notebook, which is connected via Thunderbolt 3 to a docking station providing an external keyboard, mouse and monitor. The root ...
user avatar
  • 31
0 votes
1 answer
302 views

Is it possible to cover only UDEV events with udev rules?

When I look at the output of udevadm monitor for an USB device, there are KERNEL and UDEV events. Can I only address the UDEV events with a udev rule? $ udevadm monitor | grep "mouse" KERNEL[122....
user avatar
  • 103
1 vote
1 answer
741 views

USB Device no longer creates /dev entry

I have a Debian Linux box with a Z-Wave USB stick from Sigma Designs. This has previously been working for just over a year but after a reboot the device is no longer listed in /dev. lsusb and dmesg ...
user avatar
  • 498
0 votes
2 answers
712 views

How do I disable Linux media polling?

I have a USB floppy drive (for reasons, don't ask). When it's plugged into a modern PC with Debian and udev, something is pinging the drive every couple of seconds --- I believe it's looking to see if ...
user avatar
2 votes
1 answer
560 views

udev rule for hibernate on low battery not working

I've been trying to setup an udev rule for hibernating my laptop on low battery. Following the guide available in the arch wiki I ended up with the following rule to test if it is working ok: $ cat /...
user avatar
  • 131
0 votes
2 answers
400 views

Getting udev to recognize unique usb drives from a set - with the same uuid and labels? RHEL7

I'm trying to configure udev on RHEL7 so usb flash drives are assigned specific /dev names (ie. /dev/backup1 , /dev/backup2....) for specific flash drives - I realize I can't control the /dev/sdx ...
user avatar
1 vote
2 answers
271 views

No /dev/tty when script is invoked as UDEV trigger

I have raspberry pi with stock raspbian installed. I have also installed RetroPI which works just fine. What I wanted to do, is to write small autostart script that would start emulationstation (...
user avatar
0 votes
1 answer
115 views

How to rename "lo" interface in Ubuntu Server 18.04?

How to rename "lo" interface in Ubuntu Server 18.04 ? I have tried using udev rules without success, here is my code: SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:00:00:00:...
user avatar
0 votes
0 answers
69 views

Why udev is preferring label over ID_SERIAL

Lets say i have a disk /dev/sdc,Assume ID_SERIAL for that disk is 36000c292879f425e5d10aa537f7b57e5 And i wrote below rule file 70-persistentdisk.rules KERNEL=="sdc", OWNER:="grid", GROUP:="asmadmin"...
user avatar
0 votes
3 answers
514 views

Udev rules are not getting applied by ID_SERIAL

I have a disk /dev/sdr. Below is the UDEV information for sdr using below command: sudo udevadm info -q all -n /dev/sdr Result: E: ID_SCSI=1 E: ID_SCSI_SERIAL=...
user avatar
3 votes
0 answers
320 views

Linux snap confinement - access usb device

Currently I'm struggling to connect to a USB device from a confined snap environment, not knowing how to approach the problem anymore, but also still learning about snap confinements / udev rules etc. ...
user avatar
  • 131
1 vote
1 answer
83 views

How do I specify which driver is used for a device when more than one are applicable

I'm working on getting a more modern Linux working on a single board computer where the original company has gone under but the hardware is well supported by the open source community. I've made very ...
user avatar
1 vote
0 answers
80 views

Udev, scripts and permission

Founds lots of other posts with "similar" problems, but none that are actually close to the issue I have. Raspberry PI Raspian. My Udev rule: SUBSYSTEM=="block", ACTION=="add", RUN+="/bin/bash usr/...
user avatar
0 votes
0 answers
35 views

What N600 mean in disk_id mean in /dev/disk/by-id/

I wanted to generate the file names inside the directory /dev/disk/by-id/. with lsblk i get $ lsblk -o name,model,serial NAME MODEL SERIAL sda HGST HUHXXXX12AL XXXXXXXX ...
user avatar
  • 109
1 vote
1 answer
165 views

Network unavailable inside udev shell script

I have the custom shell script executed when FireWire device connected/disconnected from my PC. Script executed successfully but I found network unavailable inside this script. Here is my .rule: [...
user avatar
  • 13
0 votes
0 answers
232 views

Why is my udev rule called twice?

I am working on CentOS 7. I wrote a udev rule in order to start a service each time a cd is inserted. The udev rule is the following : KERNEL=="sr1", SUBSYSTEM=="block", ACTION=="change", ENV{...
user avatar
  • 129
0 votes
1 answer
41 views

What if there are 2 udev rule in the /etc/udev/70-xxx.rule

What will happen if there are 2 udev rules within the /etc/udev/70-xxx.rule in above kernel 3.10.x? I had 2 udev rules, the eth got named to ethx_renamed for some reason. I was wondering if this is ...
user avatar
0 votes
1 answer
5k views

Network interface names via udev for USB NICs

I have a laptop "server" (client requirement, for some reason) that has 6 USB3 ethernet NICs connected to it. As of late, the laptop has had to go with engineers on road trips, and the USB NICs get ...
user avatar

1
2 3 4 5