adding udev rule for docking/undocking keyboards (SP4/SB2)

This commit is contained in:
Jake Day 2018-02-07 21:07:20 -05:00
parent 5841eb24dd
commit 95d56cd460
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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"