Questions tagged [udev]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
34 views

what is orange colored files in dev directory?

i looked up in whole root directory but i didn't understand one thing what does orange color in dev directory mean? i know its directory for system devices but i didn't understand the c in ls -l ...
0
votes
0answers
12 views

audio device use ehci but I want xhci

How can I force a usbdevice to use xhci instead of ehci? I have a laptop where xhci grabs the card (works) and a PC where ehci grab the card (dont work) both computers run the same ubuntu 20.04 and ...
0
votes
0answers
23 views

How to get script to 'always launch' on device connect?

I'm trying to run a script when a device is connected. My udev and systemd files are loaded and triggered, but will only launch the script a single time. If I disconnect and reconnect the device, the ...
1
vote
1answer
44 views

Get a mail notification whenever anyone connects a storage device

I'm working in a Linux-based environment where there are more than 100 servers. I need to get a mail notification and popup notification whenever anyone connects a storage device. How do I configure ...
1
vote
0answers
73 views

I updated my Ubuntu from 18.04 to 20.04, but after forced shutdown it is not booting up

I updated my Ubuntu from 18.04 to 20.04, but after forced shutdown it is not booting up. Here is the Bootload screen image.
2
votes
1answer
68 views

A udev rule for automatically executing rsync scrips is not working

I have written the following udev rule /lib/udev/rules.d/99-Goprobackup.rules #when device /dev/sd* is added to the KERNEL with the UUID defined RUN the script ACTION=="add", KERNEL=="/dev/sd[b-z][!...
0
votes
1answer
27 views

How do I know if device is mounted in udev rule?

I'm trying to avoid to mount devices that previously are mounted with fstab. This is what happens now: This is what happens now: /dev/sda1 on /boot /dev/sda2 on / /dev/sda3 on /home /dev/sda2 on /...
0
votes
1answer
28 views

how to assign serial port name using rules.d?

The system is Ubuntu 16.04 with two Arduino devices connected via USB cables. When they are connected they appear in /dev directory as ttyACM0 and ttyACM1. Is it possible to assign a different name ...
0
votes
0answers
9 views

Setting UDEV rule for scheduler setting on USB drives fails

I am trying to set different rules in UDEV to change the scheduler based on the type of USB media that is inserted. For regular flash drives the scheduler should be NOOP, but for my USB HDD with ...
1
vote
1answer
120 views

Script run by udev rule fails

I'm running Ubuntu 18.4 and i got a problem with a script that refuses to run when triggered by udev rule. This is the Situation: I am running on a Surface Pro 4. This Device has a detachable ...
1
vote
2answers
24 views

How do I copy udev rules to the right place? Likely a simple question, but I cannot find a tutorial or anything on how to do it

I want to copy this code into /etc/udev/rules.d/. At first I tried to drag a text file named 50-ds4drv.rules into it, but lo, I was not allowed, obvious in hindsight. I am aware that I need to use ...
1
vote
0answers
25 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 ...
1
vote
0answers
87 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 (...
0
votes
1answer
147 views

File-system in read-only mode, restart, fsck repeat

My system works for a while and then eventually falls into "read-only filesystem". The only way to fix it is to restart the computer and hope that it allows me to fsck without getting into some kind ...
2
votes
0answers
33 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 ...
0
votes
0answers
29 views

“Unable to open config port” with correct permissions

I'm trying to use RF-TrulyMagical, basically a controller for the APC220 module, but it says ERROR: Unable to open config port: ttyUSB0 which is the port where the APC220 is connected. As far as I ...
1
vote
0answers
41 views

User configs are removed from 70-snap.core.rules file under certain conditions in ubuntu 18.04

I have a modem which has a USB serial port connection. When I connect this modem to PC, I usually have 4 ttyUSB ports as ttyUSB1, ttyUSB2, ttyUSB3, ttyUSB4 and I can work with these ports in my C++ ...
2
votes
0answers
200 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}=="...
0
votes
0answers
461 views

uninitialized urandom read error appearing in dmesg

I'm using: OS: Ubuntu 18.04.3 LTS x86_64 Kernel: 4.15.0-72-generic After the machine finishes to boot, I run into the following errors in the kernel log by running dmesg: [ 0.000000] random: ...
1
vote
1answer
341 views

How to run a configuration script as soon as a Wacom graphics tablet is connected (via USB)?

I'm using a Wacom graphics tablet under Ubuntu 18.04 (Kernel: 4.15.0-72-generic). Unfortunately, I cannot configure it using the system settings because it is not recognized properly. The ...
4
votes
1answer
313 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 ...
0
votes
0answers
55 views

Making devices accessible to all users in a group

I have two devices, /dev/comedi0 and a USB device, which I want to make accessible to all users in the group scan. I have tried creating a udev rule to do this, but without success: KERNEL=="comedi*",...
0
votes
0answers
47 views

Udev rules for USB

I am doing some research on Udev rules for USBs. Most articles I found are centered around blocking USB devices on Ubuntu using Udev. Can accomplish firewall like functionality by writing Udev rules?...
2
votes
0answers
340 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 ...
1
vote
0answers
17 views

Taking an action after connecting a USB-to-Ethernet adapter

When I connect a USB-to-Ethernet adapter (that has been previously used), I receive a MAC address, and then if there's something connected on the other end I receive also an IP address (192.168.1.1 in ...
0
votes
1answer
89 views

Ubuntu server 16.04 installations have no udev rules

My Ubuntu desktop 16.04 machine has udev rules: user@desktop:~$ sudo tree /etc/udev/ /etc/udev/ ├── hwdb.d ├── rules.d │   ├── 48-adwits.rules │   ├── 49-stlinkv1.rules │   ├── 49-stlinkv2-1.rules │  ...
1
vote
2answers
247 views

How to see all udev events during boot?

Need to see the udev events to write rules. I've tried to set udev_log="debug" in /etc/udev/udev.conf. I've tried to edit /usr/share/initramfs-tools/scripts/init-top/udev to set log_level=debug ...
1
vote
1answer
322 views

Running Script with USB device

I want to copy a directory and its contents to my external USB hard drive when I connect it to my laptop automatically. So, I created a file called 00-usb-backup.rules on /etc/udev/rules.d with this ...
0
votes
0answers
38 views

UDEV rule not working!

im trying to create a udev symlink rule: Here is what i have written so far which doesnt seem to work: ACTION=="add", SUBSYSTEM=="block", ATTR{size}=="60626944", ATTRS{model}=="USB DISK 2.0 ", ...
2
votes
0answers
38 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 ...
1
vote
1answer
154 views

can't find 'udevd' binary in ubuntu docker image

I am currently following a guide for a ubuntu based docker container. Guide: https://joshh.info/2017/xserver-in-docker-revisited/ In there the author is using udevd and udevadm. For the latter I have ...
0
votes
1answer
165 views

Udev not create the new symlink

I would like to assign a static symlink to my usb device. lsusb output: Bus 003 Device 003: ID 0461:4d81 Primax Electronics, Ltd Dell N889 Optical Mouse Then I create a udev rules file under /etc/...
1
vote
0answers
40 views

Can't get udev rule to work

I'm trying to run a script when my mouse connects. #!/bin/sh echo New mouse speed applied id=17 speed=1 xinput set-prop $id "Coordinate Transformation Matrix" $speed, 0, 0, 0, $speed, 0, 0, 0, 1 ...
0
votes
0answers
53 views

Potentially expanded incorrectly my partitions udev 100% usage

After expanding my partitions to 80 GB, I'm trying to download and I get this message: d: writing to '/dev/vdb': No space left on device And when I check root@rescue-pro:~# mount /dev/sdb1 /mnt ...
1
vote
1answer
151 views

Udev rule to connect USB to CAN Lawicell

I did purchase a USB to CAN from Lawicell Using this tutorial (http://pascal-walter.blogspot.com/2015/08/installing-lawicel-canusb-on-linux.html) device is running but I cannot automatically detect it ...
3
votes
0answers
180 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 ...
0
votes
2answers
116 views

Udev rule not executing on usb insertion, should run script in background

i wrote a udev rule and placed it in /etc/udev/rules/90-wifi.rules ACTION=="add", SUBSYSTEM=="usb", DRIVER=="usb", RUN+="sh /usr/local/bin/setup_wifi_wrapper.sh" It should run on every inserted usb ...
5
votes
1answer
1k views

multiple /dev/video devices for 1 camera causing issue with udev rules

Since upgrading from ubuntu 16.04 (kernel 4.15.0-60-generic) to 18.04 (kernel 5.0.0-27-generic) v4l now returns multiple /dev/video devices per physical device. This causes issues when trying to map ...
2
votes
1answer
3k views

user in plugdev group; are your udev rules wrong or error: insufficient permissions for device: udev requires plugdev group membership?

I encountered error like "(user in plugdev group; are your udev rules wrong?", After googled, I found some key refers: Ref 1. Set up a device for development from Android Developer; Ref 2. Solved: ...
0
votes
0answers
23 views

Memory Error When Building Large Hdf5 on Amazon AMI (p2.xlarge GPU, 61 GB Memory)

Whenever I try to build an hdf5 dataset, I get an error saying that there is not enough space. I built the dataset on my local machine, and it is approximately 36 GB. I am currently using the p2....
1
vote
1answer
462 views

18.04: How can udev rule RUN script access network

I have an udev rule that downloads a file when a USB device is plugged in: ACTION=="add", ATTRS{idVendor}=="cafe", MODE="0660", GROUP="root", SUBSYSTEM=="usbmisc", RUN+="/home/me/udev-net.sh" The ...
0
votes
0answers
22 views

prevent wireless mouse's movement waking up a suspended computer but let the mouse buttons wake it up

I have a weird problem regarding the mice in my computer. Maxxter wireless mouse wakes up the computer with the slightest movement while cabled usb mouse wakes it up when I have to press the buttons. ...
1
vote
1answer
100 views

USB MP3 player suddenly has restricted permissions. Is this a udev issue?

I have been using various USB MP3 players for years for podcasts. Suddenly, two days ago, I cannot add files to the player because permission is denied.It is mounted and readable, but copying or ...
0
votes
0answers
18 views

Dual USB NIC and virsh

I want to use a USB-Dual-NIC (lan, wan) with my NUC and a virtual machine (KVM, QEMU). After reboot or unplug the USB-Dual-NIC the device number changed and my VM doesn't work any more. After changing ...
1
vote
1answer
188 views

TLP trouble with udev events. Ubuntu 19.04

My installation of TLP on Ubuntu 19.04 does not automatically change status when charging status changes. Output from sudo tlp-stat -s --- TLP 1.1 ------------------------------------------...
2
votes
1answer
2k views

Rename interface permanently

I am trying to rename one of the interfaces on a cluster machine with 20 interfaces, some of them are physical, others are virtual. After researching I found out that in newer versions of Ubuntu the /...
1
vote
0answers
333 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-...
1
vote
0answers
69 views

udev script not running, works in test

I'm trying to make a script run automatically when I dock or undock my laptop. I have this simple test script I want to run: $ cat /usr/local/bin/undock.sh #!/bin/sh /usr/bin/touch /tmp/testFile....
1
vote
0answers
262 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 ...
0
votes
0answers
381 views

dpkg: error processing archive udev_237-3ubuntu10.23_amd64.deb (--install)

Ubuntu 18.04.2 LTS. After regular apt update/upgrade I have the following error: apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to ...

1
2 3 4 5
11