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 kernel's device manager, responsible for the contents of /dev.

0
votes
0answers
8 views

Persistant Symbolic Link -Ubuntu 16.04

Could somebody assist me in creating a persistent symlink for the block devices, using udev ? Regards,
0
votes
0answers
18 views

70-persistent-net.rules not being honoured

This is a PXE-install, which has previously been 14.04. I'm moving it to 18.04, and most things are OK, but for some reason, only one of the rules in /etc/udev/rules.d/70-persistent-net.rules (...
1
vote
1answer
82 views

How to fix unmet dependencies for udev:amd64 error on Ubuntu 18.04?

I am running Ubuntu 18.04. As usual, I ran: sudo apt-get update sudo apt-get upgrade but then I got the following error: Reading package lists... Done Building dependency tree Reading ...
1
vote
1answer
142 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 not connecting to my Android phone. Showing ERROR: Unable to access & couldn't find matching udev device. What to do?error message
0
votes
1answer
75 views

USB-Serial adaptor doesn't create /dev/ttyUSB path to address device

I'm using Ubuntu 18.10 x64 on my laptop and 17.10 x64 on another machine. The info below comes from the 18.10 laptop, but both have the same issue. I've attached a USB-to-Serial board (a Chinese TI ...
0
votes
0answers
25 views

Opening graphic application on usb plug

I'm using Kubuntu 18.04 and Yubikey for VPN authorization. I want to open Konsole application on key plug-in running nmcli connection up my_connection to show me password prompt. I set up udev to run ...
3
votes
0answers
75 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-...
1
vote
0answers
56 views

/dev/hidraw device not showing up for USB HID device

I'm trying to get a USB HID device to work in Ubuntu, but can't seem to get it to work at all. It is a USB HID device, and shows up as such in dmesg: [ 2236.277518] usb 1-1: new full-speed USB device ...
2
votes
1answer
44 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 ...
1
vote
1answer
89 views

Undefined reference to udev_new

I am currently trying to test a c++ code I wrote on Qt, and I downloaded libudev and it keeps giving a lot of "undefined reference to". I followed almost all of the posts of upgrading libudev, sudo ...
1
vote
1answer
20 views

Scythe keyboard pedals

I have bought Scythe keyboard pedals: kernel: usb 1-4.1.2: new full-speed USB device number 16 using ehci-pci kernel: usb 1-4.1.2: New USB device found, idVendor=0426, idProduct=3011 kernel: usb 1-4....
1
vote
1answer
40 views

How to send Kernel name in udev rules?

I want to do is auto mount every usb-drive to static path. But when I send kernel name with %k to shell script it returns like 1-3, 2-4 ... not sdc1, sdd1... s[b-z][1-9] this is my udev rules 10-...
2
votes
2answers
222 views

Automatically use usb_modeswitch for Wifi USB

I've recently purchased a Wifi Dongle containing a Realtek rtl8811CU chipset. I'm using Ubuntu 18.04 LTS. Luckily, after finding this Github repo, I could compile it and install the driver without ...
1
vote
1answer
43 views

Custom notification from udev rule

My goal is to trigger a notification with custom actions when a specific storage device is mounted. Notifications are made in python with pynotify I run lsusb to get device's idVendor and idProduct ...
1
vote
1answer
61 views

Modify group for all automount USB flash drives and external hard drives

I'm running both Linux Mint (17.2) and Ubuntu (18.04) on two different machines. When I plug in an external hard drive or USB flash drive, the drive is automatically mounted. A directory is created (...
0
votes
0answers
80 views

How to avoid same/duplicate MAC address for Huawei E3372h-607 4G modems? [duplicate]

I have four Huawei E3372h-607 4G modems in HiLink mode which means they are detected as 4 ethernet adapters: ... [ 1378.768228] cdc_ether 2-1:1.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-1, CDC ...
0
votes
1answer
110 views

Qemu libusb always fails with “Operation not permitted”

I'm attempting to pass through USB devices through a qemu KVM and receiving the following error: libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/009: Operation not ...
0
votes
1answer
72 views

How to run a shell script _before_ systemd-udevd runs?

On Ubuntu 18.04, I would like to run a shell-script before systemd-udevd starts. The reason for that is this bug: Ubuntu 18.04 systemd-udevd uses high CPU, conflict with nvidia graphics The solution,...
2
votes
1answer
93 views

How to ensure systemd does not start a unit until udev has created the device node

I want to mount a UBI filesystem during boot. Depending on the configuration, the MTD device number could vary from build to build, but it will always be the partition called add. I have added the ...
0
votes
0answers
49 views

Ubuntu fails to boot after upgrade from 16 to 18 due to failed systemd-udevd.service

After dist-upgrade from Ubuntu 16 to 18 my system fails to boot. My Ubuntu works in VirtualBox. Output of journalctl -b
0
votes
0answers
87 views

Cannot download from GoPro with gphoto2 since upgrade to 18.04

I recently upgraded from Kubuntu Xenial to Bionic. Previously I could download videos from my GoPro Hero 4 Silver using gphoto2: gphoto2 -P Since upgrading, I now see the following error: $ gphoto2 ...
0
votes
0answers
22 views

Why does USB tethering network device ignore 70-persistent-net.rules?

I use Android device to share mobile Internet with Ubuntu device via USB tethering. I need to set some custom rules to access 4G Internet, so I try to rename USB network device to something ...
0
votes
0answers
38 views

Bash script does not run VNC-viewer command

So im trying to open a VNC client when a Udev rule triggers, the rules works and the script is executed too but the command isn't. Here is the Bash script #!/bin/bash sudo -u term402 touch /home/...
2
votes
2answers
33 views

How to symlink a device throught udev and always point to the same device?

I have the following udev rule for a USB thermal printer that works with serial through usb: SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c8a", ATTRS{idProduct}=="3001", SYMLINK+="ttyS99", MODE="0660", ...
0
votes
0answers
20 views

Nautilus / LUKS integration

I just upgraded to ubuntu 18.4LTS with more or less a lot of trouble. Got almost everything running again, except the fact that i cant see my luks container in nautilus anymore. Before the update I ...
1
vote
0answers
55 views

Udev correctly executes but usb stick won't automount since Ubuntu 16.04 and after

I have been running Ubuntu 14.04 until I installed 18.04. On 14.04 I successfully created a udev rule that upon certain USB stick insertion it run a script AND the system used to auto-mount the stick (...
0
votes
1answer
162 views

Disable usb port [duplicate]

I want my computer to stop listening on a specific usb port. The problem is that the device connected there keeps disconnecting and reconnecting. I think this may be due to a hardware fault. The usb ...
1
vote
0answers
55 views

My USB camera is no longer recognised as a storage device

When I plug the USB cable into my Nikon camera, it used to be recognised as a storage device, /dev/sdc or so, of which a slice could then be mounted with mount /dev/sdc1 /mnt This no longer works: ...
2
votes
0answers
819 views

Permission denied to non-root user for USB device

I'm having a lot of difficulty getting the Arduino Tiny AVR Programmer, aka (PMG-11801) to work on my Ubuntu 18.04 laptop. This is an Arduino device that programs ATTiny85 chips in the Arduino IDE. I ...
0
votes
0answers
92 views

Allow Keyboard and Mouse to Connect but block Pen Drive and Joysticks on Ubuntu

I want to allow all the keyboards and Mouse to connect with the ubuntu machine but want to block all pen drive and Joysticks. I have tried this using UDEV rules, it is okay if we want to block/ allow ...
0
votes
0answers
84 views

Lenovo Thinkpad T420, Mini Dock 3 external monitors, udev rules and a dysfucntional script… (Ubuntu 18.04, with the i3 WM)

So I'm trying to configure udev rules to automatically configure my DE/WM (Which ever I'm using at the moment (right now it's i3, may have to stick with this for a bit...) to configure my external ...
0
votes
1answer
165 views

Generic bluetooth joystick driver/udev rules

This is my first question since I'm less than a week old Ubuntu user. I officially switched from W10 on Friday. I have managed to find answers to all my n00b questions until today when I tried to ...
2
votes
1answer
362 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 ...
2
votes
0answers
2k views

how to check udev rules for 18.04 and android device

I have a Samsung J2 Prime phone which fastboot cannot detect. ADB detects when in MTP mode. After booting phone to download mode lsusb shows my phone in download mode so I dont think its a driver ...
10
votes
3answers
6k views

AdbCommandRejectedException: insufficient permissions for device: user in plugdev group; are your udev rules wrong?

Five days ago I installed Android Studio on a fully updated Ubuntu 2018.04, used the wizard to create an example app, pressed the "Run" button and it ran perfectly on my Android device connected via ...
0
votes
0answers
125 views

Mounting external USB NTFS volume via udev rule not possible

there are few similar questions regarding this problem but no answer worked for me and obviously they didn't work for the other guys either because no answer was marked as solution. So I try it again: ...
1
vote
1answer
87 views

symlink created with udev points to partition instead of drive

Here is what I am trying to accomplish with a udev rule. Maybe I need more than one. I have a micro-sd card I insert into a usb adapter. This card has multiple partitions. I want to have a /dev/...
0
votes
1answer
313 views

How do I fix the automounting of USB drives after installing Openbox on Ubuntu 16.04?

I am installing Openbox on Ubuntu 16.04 because I need to eliminate the top window bar for the application I am running. This appears to be a good solution except that the system no longer automounts ...
4
votes
0answers
38 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 ...
3
votes
1answer
2k views

writing udev rule for USB device

I have 3 USB to serial devices connected via an USB hub to the PC.They are assigned device paths (ie; /dev/ttyUSB0 or /dev/ttyUSB1 or /dev/ttyUSB2 ) based on the order of plugging in. My application ...
1
vote
0answers
47 views

udev rules for unity cameras [duplicate]

I have two EXACT same uvc unity cameras that have no serial number so I have abandoned mounting them via some unique attribute. Instead I specifically looking to mount it via the usb port I have ...
0
votes
0answers
55 views

Udev rule calls script and that script calls another script with a variable and the variable is empty

When I call a script that was called by udev and then I pass a variable from that script to another script the variable is empty. Udev calls this script: a.sh #!/bin/bash function hello () { /...
3
votes
1answer
987 views

What nasty systemd-udevd overloading my CPU?

Top will give me the following: (94 % CPU load from PID 28055) PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND ...
1
vote
1answer
181 views

Multi-Seat with Kubuntu 17.10 / Artful (systemd, sddm, KDE)

I want to set up multi-seat on my PC. I already added a second VGA adapter to make things easier/possible?. We have got: Kubuntu Artful 17.10 (KDE) systemd sddm (we probably have to use lightdm, ...
1
vote
1answer
290 views

udev rule at boot time

I have a udev rule to execute a simple command when a USB device is plugged (any device). The rule is: ACTION=="add", SUBSYSTEM=="usb", RUN+="/bin/sh -c 'xhost +local:pi; sudo -u pi xscreensaver-...
1
vote
1answer
165 views

Same hardware & OS, different network adapter name

I'm currently installing 2 new servers, exactly the same hardware & installation procedure. Both machines have 4 NICs, 2 x 1Gbit and 2 x 10Gbit The 1Gbit ones get a different name and I have no ...
0
votes
0answers
134 views

Most media keys working, some totally ignored even by showkey/evtest. Now what?

Summary Here is an Ubuntu system with an external keyboard with 16 "media" (extra) keys. All normal keys and most "media" (extra) keys works perfectly. Some keys work out-of-the-box (XFCE here, e.g....
0
votes
0answers
47 views

External DVD Drive Connection failure on Lubuntu

I am running a recently installed and upgraded version of Lubuntu Linux dlwasus 4.13.0-36-generic #40-Ubuntu SMP Fri Feb 16 20:07:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux I am trying to use an ...
1
vote
1answer
972 views

Lubuntu: connect to Huawei E3531

After hours of trying searching the web and trying several things, I can't get running a Huawei E3531 usb-modem. Before updating Lubuntu 14.04 LTS to 16.04 LTS it worked well. Now it noticed the ...
0
votes
0answers
63 views

libinput: Touch Pad listed as Pointer. Webcam listed as keyboard?

For my Ubuntu 17.10 and previously 16.04, both on wayland and Xorg, my libinput is detecting my touchpad as a pointer and my webcam as a keyboard. I do not know how to fix this behaviour. Can someone ...