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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [udev]

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

0
votes
0answers
8 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
23 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
44 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
42 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: ...
0
votes
0answers
246 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
58 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
52 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
68 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
91 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 ...
0
votes
0answers
843 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 ...
3
votes
3answers
1k 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
51 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
51 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
225 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
30 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
710 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 () { /...
2
votes
0answers
652 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
98 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
115 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
83 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
63 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
45 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
611 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
44 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
115 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
239 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
550 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
65 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
58 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
644 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
28 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}=="...
0
votes
0answers
415 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
252 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
606 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 ...
1
vote
1answer
76 views

How can I see udev actions at runtime?

Does there exist a udev command that allows me to see in real time (at run time) on the terminal the creation of the device node when newly device is attached? A little bit as happens when using the ...
1
vote
1answer
128 views

attaching an external device: udev, hal, dbus and … mini-ubuntu

If I've well understood, in the modern linux distributions, attaching an external device (usb stick or ide/sata hard disk) to a PC, Udev, HAL and Dbus allows to manage it. udev - identify the ...
2
votes
2answers
1k views

udev rule with {serial} for ttyUSB not working

I am using Ubuntu 17.10 along a tty-to-USB adapter (adding more in future), thus intending to create a unique udev identifyier to the adapter. I did lsusb: Bus 007 Device 002: ID 067b:2303 Prolific ...
1
vote
1answer
156 views

How can I instruct ubuntu to map drives to specific /dev/xxx

This is a reverse question to tons of questions about how to identify which physical drive matches /dev/sdx. I want to avoid having to ask that question when a drive fails. I have bought an adapter ...
0
votes
1answer
352 views

Not able to set group and permissions using udev rule

I written simple rule for detecting the ADU208 relay device and create its device file. #Creat device file for ADU208, USB relay. SUBSYSTEMS=="usb", ACTION=="add", KERNEL=="adutux1", ATTRS{idVendor}==...
1
vote
0answers
32 views

Changing network device name of a nfsroot used device

So to the context, I have a couple of machines starting up via an pxeboot that use an nfs share as their root. Being able to use it you can/have to specify an device name in the pxelinux.cfg which ...
0
votes
1answer
134 views

Does new block device always appear in the /dev directory?

I'm wondering, if it is possible for a new block device (e.g. SCSI/USB data disk device) connected, to show up somewhere else, than in the /dev directory? Btw, let's not consider symlinks appearing ...
0
votes
1answer
590 views

Very slow boot and broken elements on Ubuntu 16.04

Here are the first a few items from the output of system-analyze blame and this appears after some kernel updates which I think it's a bug. The systemd-udev-settle uses a lot of time to boot, but I ...
2
votes
1answer
323 views

Can't execute script from udev rule [closed]

I'm trying to create an udev rules on Ubuntu 17.10. After hours of testing I desperately ended up with the following rules in /etc/udev/rules.d/98-intelpwm.rules: (it's for testing purpose only!) ...
0
votes
0answers
30 views

How to run shell script upon USB insertion? [duplicate]

Note: I am very new to using Linux/Ubuntu. I have attempted research before this. I have looked at How to run a script when a specific flash-drive is mounted? (Also, the similar questions are not what ...
0
votes
1answer
178 views

Usb joystick detected… and removed

I have a strange issue where my usb joystick is detected properly and then nicely removed by the kernel. dmesg output when inserting the usb connector: [ 2319.770016] usb 1-1.5: new full-speed USB ...
1
vote
0answers
156 views

Simple udev rule doesn't work on Ubuntu 16.04 [duplicate]

Can't get what's wrong with my udev rule and bash script. I want to make simple test on usb device insertion. This is my rule /etc/udev/rules.d/90-usb.rules: ACTION=="add", RUN+="/home/mike/...
0
votes
1answer
190 views

If udev service create /dev files then what is the need of mknod command?

Iam trying to understand mknod command, but got stuck here .In linux udev service detects devices connected to the linux machine ,then what is the need of the mknod command .please help..
3
votes
1answer
383 views

all snap installed applications failed to launch with error udev_enumerate_scan_failed

So, I have a fresh install of Ubuntu 16.04. I've loaded various software packages, and had everything working. I rebooted this morning and now some of my applications won't launch... I even ...