Questions tagged [udev]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
3 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
8 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
14 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
38 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 ...
0
votes
0answers
23 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
24 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
12 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
vote
1answer
7 views

How to change kbd config automagically when plugging USB keybord to laptop (and get a deterministic behaviour)?

udev rules are just getting on my nerves... Sometimes they work, other time they don't... Again, today they don't work. I always end up copying stuff on the web, then tweak it, then end up with a ...
0
votes
1answer
34 views

udev rule to give user full access to network interface can0

I am trying to give permission to a user to perform the same operations as root on the network device can0, such as bringing it up or down. My first idea was to set the group and/or owner of the ...
0
votes
1answer
26 views

Touchpad disappeared 2 days after I started using usb mouse

Recently I bought a usb mouse for my laptop. It works fine, but today the inbuilt touchpad of the laptop stopped working. It was working in the morning but a couple hours later I noticed that it wasn'...
1
vote
1answer
34 views

SATA disk drive behind Adaptec RAID 5405 can't be detected as block device

Due to shortage of free built-in SATA 3.0 plugs (6 totally) on my motherboard (Gigabyte 970A-DS3 rev.3) I've got an Adaptec RAID 5405 (3G SAS/SATA RAID) to move all "slow" SATA 1.0/2.0 ...
2
votes
0answers
19 views

Suspend devmapper target when underlying device removed

If you create a table with dmsetup and the underlying device gets forced removed, the target will begin to throw I/O errors. Is there any way to specify that the target should suspend itself if any of ...
0
votes
0answers
18 views

With multiple events, ignore one event type and attend another in udev

Using GNOME 3.36. I have scripts run by udev that control the screen brightness when AC power is switched on/off. I also have a script that I want to run only when screen brightness is changed through ...
0
votes
1answer
31 views

Some RUN-Commands in UDEV-Rule are ignored

Running a raspberry pi and update to raspbian buster. With Jessie the same file works fine. I used the following udev-rule: # Idea from https://www.axllent.org/docs/view/auto-mounting-usb-storage/ ...
0
votes
2answers
78 views

How can I stop my controller from moving my (mouse) pointer?

I'm using antix17, based on Debian. I'm using lightdm with the kde greeter, IceWM for window manager, and x display server. My controller is a PS2 knock off, I'm connecting it to the PC with a USB ...
1
vote
0answers
50 views

Udev Detecting Partition like APFS FileSystem, Extracting Meta INFO

Previously, I made that CentOS 8 is not auto mounting my APFS partition I want to discover the partition info detecting functionality, in this operative system (I made a new CentOS installation) I ...
0
votes
1answer
31 views

udev rule to run shell script works halfway through script, but doesn't complete [duplicate]

I have a udev rule that will run a shell script to create a directory and mount a device in read-only mode. The problem is that when the rule runs (when I insert the device), it creates the directory ...
0
votes
1answer
23 views

Why are some parts of a udev rule triggered script not working? (use xinput to set mouse acceleration when plugged in)

I have a udev rule ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c084", RUN+="/some/script.sh" which successfully ...
0
votes
0answers
26 views

Need to call a script whenever edac error is thrown up by kernel/system

I need to call a script whenever the system generates EDAC errors. I created following UDEV rule for this purpose. If the ce_count changes then I would like to execute /var/tmp/test.sh, then I did ...
3
votes
1answer
45 views

How to configure USB Pedals with NixOS

I have a set of USB Pedals that I wish (need!) to configure with NixOS, because frankly my hands are killing me. The pedals are identified in lsusb: Bus 001 Device 006: ID 413d:2107 And evtest shows ...
0
votes
1answer
53 views

Simple udev rule does not execute RUN

Having troubles setting up a simple udev rule. pi@raspberrypi:~ $ ls -l /home/pi/test.sh -rwxr-xr-x 1 pi pi 37 Jun 25 15:20 /home/pi/test.sh # executable pi@raspberrypi:~ $ cat /home/pi/test.sh #!/...
0
votes
1answer
62 views

Udev rule to rename USB device does not seem to work

On a Raspberry Pi 4 running Ubuntu 20.04 on aarch64, I have a USB ZWave device that I want to expose at a specific name, so I wrote a simple udev rule to do so, but it doesn't seem to work. The vendor:...
0
votes
0answers
44 views

Infinite loop when unbind+bind the device to the same driver in udev

I am using Magic Mouse 2 with ubuntu 20.04. To use the scrolling feature, I had to install this driver: https://github.com/rohitpid/Linux-Magic-Trackpad-2-Driver. The only problem is that I need to ...
0
votes
0answers
48 views

udev rule for detecting keyboard not working

Here is my rules file: SUBSYSTEM=="input",\ SUBSYSTEMS="usb",\ ACTION=="add",\ ATTRS{idVendor}=="2a7a",\ RUN+="/usr/bin/xmodmap -e 'add mod3 = Scroll_Lock'&...
0
votes
1answer
7 views

udev doesn't run my test script in RUN

I'm trying to create a video device for my DSLR camera on USB. Nothing shows up in /dev/ out of the box. Steps $ lsusb ... Bus 001 Device 010: ID 04a9:3270 Canon, Inc. ... I'll use these Bus and ...
0
votes
1answer
41 views

udev: use usb programmer without needing sudo

I'm using the mspdebug programmer to connect to a device. mspdebug will only connect to the device when I use sudo mspdebug. If I don't use sudo, mspdebug can't find the device. How can I connect to ...
0
votes
0answers
19 views

systemd doesn't find nis group while applying rule for virtualbox usb support

I'm wondering why my Debian system doesn't allow to make use of the nis group vboxusers. systemd writes into syslog: Jun 18 17:58:30 wiets systemd-udevd[313]: /usr/lib/udev/rules.d/60-virtualbox.rules:...
0
votes
1answer
57 views

Buildroot compile error, librt.so: undefined reference to

I'm trying to compile a Buildroot image using a preconfigured builtin _defconfig file... More specific the riscv64_xwin_defconfig which is a simple setup for a riscv64 image with Xorg builtin. Since ...
0
votes
1answer
29 views

Application started by Udev rule closes after 4 seconds [duplicate]

File /etc/udev/rules.d/90-test.rules: ACTION=="add", SUBSYSTEM=="usb", ENV{DISPLAY}=":0", ENV{HOME}="/home/user", RUN+="/etc/udev/rules.d/test.sh" ...
0
votes
1answer
33 views

Why can't I write a udev rule using NAME or PRODUCT?

I would like to write a udev rule that would trigger when I connect my Bose headphones via bluetooth. After running udevadm monitor --kernel --property and connecting my headphones I get this: KERNEL[...
2
votes
0answers
19 views

Writing udev rule for 2 devices on same subsystem and same ATTRS{name}

I'm really new to udev. I've been using Debian with yoga book (with special kernel branch) for half year now. And the maintainer of this kernel (and the debian image) implemented the force feedback ...
0
votes
0answers
16 views

Udev scancode to keycode mapping doesnt work with the control key

Im trying to remap a key on my keyboard to the left ctrl key. I use udev hwdb to acomplish this by mapping the scancode to the left ctrl keycode. I use this config: evdev:input:b0003v1532p0203* ...
0
votes
0answers
49 views

udev rule: target input event change not calling script

I'm running Debian 10 in a old laptop (repurposed as a small home server, cli only) and I was trying to create an udev rule that will call a script when the lid opened is or closed. According to udev ...
1
vote
1answer
82 views

How to add a block to udev database that works after reboot?

This is related to this question. I have 3 hard drives in my laptop and Fedora 32 is installed in /dev/sdb. /dev/sda and /dev/sdc are just extra storage formatted in ext4. Every boot takes more than a ...
1
vote
0answers
37 views

How to bind HIDRAW device under a static name?

this question was asked several times with regards to generic USB devices. However, udev approach doesn't seem to work with HIDRAW devices. I've tried to write something like the following to /etc/...
1
vote
0answers
81 views

Bluetooth Mouse freezes for a 3-5 seconds after boot to desktop

I am using pop os 20.04 which is basically Ubuntu derivate. Since this version, I am experiencing issue with bluetooth mouse When I start computer, after desktop is loaded (gnome), mouse will ...
0
votes
0answers
27 views

SCSI Host number persitence

I have two identical VM servers in VMware. I want to somehow distinguish assigned disk to these VMs (disks for LVM, for DB data, ...). But for some reason H:C:T:L addresses on these hosts differ. [...
1
vote
1answer
27 views

udevadm doesn't die if parent process experiences an error

I need to redirect output from udevadm monitor to a named pipe. For that end I use the following command: sudo socat -u SYSTEM:"udevadm monitor" PIPE:/tmp/test & It works until a process reading ...
1
vote
0answers
54 views

Initializing framebuffer device without udev

I am trying to reduce boot time in a Raspberry Pi 4 using Yocto Linux. The system uses SysV init. There is psplash that uses framebuffer, and Qt application that uses DRM/eglfs, displayed ...
0
votes
0answers
40 views

How does system.sysctl invoke system.link on Ubuntu 16.04?

I tried many to understand how systemd works but now I have a real case, sorry if in some points my terminology or reasoning is not the right one. With my setup Ubuntu 16.04 I have the same problem ...
0
votes
0answers
15 views

Cannot suspend because cdrom_id and udevd are in uninterruptible sleep

I upgraded the Linux kernel on my Gentoo Linux system from 4.9.76 to 5.4.38 about two weeks ago. Since then, my dvd drive will stop spinning up when I insert a dvd and my laptop can no longer suspend ...
2
votes
0answers
37 views

Graphics Tablet Keycodes are not being picked up

I'm currently trying to get buttons on my graphics tablet to be picked up as keycodes. Since more programs support keyboard shortcuts than extra mouse buttons (e.g. Krita only seems to support left-...
1
vote
1answer
94 views

Has anyone gotten a Yubikey Security Key working on Debian 10?

I've bought a pair of yubico devices to play with for various projects, however, it's struck me that they are not working on debian 10. I understand there's a few bug reports and udev rules floating ...
0
votes
0answers
24 views

udev to trigger a systemd service when the attribute changes?

i have a buggy wifi intel Ax200, frequently drops connection on 5Gz{no beacon heard bug}. i want to create a udev rule based on the "sys/class/net/wlan0/operstate" {down|up} values. udev rule i ...
0
votes
1answer
25 views

Copy file to Rules.d directory

I'm using Raspbian on a Pi 3+. Please tell me how I can get the permission to copy a new file to the /etc/udev/rules.d directory. The file contains KERNEL==“ttyUSB*”, MODE=“0666” KERNEL==“ttyACM*”,...
0
votes
0answers
12 views

Security considerations/proper way to grant access ONLY to /dev/ttyUSB

tl;dr: intuitively, I wouldn't want to add a non-root user to the dialout group when the user only wants to access ttyUSB0 (solution 1, see bellow), because I think the privilege would be too broad. ...
0
votes
0answers
22 views

Udev rule for GoPro not working

I am trying to write a udev rule to detect my GoPro camera, I have named the file '5-gopro.rules' and it looks like this ACTION=="add", SUBSYSTEM=="usb", ENV{PRODUCT}=="2672/37/1", RUN+="notify-send ...
0
votes
0answers
18 views

Using ser2net for a USB device mounted as /dev/bus/usb/005/002

I have a Z-Wave Sigma USB stick that I would like to share to another host on my network, but not entirely sure if this is possible. The host to which I am connecting the USB device is running ...
3
votes
1answer
783 views

Bluetooth headset Sony WH-1000XM3 not working as audio input

I'm having issues using my Sony WH-1000MX3 Bluetooth headset with my beloved Ubuntu 18.04. Ubuntu does not seem to be able to use the headset as a handsfree (which would be useful with all the video-...
0
votes
0answers
7 views

How to automate non-system commands when devices connect in linux (non-system udev?)

In linux, I have a bunch of commands that I need to run in my X session when devices get connected and disconnected. For example, whenever a bluetooth keyboard is connected I want to install some key ...

1
2 3 4 5
18