Questions tagged [udev]

The kernel's device manager, responsible for the contents of /dev.

298 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
1 answer
2k views

Bluetooth controller connects/disconnects spamming system logs

I'm running one of the new Broadwell NUCs under 15.04. Bluetooth has been "fine" for the last few weeks (didn't use it beyong testing it with a BT mouse). Yesterday I started seeing continuous spam ...
jmw's user avatar
  • 93
5 votes
0 answers
1k views

udev rules scripts has only read-only access to /, ubuntu16.10

I use udev rules to run shell-scripts when certain devices show up, after upgrading to ubuntu 16.10 the root filesystem is only available read-only from those scripts. In other words: a shell-script ...
Peter Lorenzen's user avatar
5 votes
1 answer
2k views

Ubuntu server 14.04 and systemd-udevd process with high CPU usage

After upgrading from Ubuntu Server 12.04.2 to Ubuntu 14.04.2 Server version, I observed a huge usage of CPU (~ 90%) by systemd-udevd processes (3). Running udevadm monitor display continuously ...
simo's user avatar
  • 283
4 votes
1 answer
579 views

Mouse sensitivity reset after replugging

After complete system upgrade yesterday my mouse sensitivity get reset every time I replug it. This happens often since I have my peripherals attached to my monitor which I use as a dock to switch ...
Lehdari's user avatar
  • 41
4 votes
0 answers
2k views

Why doesn't udev automatically map my usb device to the usbhid driver on every system

I have 3 systems running Ubuntu 19.10. I have a USB HID device which can be seen by each of those systems. I am using the exact udev rules file on all 3 of them: SUBSYSTEM=="usb",ATTRS{idVendor}=="...
TimothyP's user avatar
  • 267
4 votes
1 answer
2k views

18.04, grub takes about 6 minutes to boot, problem: `systemd-udevd 'SomeDevice' is taking a long time`

after a whole system update (that I try to avoid usually), I thought I was unable to boot, but this time I decided to wait more. so after exactly 6m05s (everytime is that precise delay) it finally ...
Aquarius Power's user avatar
4 votes
0 answers
95 views

Back up any and all usb sticks with udev

I have home server that I use for back up, Iv recently started using multiple shared (as in new one every few days) usb flash drives for some important files. I want to run a script to copy files only ...
Jordan Ketterer's user avatar
4 votes
1 answer
3k views

Renaming virtio network devices in Ubuntu 16.04 is not working

I am trying to rename some virtio ethernet devices on an Ubuntu 16.04 VM. I've done this successfully many times on non-Ubuntu systems with physical interfaces and older Ubuntu systems. Yet, despite ...
Seth Robertson's user avatar
4 votes
0 answers
2k views

Systemd execute a script everytime a USB-Stick is inserted

I want to launch a script everytime a USB stick is inserted. After experimenting with udev, I tried to accomplish my task with systemd (udev is supposed to run only short tasks). Systemd works fine ...
user192299's user avatar
4 votes
1 answer
2k views

Automount All USBs in Virtualbox

I want to have a way to have Ubuntu boot automatically into a VirtualBox VM. I have figured that out, however it does not automount a USB drive. I have tried using udev (automount usb in ubuntu 12.04 ...
Crutchcorn's user avatar
4 votes
1 answer
1k views

udev/dpkg error

I'm getting this strange output every time I try to execute a command through SSH on my VPS (Ubuntu Server 15.04) which doesn not allow me to install anything. Any suggestions ? Job for systemd-udevd....
Finn's user avatar
  • 141
4 votes
1 answer
642 views

Can I hide a partition in Nautilus for a specific user/group?

I'm trying to hide a partition form a specific group of users in Ubuntu 12.04. I have created a new rule in /etc/udev/rules.d/99-hide-disk.rules with KERNEL="sda3",ENV{UDISKS_PRESENTATION_HIDE}="1" ...
iNulty's user avatar
  • 141
3 votes
0 answers
84 views

Making an ISO from a dvd once it's inserted

I'm trying to make it so that when I insert a dvd into the cdrom It exports it into an iso using dd. Here's the script for exporting to an iso #!/bin/bash timestamp=$(date +"%Y%m%d_%H%M%S") ...
tpko's user avatar
  • 39
3 votes
0 answers
1k views

Enabling and disabling touchscreen with Wayland enabled

If you Google how to disable a touchscreen using Wayland, the most common results suggests adding an udev rule. In fact, that's how my local install on a HP Inspiron 5379 is setup: ~ via 💎 v3.0.2 ❯ ...
Vitor Py's user avatar
  • 363
3 votes
0 answers
176 views

Custom workaround udev script for hibernate/suspend error doesn't work

So I have an old ASUS K46CM laptop running Xubuntu 20.04, with a functioning speaker but defunct audio jack. I've disabled the audio from BIOS now to deal with it. This presents a new problem: I can ...
tezman's user avatar
  • 33
3 votes
0 answers
421 views

Cannot access udev symlink with python serial immediately on startup

I have configured a udev rule to create a symlink for a USB device: SUBSYSTEM=="tty", ATTRS{idVendor}=="3032", ATTRS{idProduct}=="0014", SYMLINK+="ttyUSB_GPS" ...
r0gi's user avatar
  • 31
3 votes
1 answer
1k views

Ubuntu 20.04.1 LTS - Mouse removed and added intermittently

update: The same problem occurs in 20.10 with kernel 5.8. I'm having a mouse hiccup that comes and goes where the mouse becomes unresponsive where the device is deleted and added again by UDEV. See ...
bol's user avatar
  • 39
3 votes
0 answers
621 views

Infinite loop when unbind+bind the device to the same driver in udev

I am using Magic Mouse 2 with ubuntu 20.04. To use the scrolling feature, I had to install this driver: https://github.com/rohitpid/Linux-Magic-Trackpad-2-Driver. The only problem is that I need to ...
mhmhsh's user avatar
  • 31
3 votes
0 answers
919 views

Mount points created with udev rule not visible

I'm using Ubuntu Server 20.04 LTS (upgraded from 18.04) and have the following udev rule installed: KERNEL=="sd?1", ACTION=="add", RUN+="/bin/bash /usr/local/bin/media_hotplug.sh" The script ...
kiba's user avatar
  • 31
3 votes
0 answers
596 views

Serial device ttyUSB permissions brokes after replug device

I have a 3D-printer, that connected to my laptop (under fresh installation of Ubuntu 19.04) by USB-cable. As far as understand, 3D-printer creates virtual COM-port through USB. Right after OS is ...
Игорь Чайкин's user avatar
3 votes
0 answers
1k views

udev doesn't load rule automatically after reboot

I have a rule that should apply to /dev/ipmi0 to change its group and mode. When I reboot, that node shows as root:root, but if I run "test" it successfully applies it: $ cat /etc/udev/rules.d/99-...
300D7309EF17's user avatar
3 votes
0 answers
803 views

Teensy 3.6 MTP connection Ubuntu 18.04

I have been trying for a week to access the built in SD card on a Teensy 3.6 directly through the USB port. I am using Ubuntu 18.04 LTS with libmtp and gvfs installed. I have also tried jmtpfs, go-...
xenington's user avatar
3 votes
2 answers
4k views

I want to block all usb devices except usb keyboard and usb mouse using udev rules in ubuntu 16.04 & above.?

I want to block all usb devices except usb keyboard and usb mouse using udev rules? The purpose is to restrict users from attaching external storage devices (flash drives, phone internal storage and ...
IT n VAGABONDing's user avatar
3 votes
1 answer
6k views

How to create a udev rule for two devices with the same manufacturer id, product id, and serial number?

I have two lidars. And in my code I need to provide the lidar port: ttyUSB0/ttyUSB1 etc... I have this udev rule. (/etc/udev/rules.d/rplidar.rules) rplidar.rules # set the udev rule , make the ...
BhanuKiran's user avatar
3 votes
1 answer
448 views

Assign persistent MIDI Port to USB device?

Let's say that this device... Bus 002 Device 005: ID 1234:5678, ATTRS{manufacturer}=="SONY", ATTRS{product}=="61", DEVPATH==/devices/pci0000:00/0000:00:13.2/usb2/2-2/2-2.1 ...is currently assigned ...
Be Brilliant's user avatar
3 votes
0 answers
1k views

Prevent Network Manager controlling RNDIS interfaces

Is there a way to prevent network manager from auto-connecting to new RNDIS devices? Android RNDIS devices cannot be configured using Network Manager because they connect with a random MAC address. ...
Rodney's user avatar
  • 130
3 votes
0 answers
580 views

Can't remap keys from g600 mouse

I've followed the most useful guide I've found on how to remap keys from a mouse that also pretends to be a keyboard faithfully, but the bit where I use udev to remap the keys isn't working, so the ...
LovesTha's user avatar
  • 504
3 votes
1 answer
2k views

USB UDEV Rule Appears to Run Script Many Times

I wrote a custom udev rule that looks for a specific usb device to be plugged in, and then runs a few gphoto commands. See below: ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04a9", ATTRS{...
Colton Hawkins's user avatar
3 votes
0 answers
212 views

Run script on VPN up with reference to existing user

I've been scratching my head on this for a day or so now, and have tried a number of different ways of getting this working but seem fundamentally stuck. I want to run a simple Python script when a ...
Sam's user avatar
  • 31
3 votes
1 answer
76 views

How do I variabilize x value in KERNELS==x condition of my udev rule?

For my udev rule, I want to read the value of x in condition KERNELS=="x" from a file or output of another command, is it possible? If not, how do I make sure the rule is run for my specific net/...
subash's user avatar
  • 41
3 votes
0 answers
139 views

Udev rules for USB mounting and Low Graphics Mode error

I have a file containing the content bellow KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end" # Import FS infos IMPORT{program}="/sbin/blkid -o udev -p %N" # Get a label if present, ...
Amrida D's user avatar
  • 171
3 votes
1 answer
619 views

custom rule to force FDTI Quad UART FT232r output on specific name

I would like the 4 UARTS that show to be on a name other than /ttyUSB0 because i have many devices that end up on /ttyUSB*. I have written a rule which can create a symlink or new name based on the ...
James Troutman's user avatar
3 votes
0 answers
3k views

udev and eMMC rpbm partitions

I'm running into this bug: Fix udev rules to consider mmc rpmb partitions and trying to solve it using a udev rule. I haven't needed to learn anything about udev in the past, so have been reading up ...
Clive van Hilten's user avatar
3 votes
2 answers
901 views

udev script does not start when event happen

I was annoyed that every time I connect my hdmi cable I need to manually change the sound setting. I started looking into udev rules, what I came out with are these two files: /etc/udev/rules.d/99-...
guy's user avatar
  • 141
3 votes
0 answers
443 views

Assigning ehci-pci to an Epson V33 scanner instead of xhci_hcd

I have recently installed Xubuntu 14.04 on two computers. Computer A is a DELL Aptitude E5430 laptop, whereas Computer B is a home-mounted desktop, with an ASUS H87-Plus motherboard. I have been ...
fswechsler's user avatar
3 votes
2 answers
13k views

Huawei e173s 3G USB dongle won't switch into modem mode

Output of lsusb | grep Huawei is Bus 003 Device 003: ID 12d1:1c0b Huawei Technologies Co., Ltd. E173s 3G broadband stick (modem off) I've checked if usb_modeswitch is set up properly as per https:...
Pavel's user avatar
  • 1,456
3 votes
1 answer
3k views

Who/what is creating /dev/loop0, /dev/loop1, ... /dev/loop7?

I've recently been working on a project requiring encrypted files mounted via a connection to a loop device. While the project will run on an Ubuntu system, I was experimenting with setting it up on ...
pgoetz's user avatar
  • 1,233
2 votes
0 answers
338 views

Unable to load udev rules file

After modifying /lib/udev/rules.d/99-tpm.rules file, am trying to reload using below commands sudo udevadm control --reload-rules sudo udevadm trigger But getting error as below: edge@edge:~$ sudo ...
Karma Yogi's user avatar
2 votes
0 answers
708 views

Apply udev rule on reboot if device is present

This code must be executed each time my Keychron K1 keyboard is about to be used: echo 2 > /sys/module/hid_apple/parameters/fnmode The code enables Fn keys as the Keychron suggests on Linux. I put ...
exebook's user avatar
  • 369
2 votes
0 answers
561 views

How to remove noexec from /dev permanently (Ubuntu 20.04.2)

An executable binary is executing mmap() with PROT_EXEC on /dev/zero causing EPERM (Operation not permitted) on our Ubuntu 20.04.2 server (fully up to date). It is not possible to replace the binary ...
phil's user avatar
  • 21
2 votes
0 answers
98 views

Load hardware specific keyboard config automatically

I have a special keyboard, with which I want to write with a configuration that is not the same as when writing with another keyboard (e.g. the laptop's keyboard). I want to keep both configurations ...
Gauthier's user avatar
  • 2,697
2 votes
0 answers
282 views

Remap BTN_STYLUS event to standard keyboard key?

I'm attemping to use a VEIKK graphics tablet in Kubuntu 19.10. I've got a satisfactory setup so far, but the only thing remaining is remapping the stylus buttons. I feel like I have all the ...
cemulate's user avatar
  • 211
2 votes
0 answers
2k views

How to build udev rules for bluetooth gamepad? (Lic Pro Controller)

I'm trying to make a licensed Pro Controller work with Steam but it seems to be lacking the correct udev rules for it. bluetoothctl provides the following information: Device 00:0B:E4:7E:64:7E (...
Rojo's user avatar
  • 23
2 votes
0 answers
227 views

`evtest` does not report scancode for TPPS/2 Elan TrackPoint on ThinkPad X1 C6

I am trying to identify scancodes for the three buttons below the space bar (above the trackpad) on my ThinkPad X1C6 using evtest as well as evemu-record. The buttons are working fine but no scancodes ...
Lungten's user avatar
  • 21
2 votes
0 answers
3k views

iio-sensor-proxy not working correctly

I am trying to install Ubuntu 19:10 on a Medion 3221 - MD 61167 laptop, but I'm have truble with cofiguring iio-sensor-proxy. When I boot Into Ubuntu live session the screen orientation is to the ...
zojo's user avatar
  • 21
2 votes
0 answers
273 views

When USB drive inserted, calling script once with knowledge of mount point

Using lubuntu 16.04. In short, I would like to have a (preferably bash) script called once upon insertion of a USB drive, with the script having access to the path name of the mount point. I have ...
Geoff-Cysca's user avatar
2 votes
0 answers
763 views

Problems reloading udev rules while installing snaps in Ubuntu 18.04

I'm trying to install the snap application whatsdesk on a fresh installation of Ubuntu 18.04 and I keep getting the following errors: $ sudo snap install whatsdesk error: cannot perform the following ...
Sambatyon's user avatar
  • 185
2 votes
0 answers
90 views

udev rule on mouse

Context I have a Steelseries Rival 700 mouse. End users can configure this mouse: Polling, sensitivbity, colors and effects, buttons, click macros, tactile effects, OLED display etc. blah blah. It ...
user3342816's user avatar
2 votes
0 answers
1k views

Ubuntu 18.04 - recreate 70-snap.core.rules

How can I recreate /etc/udev/rules.d/70-snap.core.rules? I would like to regenerate the MAC addresses on a cloned system. I have tried the following commands without success: /sbin/udevadm trigger -...
xinthose's user avatar
  • 286
2 votes
1 answer
1k views

Ubuntu 18.10 Cosmic Cuttlefish not connecting to my Android phone. Showing ERROR: Unable to access & couldn't find matching udev device. What to do?

Ubuntu 18.10 Cosmic Cuttlefish is not connecting to my Android phone. It shows the error: Unable to access "SDM636 MTP SN:E48333B7" Couldn't find matching udev device. What to do?
Rahul 's user avatar
  • 21

1
2 3 4 5 6