diff --git a/README.md b/README.md index 6982724de..5a01a9391 100644 --- a/README.md +++ b/README.md @@ -82,8 +82,6 @@ For the i915_firmware files, please select the version for your device. * If you are getting stuck at boot when loading the ramdisk, you need to install the Processor Microcode Firmware for Intel CPUs (usually found under Additional Drivers in Software and Updates). * If you are having issues with the position of the cursor matching the pen/stylus, you'll need to update your libwacom as mentioned here: https://github.com/jakeday/linux-surface/issues/46 -* If you are on a SP4 and have trouble with the type cover re-attaching, add this udev rule: -ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="Surface Type Cover", RUN+="/sbin/modprobe -r i2c_hid && /sbin/modprobe i2c_hid" ### Compiling the Kernel from Source diff --git a/root/etc/udev/rules.d/98-keyboardscovers.rules b/root/etc/udev/rules.d/98-keyboardscovers.rules new file mode 100644 index 000000000..c20d23f55 --- /dev/null +++ b/root/etc/udev/rules.d/98-keyboardscovers.rules @@ -0,0 +1,8 @@ +# Type Cover Re-attach (SP4) +ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="Surface Type Cover", RUN+="/sbin/modprobe -r i2c_hid && /sbin/modprobe i2c_hid" + +# Keyboard Dock (SB2) +ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="0922", RUN+="/sbin/modprobe nouveau" + +#Keyboard Undock (SB2) +ACTION=="remove", SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="0922", RUN+="/sbin/modprobe -r nouveau"