Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [udev]

The tag has no usage guidance.

1
vote
0answers
22 views

How can I force my pci card usb bus numbers to stay the same after reboot?

I have a few identical usb sound cards and wrote a udev rule so they each get a persistent name matching the specific port they are attached to. Now I added a pci usb 3.0 card and that is playing ...
0
votes
0answers
16 views

trace-cmd.service Slowing Down Bootup?

I installed trace-cmd.x86 package on CentOS 7 because I was planning to trace some latency issue in my application. But then, I noticed once awhile, the boot up time took like 2+ mins. Then, I ...
0
votes
0answers
44 views

Udev GOTO is not triggered

I try to rename my network interfaces on my linux embedded system, renaming is working fine, but my GOTO is not working and I cannot workout why. ACTION!="add", GOTO="net_name_slot_end" SUBSYSTEM!="...
0
votes
1answer
36 views

Empty 70-persistent-net.rules directory

I am using the bento/centos-7.5 box in vagrant. When it comes up, there is an empty directory in the path /etc/udev/rulesd/70-persistent-net.rules/. Isn't 70-persistent-net.rules supposed to be a ...
0
votes
0answers
348 views

Issues USB tethering with Verizon MiFi 7730L (Novatel)

Verizon recently updated the firmware on the MiFi 7730L which causes the device to present itself differently when connected to the USB port. I use these devices as USB modems on a handful of ...
0
votes
1answer
26 views

Consistent USB device adapter naming on Linux

I have a USB port into which I insert all sorts of different USB disks over time. The kernel does not consistently allocate the same device for it, so I have to go hunt after each insert. How can I ...
-1
votes
1answer
111 views

Repairing USB drive

I'm attempting to repair a USB drive that I would like to use for booting Linux on my laptop. The drive was removed from the laptop while it was formatting and is unreadable now. However, if I open ...
1
vote
1answer
149 views

Block a specific program from accessing a device

Because of a long not-fixed bug in Steam with Linux, I want to block a specific program (Steam) from having any access whatsoever to a specific device (Sony DualShock 4 controller). I tried setting ...
0
votes
1answer
57 views

How to add manually a device that udev adds then removes after plugged into USB port?

I'm trying to mount my cheap smart watch with a MTK6260A chipset to my PC in order to read the firmware contents. However while dmesg shows me that the device has been detected and created correctly: ...
0
votes
1answer
61 views

Trigger file copy upon device insertion (without depending on systemd)

I would like to automatically have some files form a storage device copied upon its insertion. I am looking to use one and the same method on both systems which use systemd and systems using init ...
0
votes
0answers
16 views

Suspend Gentoo on external USB drive changes drive name in /dev

I have Gentoo on external USB 2.0 drive on sdb. Drive has lot of partitions, one is mounted on /. When I run pm-suspend, sdb drive and its partitions are renamed to sdc (sdb disappears). After I ...
0
votes
1answer
131 views

Can I mount /dev/usb/hiddevX as storage type?

I got an external HDD from a tv service provider which their receiver can access via eSATA + USB (y cable). When plugging the device into my computer, I get: This is dmesg: [290079.510263] usb 1-1.4:...
0
votes
0answers
22 views

Seeking example to configure permission of USB HID device on OS X

OS X El Capitan: A Python script must be run as superuser in order to gain access to a HID USB device. How does one configure permissions to enable anyone access to the device? On Unix systems, I ...
1
vote
0answers
72 views

`hcitool con` does not find any devices when run in the context of a udev script

I'm trying to automate a task to configure a bluetooth device when it's connected to my raspberry pi 3 running raspbian. Assuming $x is the address of the device, I need to execute the following ...
0
votes
1answer
139 views

Extra created /dev/ttyUSB blocks usage of custom udev config-ed dev-file

I am a scuba diver and proud owner of 2 diving computers. These two can be connected to a USB port and with Linus' SubSurface divinglog program I can import dive-logs from them. One is an Atomic ...
1
vote
0answers
489 views

How can I change the Wireless Adapter Interface Name in Ubuntu?

I've booted with the net.ifnames=0 in GRUB_CMDLINE_LINUX_DEFAULT so It does fix the name of the internal adapter wlp2s0 >> wlan0 But I can't find a solution to my external adapter which is ...
1
vote
1answer
49 views

Custom network devices naming scheme

I have an ubuntu image to be used on virtual machines. I don't know in advance how many NICs would be used for the machines. I need all network interfaces to get names from a predefined list. For ...
1
vote
2answers
134 views

udev rule to lock session on removal of hid key

I am trying to lock the session on removal of my hid device which is HyperFIDO U2F key. However after trying for many times I got no success. I tried to create a udev rule on /etc/udev/rules.d/50-...
0
votes
1answer
317 views

udev add hidraw and immediately remove

I have problems in using self-made hid device on my Ubuntu 17.10. It works fine on Windows and works fine on another machine with Kubuntu 18.04. I already removed all my udev rules, restarted udev, ...
1
vote
0answers
130 views

Adding UDEV rules makes Raspberry boot too slow

I have an issue when I add this rule in my /etc/udev/rules.d/99-com.rules: ACTION=="add",SUBSYSTEMS=="usb",ATTRS{serial}="XXXXXXX",RUN+=/usr/local/bin/startApache.sh" The rule works correctly (the ...
1
vote
1answer
669 views

Logitech M535 in Linux

I just bought a Logitech M535 Bluetooth mouse. It has tilting wheel but it's mapped to "back" and "forward" buttons. To get it work as horizontal scrolling I wrote this script: #! /bin/dash MOUSE_ID=...
2
votes
0answers
249 views

use udev to reload bluetooth service when dongle is plugged in

I have tried to create a file /etc/udev/rules.d/97-bluetooth-input.rules with in it: KERNEL=="event*", SUBSYSTEM=="bluetooth", DEVPATH=="/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.1/1-7.1.3/1-7.1....
0
votes
0answers
315 views

Disable udev for particular module

Is it possible to create udev rule that will disable udev for a particular module? I do not want to stop udev daemon entirely, just to disable it for a specific driver. I have a driver that panics ...
0
votes
0answers
362 views

Creating a custom udev rule to symlink my /dev/disk/by-id in /dev

I recently set up a CentOS machine with a ZFS root. While installing everything I ran into an issue where if I use /dev/disk/by-id for my ZFS devices GRUB will give me an error saying unable to locate ...
0
votes
0answers
27 views

Remove default udev node /dev/sd[a-z]

I have a USB-Floppy Drive and it automatically gets a /dev/sd[a-z] node. I managed to get a symlink to /dev/fd0 with this udev rule: ATTRS{idVendor}=="057b", ATTRS{idProduct}=="0000", SYMLINK+="fd0"...
0
votes
1answer
566 views

Debian 9 udev keyboard rule not working

Every time I lock my screen / remove my keyboard and re-plug it in (usb) the keyboard repeat rate resets. I am trying to fix this by creating a udev rule. I have created a rule in /etc/udev/rules.d ...
1
vote
3answers
1k views

Writing to a file from a udev RUN command

I am working on creating a udev ruleset that writes to a log file each time a certain USB drive is inserted. My ruleset, stored in /etc/udev/rules.d /99-log-USB-drive.rules, currently contains the ...
0
votes
1answer
52 views

Udev won't execute some lines in my script

I'm working on a Beaglebone Black under debian. I'm writing Udev rules to manage µSD card. What i need Udev to do: when my µSD is plugged in, Mount the µSD on /media/sdcard (it does) and execute the ...
3
votes
2answers
3k views

Automounting USB drives on a headless systemd linux box?

Approaches to auto-mounting devices in Linux keep changing, and googling returns quite a few solutions with various degrees of applicability for modern systemd-based boxes. The following approaches ...
1
vote
1answer
931 views

bluetoothctl “Waiting to connect to bluetoothd…” in udev rule script

I have the following udev rule: ACTION=="add", SUBSYSTEM=="bluetooth", RUN+="/usr/local/bin/a2dp-fix-wrapper" that fires off the following script: PID=$(pgrep pulseaudio) USER=$(grep -z USER= /proc/...
1
vote
1answer
715 views

udev rules for device mapper when lvm volumes are activated

I currently have a couple of custom udev rules for activating LVM volumes when raid volumes become available that look like this: KERNEL=="md0", RUN+="/sbin/pvscan --cache -aay" KERNEL=="md1", RUN+="/...
2
votes
0answers
2k views

avrdude: /dev/ttyACM0 issue with changing permissions

I was using Arduino IDE on my Arch Linux laptop without problems, after some time /months I'm not able to upload the sketch because of permissions: avrdude: ser_open(): can't open device "/dev/...
1
vote
1answer
95 views

Debian: udevadm info does not return ID_FS_TYPE for DVD-media

On Debian Jessie (openmediavault) the following command: udevadm info -q env -n /dev/sr0 Does not return ID_FS_TYPE for a movie-dvd. The packages libdvdcss2 and libdvdread4 are installed. Update: ...
0
votes
1answer
554 views

How to create udev rule in Ubuntu for chrome app USB access?

I'm trying to access a USB device through a chrome app, but it's not working. Then I noticed I need to set a udev rule, but the docs are confusing. I'm supposed to make a file called /etc/udev/rules....
0
votes
0answers
66 views

Virtual machine ethernet failure on restore

I am using OpenSUSE Leap 42.2 on a Dell Inspiron 1545. When I tried to resume a virtual machine, it showed "Error restoring domain:Cannot get interface MAC on 'eth0': No such device." That's because ...
5
votes
2answers
10k views

disable MTP udev rules for specific device so it can be mount as a USB Mass Storage device

I have a problem with a specific device that is not an android / mobile device. It is a media player with an internal hard drive that I am trying to connect as a mass storage device so I can copy ...
0
votes
0answers
83 views

Linux: old udev (095) changing device permissions doesn't work

I have the following udev rule: # f055:9800, 9801, 9802 MicroPython pyboard ATTRS{idVendor}=="f055", ENV{ID_MM_DEVICE_IGNORE}="1" ATTRS{idVendor}=="f055", ENV{MTP_NO_PROBE}="1" SUBSYSTEMS=="usb", ...
0
votes
1answer
301 views

Binding script to udev for creating a link to /run/user

I'm trying to create a link to the mtp folder in the /run/user/$UID/gvfs/ folder. I've wrote a script to do to, including some lines to test if the script is running properly. I binded to udev with a ...
1
vote
0answers
123 views

Udev not running inline scripts

So I'm currently trying to get udev to do some things (start airmon-ng) after I've connected a specific USB wifi network card. But I am having troubles getting inline scripts to work. The problem can ...
2
votes
1answer
72 views

How can I define default options for xorg graphics devices

I have a laptop and an external USB graphics card. I have a xorg.conf.d snippet like this: Section "Device" Identifier "USB3" Driver "modesetting" Option "kmsdev" "/dev/dri/card1" ...
0
votes
1answer
1k views

why does `udev` consume full memory in ubuntu?

Here is the result of df -h on my system. Filesystem Size Used Avail Use% Mounted on udev 1,9G 1,9G 0 100% /dev tmpfs 388M 12M 377M 3% /run /dev/sda1 92G ...
4
votes
0answers
181 views

usb3 device detected but not it’s block device

when I plug a usb 3 device on a usb 3 port on devuan, I have only this message from dmesg : [354063.866359] usb 1-4: new high-speed USB device number 10 using xhci_hcd [354064.050880] usb 1-4: New ...
0
votes
1answer
339 views

Why udev rules stop working after adding ATTRS{serial}?

I was trying to solve my problem looking at other threads such as Why My USB port fixing udev rules are not working and udev rules doesn't work with small number among other several posts ...
1
vote
1answer
2k views

Why are some udev workers timing out?

A few weeks ago, ALSA and USB stopped working on my laptop. Things like YouTube videos just don't have sound in Firefox; mpv prints [ao/alsa] Playback open error: No such file or directory. Could not ...
3
votes
1answer
561 views

How does Ethernet interface appear in IP link command

I'm experimenting with Linux and am trying to understand the early boot process. At least on the systems I've been playing with udev is the "module" that is discovering devices. Once it is ...
0
votes
1answer
2k views

Why My USB port fixing udev rules are not working

I'm using Ubuntu 16.04.1 Server. There is a modem pool attached to one USB port of the server. When modem is turned off and back on again, the ttyUSB numbers are changing. I need to fix that ports. So,...
0
votes
1answer
117 views

Rescue data using udev

I have a device (Smartphone: BQ Aquaris E4.5 Ubuntu) which contains data, but I cannot reach it directly, i.e. mounting or opening a shell or alike. All I managed to do was to see it (in fastboot ...
0
votes
1answer
772 views

Getting /dev/hidraw# via udev for script

So, I have a small python scriptlet that remaps my logitech g710 gkeys from the default of 1-6 to F13-18, which works fine when called manually, eg: ./script.py /dev/hidraw3 The issue I'm having is ...
2
votes
2answers
6k views

Reduce timeout value for “A start job is running for dev-disk-by” linux

My /etc/fstab intentionally has quite a few entries that point to (labelled) partitions and filesystems that may not be present at boot time (think: hotpluggable SATA backup disks). These entries ...
1
vote
3answers
3k views

What creates the default ifcfg-eth? file?

When I change out a NIC card in my RHEL 5 box, the applicable /etc/sysconfig/network-scripts/ifcfg-eth? file is renamed ifcfg-eth?.bak and a new one is created configured with: ONBOOT=yes BOOTPROTO=...