Questions tagged [udev]

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

Filter by
Sorted by
Tagged with
2
votes
0answers
36 views

Cannot access udev symlink with python serial immediately on startup

I have configured a udev rule to create a symlink for a USB device: SUBSYSTEM=="tty", ATTRS{idVendor}=="3032", ATTRS{idProduct}=="0014", SYMLINK+="ttyUSB_GPS" ...
6
votes
2answers
508 views

Slow write speeds when writing onto USB flash drives

I am running Ubuntu 20.04 on an old Dell Optiplex 760 box and the transfer speeds while copying files to USB flash drives are quite slower than what they should be, furthermore, at the end of the ...
1
vote
0answers
39 views

How to remove noexec from /dev permanently (Ubuntu 20.04.2)

An executable binary is executing mmap() with PROT_EXEC on /dev/zero causing EPERM (Operation not permitted) on our Ubuntu 20.04.2 server (fully up to date). It is not possible to replace the binary ...
1
vote
0answers
28 views

libusb access denial (not udev, not apparmor)

I am getting a: libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/007: Operation not permitted error when trying to pass through a USB disk to the virtual machine. ...
1
vote
1answer
28 views

unable to fix udev installation,

ubuntu 20 (focal). if i try to run sudo apt update && sudo apt upgrade -y i get following error Errors were encountered while processing: udev xserver-xorg-core xserver-xorg-video-nvidia-...
0
votes
1answer
39 views

Ubuntu 20.04 LTS libusb/hidapi fails to open Corsair/Elgato Streamdeck

I'm trying to use the following library for interfacing with the corsair streamdeck on linux: https://github.com/dh1tw/streamdeck It works perfectly with sudo, but does not work with a regular user. ...
0
votes
1answer
54 views

Apply permissions to NTFS USB drive on Auto-mount

I have a external USB hard drive that I'd like my backup program to write backups to. The backup program requires certain permissions. I understand that NTFS under Ubuntu doesn't allow me to set unix-...
2
votes
0answers
23 views

Load hardware specific keyboard config automatically

I have a special keyboard, with which I want to write with a configuration that is not the same as when writing with another keyboard (e.g. the laptop's keyboard). I want to keep both configurations ...
0
votes
0answers
43 views

Udev rule for turning on an external monitor

I have a udev rule to switch some XFCE panels when an external monitor is added. ACTION=="change", KERNEL=="card0", RUN+="/usr/bin/systemctl start hot_plug.service" ...
0
votes
0answers
78 views

libusb errors when trying to redirect usb webcam with xfreerdp

Having difficulty redirecting my logitech webcam/mic with xfreerdp. I keep getting access errors from libusb despite udev rules that should give my plugdev group (of which I'm a member) access to the ...
0
votes
0answers
21 views

Block device management

I searched for this in the forums, and did not find anything that could help me, if this was already discussed please forgive me. So I have 2 problems/questions: I recently installed unbuntu server ...
1
vote
1answer
68 views

udev rule does not trigger after pci hotreset via setpci

udev rule (which was placed in /etc/udev/rules.d/00pci_dev_removal_entry.rules) ACTION=="add" ATTRS{class}=="0x010802" RUN+="echo PCI_device_class_0x010802_detected > /tmp/...
1
vote
0answers
24 views

Power down USB subdevice (webcam)

In my laptop I have normal HD Camera and an IR Camera. I would like to power off the latter as it sometimes get auto-selected by some apps for video call. The issue is that the IR camera is a "...
1
vote
0answers
39 views

UDEV tty Rules with dialog msgbox

I'm trying to run a script that open dialog --msgbox when a USB device is connected #!/usr/bin/bash /usr/bin/date >> /tmp/udev.log /usr/bin/dialog --title "Hello" --msgbox 'Hello world!...
0
votes
0answers
93 views

Problems writing udev rule for gaming mouse

TL;DR is that I have a fancy gaming mouse that I want to disable some of the features of but not all, and it's tricky to pinpoint them. I'm using SUBSYSTEM=="input",ATTRS{serial}=="...
0
votes
0answers
66 views

Android devices not recognized on Ubuntu 20.04.1 LTS

I did something really wrong with the Android configuration on my Ubuntu by editing the /etc/udev/rules.d/51-android.rules I basically deleted them all and then I realized any of my android devices ...
0
votes
0answers
35 views

USB dev board changes MAC address on every reboot

beginner here, I have a small embedded linux system attached to a linux mini-pc via a USB cable. The embedded board uses 192.168.2.2 as a static IP. My laptop is on the LAN, the linux mini-PC is on ...
0
votes
1answer
57 views

Which rights do scripts have that are triggered by a udev rule?

From what I understand I can create a udev rule to run a script e.g. when a USB device is plugged in: SUBSYSTEMS=="usb", ATTRS{idVendor}=="0123", ATTRS{idProduct}=="0815",...
1
vote
0answers
58 views

ubuntu20.04 prompt “dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)”,anyone help?

now i exec the update command on my box,then get some error info. here is the output: root@ubuntu20:/var/cache/apt/archives# apt upgrade Reading package lists... Done Building dependency tree ...
1
vote
0answers
48 views

Access different Webcams via v4l2src with same command

I try to access changing usb cameras connected to my only usb port on my system running Ubuntu 20.04. My command is: gst-launch-1.0 v4l2src device=/dev/video13 ! As always, the path is changing after ...
0
votes
0answers
42 views

udev rule launches bash script at hotplug but not at coldplug/reboot

basically this udev rule at boot time , but I read somewhere that it was the systemd daemon that handles all the coldplug while udevd handles only the hotplugs. How to do it with the linux systemd way ...
0
votes
0answers
30 views

Solved: Annoying UDisks2VolumeMonitor/GUI behaviour (udev, dbus, gtk)

I am dealing with a 20.04.1 system (mainly Ubuntu Server + Xubuntu Core). I am trying to set up an "IT" external SSD (USB3), so that when I insert it, some maintenance actions will be ...
1
vote
0answers
52 views

Bash script executable manually but only partially via udev rule

I'm on Ubuntu 18.04 LTS and I wrote a script to take pictures and send an email with ssmtp when someone removes a USB device from my computer. the udev rule works fine and execute the script but only ...
1
vote
0answers
104 views

Android device connection problems

Problem On fresh system reboot, I can see the ADB device. But if I reboot the device, it does not show up any more. At this point, I can get it back to working by either 1) rebooting the system (which ...
1
vote
0answers
338 views

How to interpret / write a rules for USB <> HDMI

I want to get a USB <> HDMI device working but I need some help converting the DisplayLink rule to work with a generic vendor (same chipset). The Displaylink rule looks like this: # Copyright (c)...
0
votes
0answers
16 views

udev triggered login to encrypted USB drive

Description of task: I created a udev triggered script to backup an USB drive whenever it connected to my ubuntu 18.04 system. All working perfectly well in the background. I'd like to do the same ...
2
votes
2answers
77 views

Using a value with trailing spaces in a variable, keeping the spaces

I can normally answer my questions on t'internet but my googlefu and understanding have let me down this time. I have a bash script I'm putting together that I'm using to populate a UDEV rule. To do ...
1
vote
1answer
62 views

How to swich to /dev/console

I can use /dev/ttyX, but how to access /dev/console? I tried to use chvt console, but it didn't work.
0
votes
1answer
117 views

Can't remap keys on a Microsoft Keyboard with HWDB

I'm trying to remap LCtrl and CapsLock on my Microsoft Wired Keyboard 600 with HWDB but for whatever reason the system does not see the changes that I make. This is how my hwdb rule looks like: evdev:...
0
votes
0answers
79 views

Attempting to create a rule that triggers upon a camera being plugged in via usb

I'm been trying to get a rule to trigger when plugging in my camera(eos r) to further automate photo importing and the like, but I cant get the initial rule to trigger. I'm new to linux in general &...
1
vote
0answers
37 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 ...
0
votes
0answers
28 views

How to use seccomp with udev correctly?

I am trying to block devices via udev. I added some code which wraps this service and eases its usage. Is using seccomp necessary to this service in order to limit the system calls used by the devices ...
0
votes
0answers
24 views

After switched tty the /dev/sr0 can be writable

My ubuntu version is 20.04, and the device is a MSI laptop. First I set the permission of my optical drive device to read-only (set by chmod 440 /dev/sr0) After I switched the tty, I found that the ...
0
votes
0answers
184 views

Refresh of udev rules directory does not work

I try to edit, remove and create rules in udev. For some reason, those rules are not activated, even when I try the known solutions- Udevadm control --reload-rules Udevadm trigger Just reset the the ...
0
votes
1answer
48 views

How to dettach input devices in startup?

I would like to dettach external input devices connected to the computer on boot (external mouse, keyboard, badusb). Udev cannot help me with that because the input devices are connected in boot time. ...
0
votes
0answers
24 views

How to enforce Udevrules for pre boot connected devices

I would like to investigate via udev rules connected devices. I can monitor devices when they are connected perfectly, however if they are connected before the boot, the rules are not enforced on them....
0
votes
0answers
41 views

Blocking aux and display ports via udev- is it possible?

Is it possible to set udev rules to block pci classes? Lets for example refer to to class 001 - mass storage controller, is it possible to block it specifically via udev(I know an alternate way of ...
2
votes
2answers
1k views

beep not working since upgrade to 20.04.1 LTS

I've just finished upgrading to Ubuntu Server 20.04.1 LTS, and so far, only one issue has come up: The beepcommand returns beep: Error: Could not open any device when run as user. Running sudo beep ...
1
vote
1answer
372 views

Ubuntu 20.04.1 LTS - Mouse removed and added intermittently

update: The same problem occurs in 20.10 with kernel 5.8. I'm having a mouse hiccup that comes and goes where the mouse becomes unresponsive where the device is deleted and added again by UDEV. See ...
0
votes
0answers
195 views

udev rule is not working for usb disable on ubuntu 20.04

Below udev rule is not working on ubuntu 20.04 though working on 16.04 and 18 version of ubuntu disable ports ACTION=="add", SUBSYSTEMS=="usb", RUN+="/usr/local/bin/disable-...
4
votes
0answers
191 views

Mouse sensitivity reset after replugging

After complete system upgrade yesterday my mouse sensitivity get reset every time I replug it. This happens often since I have my peripherals attached to my monitor which I use as a dock to switch ...
0
votes
0answers
55 views

Ubuntu 18.04 renameX udev don't work

I got dmesg as follows: root@NODE-073:~# dmesg | grep eth [ 9.844932] igb 0000:81:00.0: added PHC on eth0 [ 9.844935] igb 0000:81:00.0: eth0: (PCIe:5.0Gb/s:Width x4) ac:1f:6b:99:12:b6 [ 9....
0
votes
1answer
219 views

Netplan apply fails on udevadm settle during 20.04 autoinstaller

During execution of the network section of the new Subiquity server autoinstaller it fails with a non-zero return code on netplan apply, which in turn runs udevadm settle -t 0 over and over again ...
1
vote
0answers
37 views

Custom keymap not restored after reboot

I've written a custom set of keymaps for a Logitech K400plus to shift the function keys down a row (below) and symlinked the file to /etc/udev/hwdb.d/90-k400p.hwdb. It behaves correctly after running ...
0
votes
1answer
153 views

xrandr script for external monitor adjustment not executing from udev

My laptop has a 4k screen and I also have an external 1080p monitor. The scaling is incorrect on the monitor and so every time I plug in the monitor, I execute an xrandr command to fix it. I figured I ...
0
votes
1answer
70 views

Mapping displays to a vm

I want to restrict a particular display on my host to only work with a specific vm, in this case an ubuntu-core-vm that's running as a kiosk to display some simply info on a touchscreen. This is set ...
0
votes
0answers
508 views

Predictable Network Interface Names cannot be disabled on Ubuntu 20.04

I'm having trouble disabling Predictable Network Interface Names on Ubuntu 20.04. If possible, I don't want to touch the kernel command line. I did the following two things, but I could not disable ...
0
votes
0answers
51 views

xrandr fails when run from udev

The following excerpt from a Python 3 script "myscript" that is meant to detect the screen layout and refresh it using xrandr works fine when run with sudo /usr/local/bin/myscript or /usr/...
0
votes
0answers
41 views

Udev rules for making network change is ignored

Here is the 10-network.rules file placed in /etc/udev/rules.d: SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="1C:69:7A:05:68:E2", KERNEL=="eno1", NAME="...
0
votes
1answer
239 views

sc-controller doesn't work in ubuntu 20.04

I followed steps mentioned in post about making sc-controller works on ubuntu 20.04 (How to get the sc-controller to function on 20.04) but they didn't work for me. I added /dev/uinput rw, to /var/...

1
2 3 4 5
12