Skip to main content

Questions tagged [udev]

The tag has no usage guidance.

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

net.ifnames=0 disables PNIN fine on Debian Bullseye, but doesn't seem to on Debian Bookworm?

I'm trying to upgrade an embedded device from Debian Bullseye (v5.x) to Debian Bookworm (v6.x), where the (somewhat ancient) application running on top of it expects the Ethernet adapter to be eth0 (I ...
nickpelling's user avatar
0 votes
2 answers
138 views

Cannot change interface name for add-in network card

I am trying to assign persistent names to network interfaces on a Linux Mint 21.3 PC. This particular PC often has PCIe devices added and removed, so the 'predictable' naming scheme of enpXs0 is ...
user18's user avatar
  • 101
0 votes
0 answers
75 views

How to prevent specific USB device (vendorId:ProductId) from having driver loaded

I am trying to setup Debian Linux host with KVM (libvirt) virtual machines. Host has some USB devices attached to it and I would like to pass-through one of them to the guest virtual machine. To do so ...
blami's user avatar
  • 460
0 votes
0 answers
37 views

How do I get a Linux system with legacy mouse support to accept my KVM switch with absolute mouse mode?

One of my customers has a Linux system with the following details: Suse Linux 15 I plugged in a KVM-over-IP device from Raritan (DKX4-101) which introduces a USB-device with Keyboard + mouse in ...
Juergen's user avatar
  • 41
0 votes
0 answers
47 views

Wine (and Proton) does not recognize my sim pedals despite Linux doing so

After testing my Thrustmaster T-LCM positively on jstest-gtk (calibration and mapping working fine), I've followed this guide with env variables, but "Wine control" still doesn't recognize ...
Yosyp's user avatar
  • 51
0 votes
0 answers
88 views

Run custom shell script through udev

I'm trying to make an udev rule that'll play sound upon connecting the charger. The rule seems to work fine except I can not get the shell script to run. This is my udev rule: $cat 01-mru-battery-...
Abir Halder's user avatar
0 votes
0 answers
67 views

How can I find out what's changing the group for /dev/ttyUSB*, Ubuntu 22.04.3 LTS

I've got a couple of USB devices that suddenly stopped working a few hours ago after several years of working fine and at least a week since I last touched the machine they were on. After a bit of ...
Dave's user avatar
  • 101
0 votes
1 answer
127 views

systemd/udev/bluez: Removing other bluetooth audio devices when connecting

My laptop's bluetooth adapter doesn't seem to be very powerful, and when I have more than one audio device connected at the same time, the audio gets choppy for some reason. So I would like to write a ...
sonofevil's user avatar
  • 127
0 votes
1 answer
245 views

Getting udev to check audio devices

I'm trying to write a udev rule for my bluetooth receiver which, when it connects, runs a script that checks whether a corresponding audio device has also been added, and reconnects if that is not the ...
sonofevil's user avatar
  • 127
1 vote
1 answer
428 views

Unmanage all USB ethernet adapters, but keep names unique

One can disable a particular interface by listing it in one of the configs: [keyfile] unmanaged-devices=interface-name:enx6c4bca1ac914 But I want ALL USB ethernet adapters to be unmanaged and do not ...
Student4K's user avatar
  • 147
0 votes
0 answers
92 views

camera-streamer breaks udev monitoring

I have a weird error with camera-streamer on Raspberry Pi with my custom-built Yocto image. When I stream ov5647 camera with camera-streamer --camera-path=/base/soc/i2c0mux/i2c@1/ov5647@36 --camera-...
Thugmek's user avatar
  • 13
1 vote
1 answer
298 views

Is there a UDEV rule to detect decrypted and mounted LUKS partition?

I have a LUKS partition on an external hard drive. When I plug it in, Ubuntu 22.04 automatically decrypts the partition and mounts it, since I saved the passphrase to the keyring. I would like to run ...
Majal's user avatar
  • 958
0 votes
0 answers
1k views

Ubuntu 22.04 and epsonscan2: scanner detected, but I still can't scan

Epson DS-6500. USB scanner (not networked). Works on Widows 10, not on Ubuntu 22.04. I've installed epsonscan2 by downloading from here and extracting to directory "epson' that has the proper ...
Diagon's user avatar
  • 724
0 votes
1 answer
78 views

udev parameter in efistub same thing as udev config file?

I want to increase the debugging level for udev at boot time. Can this be done by changing the parameter in the /etc/udev/udev.conf Does rebuilding the initrd with mkinitcpio -p somehow embed this ...
Tyler Durden's user avatar
  • 6,171
0 votes
1 answer
309 views

linux + how to convert disk DEV name to humane reading

we get from site remote machine the files under /var/log/sa/* and we copy all them on our local machine under /var/tmp/sa/* so when we run sar -f /var/tmp/sa/sa14 -d on our local machine we get the ...
King David's user avatar
0 votes
0 answers
446 views

"udevadm info" command is not showing ID_BUS data

I am working on an embedded board having ARM cortex-a53. To add support of "udevadm" on this board, I have downloaded "buildroot-2022.02" (https://buildroot.org/downloads/buildroot-...
beparas's user avatar
  • 123
1 vote
0 answers
231 views

During initramfs, udev ignores my mdadm raid 1, but raid is perfectly assembled within rescue

I know, yet another question about mdadm... I'll try and be as clear as can be: System: Archlinux Kernel 5.15.81-1-lts systemd 252.2-3-arch rescue: ArchISO (with zfs module) Kernel 5.10.78-1-lts ...
Dboy's user avatar
  • 31
0 votes
1 answer
203 views

(udev rules) Unable to detect bluethooth connection for Magic Mouse

I have this event when the device gets connected but the rule never matches: $udevadm monitor -u -p ... UDEV [2452.171028] add /devices/pci0000:00/0000:00:1e.0/dw-apb-uart.0/serial0/serial0-0/...
Emilio's user avatar
  • 121
3 votes
1 answer
1k views

What may cause Debian failed to boot completely and solution

My Debian desktop has been configured to boot with systemd-networkd, dhcpcd, pppoe, etc. services to provide internet services for several devices. My problem is that it occasionally fails to reach a ...
cby120's user avatar
  • 41
4 votes
0 answers
386 views

Is there a way to write a UDEV rule against a pseudo terminal?

I would like to create a systemd service unit file which has a Requires= and After= dependency on a psudeo terminal created by another service. This site describes how to do this for a real device by ...
Benjamin Leinweber's user avatar
2 votes
1 answer
3k views

How to set the ethernet interface name in a Linux distribution?

I'm developing yocto-base Linux distribution and I have to manage a WiFi-USB adapter. When I insert the adapter in the USB connector, Linux kernel and udev add a wifi ethernet interface and set its ...
User051209's user avatar
1 vote
0 answers
314 views

Udev monitor does not display any event on If I mount or unmount a partition

I observing udevadm monitor to detect when the usb is un-mounted, or partition (USB) is removed. if the partition /dev/sda1 is mounted at /mnt/mydisk If I remove the partition /dev/sda1 via physically ...
Noobie's user avatar
  • 111
1 vote
0 answers
223 views

Is there a way to inject a fake udev device?

I have a program that talks to a specific serial device. The program tries to detect the device using udev (it checks for a specific udev variable), then it opens the device and starts communication. ...
sleirsgoevy's user avatar
0 votes
1 answer
747 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 ...
xmaze's user avatar
  • 13
0 votes
1 answer
1k 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 '/...
xmaze's user avatar
  • 13
1 vote
1 answer
729 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, ...
Martin Mucha's user avatar
1 vote
0 answers
19 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}==...
Mohamed A'esam's user avatar
0 votes
1 answer
380 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 ...
gatorreina's user avatar
0 votes
1 answer
2k 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==&...
Andrew Zah's user avatar
0 votes
1 answer
64 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 ...
Claude Frantz's user avatar
1 vote
1 answer
564 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 ...
SWP-Sebastian's user avatar
0 votes
1 answer
794 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 ...
lmattcris's user avatar
1 vote
0 answers
204 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 ...
Jayme Besse's user avatar
3 votes
2 answers
3k 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 ...
gertvdijk's user avatar
  • 3,546
0 votes
1 answer
372 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 ...
user3728501's user avatar
  • 2,984
0 votes
0 answers
676 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. ...
fiedel's user avatar
  • 45
0 votes
0 answers
1k 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 ...
Joe Mills's user avatar
1 vote
0 answers
143 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&...
Guuk's user avatar
  • 199
0 votes
1 answer
1k 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 ...
Vanfan64's user avatar
1 vote
1 answer
815 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, ...
DaiBu's user avatar
  • 111
2 votes
1 answer
3k 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 ...
wutr's user avatar
  • 31
1 vote
1 answer
301 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 -...
Luke Skywalker's user avatar
1 vote
1 answer
676 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=="...
Macario's user avatar
  • 478
2 votes
0 answers
2k 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 ...
Michael's user avatar
  • 121
4 votes
1 answer
3k 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 ...
Johannes Linkels's user avatar
2 votes
0 answers
176 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 ...
Bionic_Beadle's user avatar
0 votes
1 answer
1k 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 ...
alex_halford's user avatar
1 vote
1 answer
903 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 ...
Curt's user avatar
  • 376
3 votes
0 answers
251 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 ...
da22e's user avatar
  • 31
1 vote
1 answer
810 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....
AFoeee's user avatar
  • 113

1
2 3 4 5