diff --git a/readme.txt b/readme.txt index 31cacf5..811ff37 100644 --- a/readme.txt +++ b/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 diff --git a/root/etc/udev/rules.d/10-ioscheds.rules b/root/etc/udev/rules.d/10-ioscheds.rules new file mode 100644 index 0000000..65ecd2a --- /dev/null +++ b/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" diff --git a/root/etc/udev/rules.d/50-plugdev.rules b/root/etc/udev/rules.d/50-plugdev.rules new file mode 100644 index 0000000..dc8e3f0 --- /dev/null +++ b/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"