Questions tagged [udev]
The udev tag has no usage guidance.
245
questions
0
votes
0
answers
42
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-...
0
votes
0
answers
40
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 ...
0
votes
1
answer
60
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 ...
0
votes
1
answer
151
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 ...
0
votes
1
answer
204
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
72
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
198
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
814
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 ...
0
votes
0
answers
465
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
72
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
220
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
385
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
193
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
173
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
886
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
316
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
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 ...
1
vote
0
answers
268
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
182
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
668
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
964
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
640
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
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}==...
0
votes
1
answer
320
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
63
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
480
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
683
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
167
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
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 ...
0
votes
1
answer
337
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
557
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
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 ...
1
vote
0
answers
129
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
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 ...
1
vote
1
answer
696
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, ...
2
votes
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
273
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
640
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
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 ...
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
165
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
830
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
229
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
710
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
2k
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 ...