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

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
0answers
18 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-...
1
vote
2answers
55 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 ...
0
votes
0answers
31 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 ...
0
votes
1answer
35 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
40 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
50 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
69 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
36 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
33 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
47 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
12 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
33 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
30 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
15 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
47 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
83 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
52 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: ...
1
vote
0answers
612 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
76 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
69 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
126 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 ...
1
vote
0answers
203 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
1k 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 ...
7
votes
3answers
3k 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
83 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
63 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
275 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
32 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
1k 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
53 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
865 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
139 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
185 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
116 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
101 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
46 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
773 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
56 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 ...
1
vote
1answer
145 views

Accessing other drives on an AWS EC2 instance?

I ran an application on an Ubuntu instance of Amazon EC2, and it ran out of memory. Here is what df shows: ubuntu@ip-172-31-9-56:~/layers/punctuation$ df Filesystem 1K-blocks Used Available ...
0
votes
1answer
376 views

0% usage on udev (/dev) partition

On two Ubuntu VMs I have a filesystem under the name udev with a size of 7.4G and 0% used. It's mounted on /dev. Just wondering if this low usage is normal behavior.
1
vote
1answer
800 views

Why is my udev rule not working?

I need to automatically run my script /var/www/html/configWWW when any USB is plugged in to my Rasperry. UDEV RULE - /etc/udev/rules.d/myRule.rules ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="*...
2
votes
1answer
79 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 ...
1
vote
0answers
64 views

Android device not recognized by specific computer

I have a peculiar issue with my phone - it is not recognized by ONLY my home computer. Phone is a OnePlus 3 (05c6:676c). Computer is running Kubuntu 16.04 with the 4.14.0-041400-generic kernel. Udev ...
6
votes
2answers
711 views

Ubuntu 17.10, Yubikey Neo udev rules not triggering

I've got Ubuntu 17.10 installed on a mid-2011 iMac. On a Dell XPS 15 laptop I was able to set up my Yubikey (via udev rules) to activate & deactivate the screensaver when the Yubikey was unplugged ...
1
vote
1answer
29 views

Udev create symlink without defalut mounting point

I am able to create a static symlink for my device using udev rules. Hovewer, I cannot prevent udev from automatically creating mounting points. Here it is, I have a device with ATTRS{idVendor}=="...
1
vote
0answers
504 views

Setting power/control with udev

I would appreciate it guys if you help me with disabling auto suspend of USB devices in Ubuntu 16.04 on laptop. The USB is an external audio device, in order to keep the USB device always on I ...
1
vote
0answers
347 views

kern.log: “ INFO: task systemd-udevd:295 blocked for more than 120 seconds.”

When I cp or dd a ISO (>1GB) file to a usb disk, kernel tell me this. I google it, found it has been going on for years at Launchpad bug reports, why after so many years, it still can't be solved? I ...
2
votes
1answer
711 views

udev does not correctly mount USB stick

I have an ARM-based ODROID XU4 running Ubuntu 16.04. I want to automatically mount USB sticks on /media/usbdisk when they are inserted. Now I'm facing the problem that the devices don't seem to be ...