Skip to content

Commit

Permalink
updating udev rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeday committed Apr 11, 2018
1 parent 90a0c99 commit a377dd8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions root/etc/udev/rules.d/98-keyboardscovers.rules
Original file line number Diff line number Diff line change
@@ -1,8 +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"
ACTION=="add", SUBSYSTEMS=="usb", ATTR{product}=="Surface Type Cover", RUN+="/sbin/modprobe -r i2c_hid && /sbin/modprobe i2c_hid"

This comment has been minimized.

Copy link
@Erudition

Erudition Dec 13, 2018

This line causes type cover attachment to disable pen and touch on the Surface Pro 3. #241

Specifically, the call to /sbin/modprobe -r i2c_hid disables the touchscreen. Calling /sbin/modprobe i2c_hid independently (as root) can temporarily fix the issue. Removing the file permanently fixes the issue as well, as this file is not needed by the SP3.


# Keyboard Dock (SB2)
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="0922", RUN+="/sbin/modprobe nouveau"
ACTION=="add", SUBSYSTEMS=="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"
ACTION=="remove", SUBSYSTEMS=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="0922", RUN+="/sbin/modprobe -r nouveau"
10 changes: 8 additions & 2 deletions root/etc/udev/rules.d/99-ipts.rules
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ SUBSYSTEMS=="input", ATTRS{name}=="ipts 1B96:005E Touchscreen", ENV{ID_INPUT_TOU
# IPTS Pen (SB)
SUBSYSTEMS=="input", ATTRS{name}=="ipts 1B96:005E Pen", SYMLINK+="input/pen"

# IPTS Touchscreen (SB2)
# IPTS Touchscreen (SB2 15")
SUBSYSTEMS=="input", ATTRS{name}=="ipts 045E:0020 Touchscreen", ENV{ID_INPUT_TOUCHSCREEN}="1", SYMLINK+="input/touchscreen"

# IPTS Pen (SB2)
# IPTS Pen (SB2 15")
SUBSYSTEMS=="input", ATTRS{name}=="ipts 045E:0020 Pen", SYMLINK+="input/pen"

# IPTS Touchscreen (SB2 13")
SUBSYSTEMS=="input", ATTRS{name}=="ipts 045E:0021 Touchscreen", ENV{ID_INPUT_TOUCHSCREEN}="1", SYMLINK+="input/touchscreen"

# IPTS Pen (SB2 13")
SUBSYSTEMS=="input", ATTRS{name}=="ipts 045E:0021 Pen", SYMLINK+="input/pen"

0 comments on commit a377dd8

Please sign in to comment.