Questions tagged [udev]
Udev is a Linux process that manages device file entries under /dev
1,137 questions
0 votes
0 answers
44 views
How can I automatically set some CPU parameters (via `/sys/devices/system/cpu/...``) when the system boots?
DISTRO: Fedora 41 KDE GOAL: Im trying to automatically set some cpu parameters (per-CPU max frequency, governors, energy policy, etc.) during my boot process. I wrote a script to do this (it lives at /...
0 votes
2 answers
63 views
Unbind/re-bind usb device via systemctl service running as user (with a custom group)
Basically, without giving the user any new permissions, I am looking to be able to write to /sys/bus/usb/drivers/usb/unbind and /sys/bus/usb/drivers/usb/bind via a systemd service running as the ...
3 votes
2 answers
89 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
58 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
195 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
66 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
79 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
62 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
736 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
38 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
89 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
153 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
56 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
380 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 ...