Skip to content

Instantly share code, notes, and snippets.

View qwertz19281's full-sized avatar

qwertz19281

  • Germany
  • 05:27 (UTC +02:00)
View GitHub Profile
@qwertz19281
qwertz19281 / 99-udev.rules
Last active September 22, 2025 21:07
udev rules
# RTL9210 M.2 adapter TRIM/discard via unmap command
ACTION=="add|change", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="9210", SUBSYSTEM=="scsi_disk", ATTR{provisioning_mode}="unmap"
# Qudelix 5k control via Chromium extension (HID permissions)
KERNEL=="hidraw*", ATTRS{idVendor}=="0a12", ATTRS{idProduct}=="4005", MODE="0666"
KERNEL=="hidraw*", ATTRS{idVendor}=="0a12", ATTRS{idProduct}=="4010", MODE="0666"
# WD USB HDD proper shutdown on system shutdown (customize the idProduct and idVendor)
ACTION=="add|change", ATTRS{idVendor}=="1058", ATTRS{idProduct}=="2626", SUBSYSTEM=="scsi_disk", ATTR{manage_system_start_stop}="1"