Questions tagged [udev]
Udev is a Linux process that manages device file entries under /dev
1,137 questions
2
votes
1
answer
23
views
Is changed LVM device info not fully updated in kernel? Any workaround? Is this a bug?
My system is working just fine. The questions at the end of all this are;
does the kernel keep a cache of device information;
is it possible for it to be only partly updated, leaving a mix of new &...
1
vote
1
answer
36
views
Udev Rule stops working after some time
I have an udev rule to wake my laptop using bluetooth as follows.
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", \
ATTR{bDeviceClass}=="e0", \
ATTR{...
3
votes
1
answer
130
views
Removable media mounting strategies
I'm working my way through understanding more about unix/linux and how the various tools/packages/options interact with one another (for example, the role of systemd, or how fstab works). I'm also ...
0
votes
0
answers
62
views
Read device name in sys with udevadm info
If I print the USB property of a device I own with the following command, I get the following output
$ udevadm info --no-pager /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3
P: /devices/...
1
vote
1
answer
53
views
Changing HID device type
I bought this lovely old Macally iBall Pro and I have it setup well in Ubuntu 22.04 using xinput to configure middle button emulation and scrolling with a button. Like so:
xinput set-prop "12&...
0
votes
0
answers
49
views
systemd service which only runs when a specific usb drive is mounted
I have a udev rule which looks for a specific usb stick (VID and PID), and then starts a templated systemd service:
KERNEL=="sd[a-z][0-9]", ... ACTION=="add", RUN+="/...
2
votes
1
answer
520
views
Linux auto-mounting USB with UDev
My task is to have a custom mount point and for the mount itself to happen automatically. that is, the device is connected, a folder with its name is created in some place (/mnt/usb/{name}) and the ...
0
votes
0
answers
32
views
How to pause and resume processing of Keyboard USB on a device, without deauthorizing it?
I am building keyboard multiplexer. My current plan is to connect two devices through Bluetooth, and let my wired USB keyboard switch between these two devices.
My first instinct is to build Two-...
1
vote
0
answers
61
views
How to authorize de-authorized usb device
I am following this article to deauthorized usb:
https://www.kernel.org/doc/Documentation/usb/authorization.txt
The command I used for de-authorization is
sudo sh -c 'echo 0 > /sys/bus/usb/devices/...
2
votes
1
answer
98
views
USB Smart Card Reader Hotplug Not Working in Docker Container
I run ubuntu based docker image in linux server and I want to attach usb smart card reader to the docker container. At the initial start my usb reader is picked from the container and do desired job. ...
12
votes
1
answer
1k
views
How to force drives to be on a predictable device name
I have a computer, running Debian 12, that is equipped with 2 RDX (from dead Tandberg / Overland company) cartridge drives. One is an internal SATA, and one is an external USB.
They are cartridge ...
1
vote
0
answers
45
views
systemd-logind: seat0 CanGraphical=yes despite untagging master-of-seat in 99- udev rule
Ubuntu 24.04 LTS, systemd 255
In a multiseat setup, I'm trying to set seat0 (Matrox DRM) to CanGraphical=no for TTY-only, but loginctl shows yes even after untagging master-of-seat in a 99- custom ...
2
votes
0
answers
288
views
DRM: Artificially simulating a monitor Disconnect+Reconnect event, or a HOTPLUG uevent
Is there a way to simulate a physical HDMI cable unplugging and replugging on a Linux system running Xorg with AMDGPU driver?
In my Xfce system on X11, I have trouble with monitor output/connector ...
0
votes
0
answers
36
views
Accessing USB Gadgetfs driver without sudo
I am working with an embedded machine (rock pi s) which can act as a USB device, communicating with a host device using the USB OTG port on the machine. I use the gadgetfs functionality of linux for ...
2
votes
0
answers
59
views
Using systemd-escape in udev rule
I'm trying to invoke a service template '[email protected]' when I insert my USB key into my computer.
[email protected]
[Unit]
Description=THe Nope
[Service]
Type=oneshot
ExecStart=/bin/bash -c "/bin/...