Browse Source

Add udev rules

rocket-config
mid-kid 6 years ago
parent
commit
d23e480f12
  1. 6
      readme.txt
  2. 4
      root/etc/udev/rules.d/10-ioscheds.rules
  3. 22
      root/etc/udev/rules.d/50-plugdev.rules

6
readme.txt

@ -37,6 +37,12 @@ Changes:
/etc/sysctl.d/swappiness.conf:
- Set healthy swappiness values for desktop workloads
/etc/udev/rules.d/10-ioscheds.rules:
- Give static drives a good scheduler
/etc/udev/rules.d/50-plugdev.rules:
- Allow users to access some common external devices
/etc/cron.hourly/psd:
- Resync /etc/rc.d/rc.psd on a hourly basis, if enabled

4
root/etc/udev/rules.d/10-ioscheds.rules

@ -0,0 +1,4 @@
# set scheduler for non-rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]|mmcblk[0-9]*|nvme[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="mq-deadline"
# set scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"

22
root/etc/udev/rules.d/50-plugdev.rules

@ -0,0 +1,22 @@
# Oneplus 2
## System
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee7", MODE="0660", GROUP="plugdev"
## Fastboot
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d00d", MODE="0660", GROUP="plugdev"
## ADB
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d001", MODE="0660", GROUP="plugdev"
# Adafruit Trinket
SUBSYSTEM=="usb", ATTR{idVendor}=="1781", ATTR{idProduct}=="0c9f", MODE="0660", GROUP="plugdev"
# Arduino Yun
SUBSYSTEM=="usb", ATTR{idVendor}=="2341", ATTR{idProduct}=="8041", MODE="0660", GROUP="plugdev"
# Arduino Uno
SUBSYSTEM=="usb", ATTR{idVendor}=="2341", ATTR{idProduct}=="0043", MODE="0660", GROUP="plugdev"
# TI-84+ CE-T
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="e008", MODE="0660", GROUP="plugdev"
# PICkit2
SUBSYSTEM=="usb", ATTR{idVendor}=="04d8", ATTR{idProduct}=="0033", MODE="0660", GROUP="plugdev"
Loading…
Cancel
Save