Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [udev]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

udev test run oke but script doesn't run

I've been trying to make a rule to run a script when i (dis)connect my qwerty keyboard. This way i can automatically switch to the azerty layout from my laptop. Super+space is a shortcut to switch ...
user avatar
  • 1
0 votes
1 answer
28 views

Inconsistent UDEV behavior 'dev/video14'

I am trying to write a udev rule that creates a symlink /dev/video14 that points to the /dev/video index of my usb camera, so that I can map it to the same index consistently. I currently have the ...
user avatar
  • 1
2 votes
0 answers
50 views

WSL: how do I set the group for a tty device

I am running usbipd on windows 11 to enable USB devices to attach to WSL. This works. I can run my serial application as root and it works fine. I would rather not run my application as root. My user ...
user avatar
  • 21
0 votes
1 answer
67 views

udevadm test command on Ubuntu gives warnings not seen in Manjaro

I created a very simply udev rule /etc/udev/rules.d/99-local.rules that runs a script to create a file in /tmp when a USB key is inserted into my computer. I tested this on a Raspberry Pi 4 running ...
user avatar
0 votes
0 answers
135 views

libudev1 (jammy-updates) removes many packages

Installing libudev1 249.11-0ubuntu3.1 from jammy-updates will remove many packages. What could be the cause? # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: ...
user avatar
0 votes
0 answers
12 views

'Resource busy' when running nocturn-linux-midi

I'm on Ubuntu 20.04 studio, with jack setup and running a midi keyboard and other things. Additionally, I'm trying to make a usb midi controller "novation nocturn" work with the code at: ...
user avatar
  • 61
0 votes
1 answer
64 views

Listing device in /dev/ path

I have been trying for several days to get my ESP32 to show in /dev/ttyUSB* I cannot get it to show at all I am running ubuntu If I do lsusb I get Bus 001 Device 006: ID 1a86:55d4 QinHeng Electronics ...
user avatar
  • 103
1 vote
0 answers
49 views

Ubuntu udev rules for running python3 script on usb device

I am trying to run a python3 script to control a USB robot arm (OWI 535) on Ubuntu 18.04.05. The script successfully opens a "tinker" GUI module that should control the robot arm. On ...
user avatar
0 votes
1 answer
19 views

Python script called by udev rule unable to import modules ModuleNotFound

I have a udev rule which triggers a python script whenever a block device (USB drive) is attached/detached from the system. The udev rule seems to be firing correctly, but the python script it calls ...
user avatar
  • 196
0 votes
0 answers
30 views

Get a udev symlink registered as a serial in softwares

I created udev rules to have specific symlinks to my USB device. The USB device is a serial device that usually comes up as ttyUSB0 or ttyUSB1. I made the symlink to be sure I have always the same ...
user avatar
0 votes
0 answers
56 views

systemd-udev hogs system cpu at 100%

Recently I encountered a problem on one of the nodes of kubernetes where system was running at a crawling speed. after investigating I found that several instances of systemd-udevd were running. ...
user avatar
1 vote
1 answer
69 views

Logitech c930e focus reverts to default settings even with custom udev rules

OS: Ubuntu 20.04 (Focal Fossa) I recently bought a Logitech c930e camera for use in online proctored exams where the invigilator may ask for a government-issued ID to be shown. The camera has an ...
user avatar
0 votes
2 answers
218 views

udev does not create symlink

I am trying to give my sensor device a static name. I opened a file called 99-usb-serial.rules in /etc/udev/rules.d and wrote the following rule: KERNEL=="ttyACM0",KERNELS=="1-1",...
user avatar
  • 101
0 votes
1 answer
217 views

(20.04.3 LTS) USB controllers detected by lsusb and jstest, but not by jstest-gtk or anything else

lsusb output: Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 04f2:b5a9 Chicony Electronics Co., Ltd PDP Wired Controller for Xbox One - Raven Black Bus 001 ...
user avatar
0 votes
1 answer
77 views

MIDI USB/WebUSB in Chromium: Novation Components web app on ubuntu

this is a question regarding the music production device Novation Circuit Tracks. You are supposed to use this web app to maintain the device. This requires a a browser with MIDI capability, such as ...
user avatar
  • 111
1 vote
0 answers
73 views

Detach process from execution thread [duplicate]

I am launching a script with a udev rules on every usb device connection. The issue is than i need than this script to launch another one after 20 seconds. This is the code. #!/bin/bash # sleep 20 /'...
user avatar
0 votes
1 answer
97 views

20.04 increase txqueuelen

I'm trying to increase txqueuelen from the default 1000 to 5000 If i run # ip link set enp1s0 txqueuelen 5000 It sets it until I reboot. I've looked at persisting this, and this post suggests using a ...
user avatar
  • 3
0 votes
0 answers
171 views

Getting `libftd2xx.so: undefined symbol: stime` with python package and non-root

please could you help me? I have FTDI USB/serial convertor and trying to use vendor's library with Python package ftd2xx. According to FTDI readme, I copied the library to /usr/local/lib, created ...
user avatar
1 vote
0 answers
53 views

How to change some wrong entries in udev hardwaredatabase

I'm German, it's been a long time since I've written in english (over 35 years). Sorry for bad style and mistakes. Problem: some USB devices are recognized incorrectly. For example: Bus 002 Device 016:...
user avatar
  • 21
0 votes
0 answers
56 views

Replacing ifupdown's post-up in Ubuntu 20.04 container?

Cheers. I's setting up a sort of VPN gateway/endpoint - an unprivileged LXC container (running under Proxmox VE 7) based on Ubuntu 20.04, with nordvpn and dante-server installed. The latter is set up ...
user avatar
  • 44
0 votes
0 answers
23 views

How to map touchscreen to primary monitor automaticaly

I use a board with 2 monitors and a touchscreen(Vendor is Weida). I use the DP-1 monitor as the primary monitor and eDP-1 as an extended monitor. When I power on the board the touch screen will map to ...
user avatar
0 votes
1 answer
324 views

systemd-udevd causes high load after upgrade to Ubuntu 21.10 server on Raspberry PI 4

After upgrading my Raspberry Pi 4 8GB from Ubuntu 21.04 to 21.10 I got high load due to systemd-udevd. I made a clean install of Ubuntu server 21.10 but the problems remain. I use a SSD (no SD card). ...
user avatar
1 vote
0 answers
104 views

Doing an udev rule at boot time

I have a service that I want to run, only after udev has set the correct permissions on device files. This seems to go wrong at boot time: My service is started, with the /dev/hidraw0 file permissions ...
user avatar
  • 1,003
1 vote
1 answer
140 views

Open serial port without root priviledges on Ubuntu (udev rules)

I was following this tutorial to setup access to Flir Boson camera serial port from userspace: https://www.forecr.io/blogs/connectivity/how-to-integrate-flir-boson-thermal-camera-to-nvidia-jetson-...
user avatar
  • 13
2 votes
1 answer
101 views

Mounting drives and Udev - Udev does not mount drives but executes other aspects of the script

I want to hot plug an external hard drive, have it mount and automatically run the Unison File Synchronizer. I have made a udev rule called /etc/udev/rules.d/100-sync.rules ACTION=="add", ...
user avatar
0 votes
0 answers
197 views

Systemd fails to mount some disks during boot

I have a system with a lot of disks (roughly 96 data drives, formatted xfs) running Ubuntu 20.04 LTS. During boot, systemd manages to mount most of the drives, but fails to fully last 20 or so ...
user avatar
1 vote
1 answer
282 views

Where is the static version of libudev?

Because I want my binaries to run on older distributions, I decided to build a statically linked binary. My application depends on libhid-hidraw and through that, on libudev. I have the development ...
user avatar
  • 1,003
1 vote
0 answers
339 views

Mouse movement wakes system up from sleep if the USB adapter is not reconnected

I have /etc/udev/rules.d/99-wakeup.rules to disable wakeup from sleep when using a keyboard or mouse connected to the device: ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb&...
user avatar
  • 4,689
3 votes
0 answers
74 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 ...
user avatar
  • 33
1 vote
1 answer
478 views

udev rule for similar devices

I'm struggling in creation of udev rules for some similar devices (serial USB port). Here the output of the detail from one of them: $ udevadm info --name=/dev/ttyACM0 --attribute-walk Udevadm info ...
user avatar
  • 315
1 vote
1 answer
204 views

high cpu usage from systemd-udev, tracker and modprobe after 21.10 upgrade

I see high cpu usage after upgrading to 21.10 top indicates that tracker, systemd-udev and modprobe are running continuously I also see mouse problems. I my mouse moves jerkily and I get spurious ...
user avatar
  • 248
3 votes
1 answer
3k views

USB serial devices not showing in /dev/serial/by-id/ after update from 21.04 to 21.10

Architecture is arm64 running on a RPi 4 2gb. The serial device is any of my 3d printer boards running Klipper firmware. USB device was working perfectly fine before update. I've also tried a fresh ...
user avatar
0 votes
0 answers
609 views

Ledger Nano S - Ubuntu 20.04

I need help getting my Ledger to connect. Currently I am stuck on the verify screen. I am running Ubuntu 20.04 and Ledger Live Desktop 2.33.1-linux-x86_64 I have ran the troubleshooting steps here: ...
user avatar
1 vote
1 answer
335 views

How do I write a udev rule to persist an attribute on boot?

I want to persist the value of /sys/devices/platform/lg-laptop/fn_lock to be 1 after a reboot. After doing a lot of research, it seems that the right way to do this is to create a udev rule for it. So ...
user avatar
0 votes
1 answer
151 views

How do I maintain permission across reboots for a script to write to `/sys/class/backlight/acpi_video0/brightness`?

I wrote a script that lets me toggle my laptop screen's brightness (I run if from a hotkey bound by xbindkeys), but it involves writing to /sys/class/backlight/acpi_video0/brightness. For now, I've ...
user avatar
  • 341
0 votes
0 answers
54 views

Starting ssh over usb using android reverse when device plugged in

I would like to execute commands on my laptop from my phone over a usb, I found from this answer that I should use adb reverse, and it worked perfectly. Now I want adb reverse tcp:8080 tcp:22 to run ...
user avatar
2 votes
1 answer
803 views

Ubuntu 20.04.3 LTS systemd-udevd high CPU with CD/DVD rom drive

I know this question seems to be asked a lot in respect to wifi or bluetooth or nvidia but I'm struggling with an issue related to the cd-rom/dvd-rom. I'm running Ubuntu on a Parallels VM and there is ...
user avatar
0 votes
0 answers
174 views

Different detection behavior of LUKS1 and LUKS2 encrypted external SSD

I wrote a udev-rule and an entry in fstab to auto-unlock the SSD as soon as it is connected to the system. The separate udev-rule file contains the following rule ACTION=="add", ENV{...
user avatar
2 votes
1 answer
1k views

Ubuntu Server 18.04.5 upgrade to 20.04 fails

My server is driving me nuts, I'm trying to change the current hdd to a new ssd and after that setting up Raid and a valid backup system. But that's other question... I already made a copy of the ...
user avatar
  • 33
0 votes
0 answers
168 views

VLC crash ( '/ dev / fb0' failed, globalhotkeys,none, ..)

VLC, previously fully functional, suddenly started not playing videos. Executed from the terminal, both as vlc file.mp4 and as cvlc file.mp4 it gave the following error: (*) DirectFB / Core: Single ...
user avatar
0 votes
0 answers
66 views

su command in /usr/bin

I have an udev rule that runs a command as root. I have two different machines running on ubuntu and the su command in these machines are located in different locations. In one computer is located in /...
user avatar
3 votes
1 answer
442 views

Ubuntu-MATE: make USB Sticks automount available to every user (udev rules?)

I want every USB media (ext, ntfs, FAT…) inserted to be available with full read-writable to every user. Preferably under mnt and as group common. ( Ubuntu-MATE 21.04, though my issues actually date ...
user avatar
  • 1,029
0 votes
0 answers
52 views

Persistent device naming per physical port

I have quite a few servers that are used to test some FC and SAS hardware. One of the nightmares is that I seem to be unable to find something in udev that identifies a physical port. What I ideally ...
user avatar
0 votes
1 answer
143 views

Udev rule for USB storage device and partitions

I am trying to set up a udev rule which symlinks /dev/sda to /dev/cm, /dev/sda1 to /dev/cm1 and /dev/sda2 to /dev/cm2. Of course, depending on what else is connected to the computer, instead of sda, ...
user avatar
  • 117
0 votes
1 answer
358 views

Ubuntu 20.04.2 removable media (cd/dvd) and usb drives no longer auto mounting

Worked fine until about a month ago when noticed inserting a CD or DVD wouldn't bring up the default player application. Start the player manually and the (internal sata) drive has no problem ...
user avatar
4 votes
1 answer
107 views

Where do Subiquity's (Ubuntu Server's) disk ids come from, in the disk partitioning stage?

In the manual partitioning stage of Subiquity (Ubuntu Server installer), there is a list of the disks, in the form of ids. However, those are slightly different from the /dev/disk/by-id entries. For ...
user avatar
  • 2,098
0 votes
1 answer
132 views

Udev event loop after 21.04

a few years ago, I wrote a small utility application for MSI gaming notebooks to control the integrated keyboard's backlight. It is available at GitHub. Recently, some problems began which are ...
user avatar
2 votes
1 answer
435 views

FATAL ERROR: Both /lib/udev/hwdb.bin and /usr/lib/udev/hwdb.bin exist

After upgrading from Ubuntu 20.10 to 21.04, I get the following error: sudo dpkg --configure -a Setting up usrmerge (24ubuntu3) ... FATAL ERROR: Both /lib/udev/hwdb.bin and /usr/lib/udev/hwdb.bin ...
user avatar
  • 61
0 votes
1 answer
107 views

Laptop randomly shutting down / suspending after a few minutes. 20.04.2 LTS

I turn the latop on, I log in, then after 1-2 minutes the laptop shuts down. Just before it turns off completely, it goes to the lock screen. This has started today - and I don't think I installed any ...
user avatar
  • 1
1 vote
1 answer
203 views

Troubles with Calculator key on HP notebook

I've got a new notebook HP Omen 15, manufactured in 2020. I has Calculator key, and I cannot get it launching calculator in Ubuntu 20.04. When I press Calculator key, nothing happens. I also cannot ...
user avatar
  • 233

1
2 3 4 5
13