Questions tagged [udev]

Udev is a Linux process that manages device file entries under /dev

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

udev is unconfigured – how to debug?

On a VPS, I upgraded Ubuntu from 18.04 to 20.04. Now udev is reportedly "unconfigured" which leads to a number of follow-up errors, including, but not limited to, the network interfaces not ...
0
votes
0answers
4 views

remapping keys with udev working for wired keyboard but not for wireless keyboard

I'm on Arch Linux x86_64 running 5.11.2-arch1-1 kernel. With the tutorial on this post (first comment) i can remap the keys of my wired keyboard from Cherry but not the keys of my wireless keyboard ...
1
vote
1answer
16 views

Automatic mount of encrypted external harddrives

I have encrypted my external harddrives using cryptsetup and a key file. My goal is now to automatically decrypt and mount them upon plugin. I used to do so using this blog post (unfortunately in ...
0
votes
2answers
31 views

Stabilizing serial device names across reboots for serial console

I have an embedded Linux system with 2 built-in serial ports, and a PCI board that adds 8 more. The kernel enumerates the devices in a way that the port numbers end up getting interleaved, for ...
0
votes
0answers
13 views

“udevd” spawns multiple sub-processes. How can I determine why it does that?

I noticed that every time I SSH into the machine, or an SSH session closes, or a cron job starts - systemd-udevd spawns multiple sub-processes. They disappear after a few seconds and don't seem to ...
0
votes
0answers
9 views

Generic udev rules not triggering for some devices

I have a few udev rules to reduce energy consumption. The first rule switches power control to auto in any device except those from Logitech (as they malfunction): ACTION=="add", ENV{...
1
vote
0answers
13 views

Multiseat Setup: Disable display manager and use TTY on one seat

I have the following setup (HP Microserver 8): Integrated Matrox G200eH connected to Integrated Lights Out (the PH Remote Management Console) which also simulates an integrated keyboard to the system ...
0
votes
0answers
31 views

Some issue with kfd rules when adding an amd gpu

I installed a new used gpu (Tahiti PRO [Radeon HD 7950/8950 OEM / R9 280]). It froze on boot and I used grub recovery mode to try and fiddle with the drivers from amd. I found this command which ...
0
votes
1answer
46 views

Overriding udisks2 /media/$USER/mount with custom fixed mount point for specific volume, under Debian Buster

I am using Debian Buster, 10.7, and I am relatively new to udev/udisks2/systemd and have been making a effort to get to know them better and have learned quite a lot, though I cannot seem to figure ...
0
votes
1answer
46 views

Use systemd to run script when usb drive is unmounted

I have a systemd service that calls a script when a USB drive is mounted. signal.service: [Unit] Description= Updater trigger Requires=usb-drive.mount After=usb-drive.mount [Service] ExecStart=/usr/...
0
votes
0answers
26 views

Why is my .link specification ignored?

I want to activate persistent network names on Debian 9.13 Stretch to prepare for an upgrade to Debian 10. I am following the instructions on https://wiki.debian.org/NetworkInterfaceNames#custom. I ...
0
votes
1answer
36 views

Mount USB by file

I have a system with multiple USBs connected. I would like to find a USB that contains a specific .ini file or is empty (in which case I want to create the .ini file) and mount it at /media/...
0
votes
0answers
22 views

unexplained changes to /etc/udev/rules.d/70-persistent-cd.rules

I have an old Debian 7 server and recently discovered the following change via etckeeper which I cannot explain: debian7:/etc# git diff diff --git a/udev/rules.d/70-persistent-cd.rules b/udev/rules.d/...
0
votes
1answer
39 views

Changing MAC address in udev and KERNEL==“eth*”

I have a server with ubuntu on it and everything work fine.All network interfaces are working. I decide to move the drive to a new server and it boots to the OS without issue. The network interfaces ...
0
votes
1answer
51 views

udev rule for wacom tablet that has changing IDs

I had a lot of trouble trying to configure the buttons on my wacom tablet on a manjaro installation. I ended up using this answer to actually get it working, but it only worked some of the time ...
0
votes
1answer
34 views

Can't give access rights to libusb with udev rules

I'm trying to get OWPDK (a 1-wire library) to access an USB to 1-wire adapter (DS9490R, based on the DS2490 USB-to-1-wire bridge chip). This library uses libusb to enumerate devices (using ...
0
votes
1answer
166 views

/etc/udev/rules.d/70-amdgpu.rules:1 Invalid operator for GROUP. found in Error logs

I found this error listed as important in my Ubuntu 20.04 Logs application and wanted to know if its something I need to worry about or not. Can someone point me to some information about this or just ...
1
vote
1answer
35 views

udev rules to change name of ESP boards does not work

I connected two ESP boards (that are connected to an USB hub. So the ESP boards are indirectly connected via one USB port of the USB hub) to my acer-extensa-5630z (old model). In /dev directory, both ...
1
vote
2answers
38 views

Distinguish multiple USB sound cards by USB port they're plugged in

What I want is to be able to consistently tell apart multiple USB sound cards, identify them by the USB port they're plugged in and use that knowledge to play a sound on a speciffic sound card in my ...
1
vote
0answers
32 views

Prevent udev from processing rules for a device

On Ubuntu 20.04 I modified /usr/lib/udev/rules.d/60-evdev.rules as follows, because I don't want udev to touch my raw keyboard device: # do not edit this file, it will be overwritten on update ACTION=...
0
votes
0answers
43 views

PulseAudio ignoring seat assignment when plugging in USB audio device

I'm trying to create a multiseat setup for two seats, with a monitor, keyboard, mouse, and USB soundcard for each seat. With my primary user logged in, I created a second seat with its own monitor, ...
0
votes
1answer
66 views

Gnome does not respect text-scaling-factor value set by gsettings command

I switched to Manjaro 20.2 GNOME and I am facing a issue when trying to run a script on external monitor connect/disconnect event in udev. In popos this script was working fine, and it seems like the ...
0
votes
1answer
22 views

How can I find a drive specified by a ID_VENDOR_ID:ID_MODEL_ID more easily?

I'm using virt-manager and I am trying to select a USB device. It's telling me some valuable device information: but I don't know where to find that other than using: udevadm info --query=all --name=/...
1
vote
0answers
34 views

Hide Docker Volumes

I decided to use a partition for all things docker. Everything went smooth and working as expected. Except one part. When I boot up a project which uses "volumes" it shows it in the file ...
1
vote
1answer
24 views

What's the behaviour of Linux with multiple disks with clashing partition labels?

I am running CoreOS with the root filesystem on a particular SSD device (say /dev/sda) and I want to install Flatcar Linux onto a different SSD device (say /dev/sdb). The reason I am doing this is ...
1
vote
1answer
66 views

Decrypt LUKS partition by a script in udev rules

I am trying to decrypt a LUKS partition when I plug in an external HDD. Thus, I have configured the udev rules with the following: ACTION=="add", KERNEL=="sdb1", SUBSYSTEM=="...
0
votes
0answers
24 views

Console hangs when running “file -s /dev/sda1”

I have an USB drive inserted, but when running file -s /dev/sda1, the prompt hangs blank. Also unable exit with Ctrl+C.
0
votes
2answers
93 views

Is systemd-udevd (with its systemd-udevd-control.socket and systemd-udevd-kernel.socket) needed for booting Linux?

For hardening a server I log in every time after reboot and manually do systemctl stop systemd-udevd systemd-udevd-control.socket systemd-udevd-kernel.socket which works just fine. udevd is, after ...
0
votes
1answer
87 views

Is it necessary to mount devtmpfs with /etc/fstab?

I'm working on a Linux-like operating system for aarch64, based on a 5.6.4-v8+ kernel for Raspberry Pi 3 (Model B+). The Kernel configuration options include: CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y ...
0
votes
1answer
12 views

How to specify the right device names when using Ignition for installing Flatcar Linux?

I am currently using Container Linux for my home server and I want to upgrade to Flatcar Linux. To do this I plan to use Ignition and configure RAID 1 for the root filesystem. I have two disks ...
0
votes
0answers
15 views

Speed up keyboard and mouse logging in Linux in udev

I'm trying to boot embedded Linux as fast as possible. It seems, that my system needs around 1s to log on mouse and keyboard (I need these to be logged to autorun my app). Is there any solution to ...
1
vote
1answer
19 views

How can we determine the size of data moved to/from USB or deleted from it using libudev or other linux library?

I want to know if there is any possible way to monitor these information using system libraries or any python modules? Size of files or Files copied to USB drive Size of files or Files copied from ...
2
votes
1answer
48 views

What is the meaning of `ATTR{stat}==“ …”` on udev attributes?

I was studying about the activity/change while copy pasting file in USB. Seems like the stat attribute gets changed on every action on USB drive. So what does each value of these stat denotes? Command ...
0
votes
0answers
72 views

NixOS loses ALL USB ports when undocked on Thinkpad T495

Thanks for the help, y'all! This has been the root of most of my struggles with my (decreasingly) new laptop. I know we're all working from home, but it'd be nice to move to the couch or something ...
1
vote
2answers
37 views

Why is this udev rule not triggering?

I have a udev rule file located in /etc/udev/rules.d/usbmount.rules with the following content: ACTION=="add", KERNEL=="sd*[!0-9]", RUN+="/tmp/debug.sh" After creating ...
1
vote
1answer
46 views

ACLs not applied on device by udev on user login

so there is a usb scanner: Bus 001 Device 003: ID 055f:021e Mustek Systems, Inc. BearPaw 1200 TA/CS and a logged in user, registered in loginctl: [mk@linux ~]$ loginctl session-status 1 - mk (1000) ...
0
votes
0answers
46 views

Identify if an usb pendrive has been plugged

I want to reliably and thoroughly identify that a usb pendrive has been connected. I'm using a reduced version¹ of Debian Buster packed in a live ISO image running in VirtualBox. The process of ...
0
votes
0answers
63 views

Linux udev rules to bring interface online (ifup eth0) + usb_modeswitch

I currently have usb_modeswitch configured and working on my redhat box. Problem Description: When an interface is plugged into the USB port, by defauly it is added in the down staft. I must do an &...
0
votes
0answers
16 views

Keyboard not responsive after udevadm command

I am running Debian 10. I was attempting to change my keyboard layout following the instructions in man keyboard, which instructed me to edit the /etc/default/keyboard file and then execute udevadm ...
1
vote
1answer
62 views

How ID_PART_ENTRY_UUID is computed in GPT?

How the tag ID_PART_ENTRY_UUID is computed? Can I get ID_PART_TABLE_UUID from ID_PART_ENTRY_UUID? I have a disk with GPT partition table and some partitions. I need to identify which partitions are ...
0
votes
1answer
120 views

Mount a usb disk with udev. permission denied

I would like to automatically mount a usb disk when I plug it. I believed udev is the solution, so I created /etc/udev/rules.d/99_extern_hdd.rules that only contains: ACTION=="add", ...
1
vote
1answer
78 views

Udev not running xinput command inside script

I'm trying to make it so that when I connect an external mouse I can automatically remap the buttons. I can remap buttons manually with xinput set-button-map $mouse_id $button_map However, I'm having ...
1
vote
2answers
138 views

Change the name of the mountpoint used by udisks2

The default name is /run/media/$USER/<UUID>. Instead of UUID, I want it to use the partlabel (if it exists), which means I want to change the mountpoint's name to /run/media/$USER/<partlabel&...
0
votes
0answers
9 views

How to call a udev rule as non-root the right way?

I have written a udev rule, that opens an application via a script. It works so far, but the problem is that the application has the following problems The localization is wrong Recent documents are ...
0
votes
0answers
45 views

Checking if network interface name already exists in udev Predictable Names scheme rules?

This question is in reference to my original question here: How to fix the conflict in the naming scheme for network interfaces use by Predictable Names scheme? Brief overview: I have multiple network ...
1
vote
1answer
71 views

How to fix the conflict in the naming scheme for network interfaces use by Predictable Names scheme?

I have a fresh install of Debian 10 (Buster) and there is an issue with the Predictable Name scheme. I have 4 onboard NICs and a 4 Port PCIe NIC. The naming convention works for the onboard port, but ...
1
vote
1answer
47 views

Why does my script fail when running from udev?

I am writing a bash script and am checking whether the application is running. If it is not running it should be started in a separate process (not a child process). If it is running, the window ...
1
vote
0answers
63 views

Pulseaudio failing to set profiles and not detecting devices

For some time now, I have been having a problem with Pulseaudio. Pulseaudio sometimes gives my devices the wrong profiles and sometimes doesn't detect some of them at all. Because of that I decided to ...
0
votes
1answer
81 views

Change default mount point for udisks

KDE Plasma on Arch Linux mounts removable devices to /run/media/[user]/* by default, but, as I had an Ubuntu derivative before, I need it to be mounted to /media/[user] because of the symlinks and ...
0
votes
0answers
19 views

Connecting external device resets xmodmap rules — how to prevent?

I'm running Ubuntu 18.04 on a Thinkpad X1 Carbon. I have a couple of custom xmodmap rules that I run on startup. However, whenever I connect any external device via USB or Bluetooth (a webcam, a ...

1
2 3 4 5
18