Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Udev rules automatically apply system configurations upon device detection or st
* **I/O Scheduler Assignment**: Dynamically assigns I/O schedulers: `bfq` for HDDs, `mq-deadline` for SATA SSDs and eMMC, and `kyber` for NVMe SSDs.
* **HDD Performance Tuning**: Applies `hdparm` settings (`-B 254 -S 0`) to rotational ATA disks.
* **NVIDIA Runtime Power Management**: Enables/disables NVIDIA GPU runtime power management on driver bind/unbind events.
* **USB HID Runtime Power Management**: Disables USB runtime PM (autosuspend) for external, removable HID input devices to reduce input latency.
* **CPU DMA Latency Access**: Sets permissions for the `cpu_dma_latency` device.
* **Wireless Regulatory Domain**: Triggers setting of the wireless regulatory domain when a Wi-Fi device is added.

Expand Down
4 changes: 4 additions & 0 deletions usr/lib/udev/rules.d/75-usb-hid-pm.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Disable USB runtime PM (autosuspend) for external removable HID input devices
ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="03", \
ATTRS{removable}=="removable", TEST=="../power/control", \
ATTR{../power/control}="on"