Questions tagged [udev]
The udev tag has no usage guidance.
241
questions
0
votes
1
answer
18
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 ...
0
votes
0
answers
25
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-...
1
vote
1
answer
75
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 ...
0
votes
0
answers
326
views
Ubuntu 22.04 & 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 ...
0
votes
0
answers
249
views
Udev Not Creating input/by-id symlinks
I'm trying to use hawck which depends on /dev/input/by-id symlinks. But for some reason the directory is not being created there. The /dev/input/by-path is there but not the by-id. I looked at the ...
0
votes
1
answer
40
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 ...
0
votes
1
answer
113
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 ...
0
votes
0
answers
250
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-...
1
vote
0
answers
138
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
...
0
votes
1
answer
137
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/...
3
votes
1
answer
452
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 ...
4
votes
0
answers
256
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 ...
2
votes
1
answer
2k
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 ...
1
vote
0
answers
191
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 ...
1
vote
0
answers
143
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.
...
0
votes
1
answer
467
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 ...
0
votes
1
answer
659
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 '/...
1
vote
1
answer
479
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, ...
1
vote
0
answers
18
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}==...
0
votes
1
answer
251
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 ...
0
votes
1
answer
1k
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==&...
0
votes
1
answer
57
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 ...
1
vote
1
answer
378
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 ...
0
votes
1
answer
538
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 ...
1
vote
0
answers
130
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 ...
3
votes
2
answers
2k
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 ...
0
votes
1
answer
278
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 ...
0
votes
0
answers
414
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.
...
0
votes
0
answers
827
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 ...
1
vote
0
answers
110
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&...
0
votes
1
answer
774
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 ...
1
vote
1
answer
520
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, ...
1
vote
1
answer
2k
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 ...
1
vote
1
answer
206
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 -...
1
vote
1
answer
568
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=="...
2
votes
0
answers
1k
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 ...
3
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 ...
2
votes
0
answers
151
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 ...
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 ...
1
vote
1
answer
679
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 ...
3
votes
0
answers
182
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 ...
1
vote
1
answer
603
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....
1
vote
1
answer
1k
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 ...
1
vote
3
answers
2k
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 ...
2
votes
1
answer
1k
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 /...
0
votes
2
answers
1k
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 ...
1
vote
2
answers
432
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 (...
0
votes
1
answer
182
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:...
0
votes
0
answers
177
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"...
0
votes
3
answers
906
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=...