瀏覽代碼

Remove Surface Go and SP4 workarounds. (Fixes #37)

Surface Go nowadays works without the touchscreen workaround.

The SP4 rule will run on all devices, breaking IPTS on Surface Go for
example. Therefore we moved it to the device's quirk page, requiring the
user to manually add the file if necessary.
Blaž Hrastnik 5 年之前
父節點
當前提交
cdfdf4ac56
共有 3 個文件被更改,包括 0 次插入16 次删除
  1. 0 11
      root/etc/systemd/system/surfacego-touchscreen.service
  2. 0 2
      root/etc/udev/rules.d/99-surface.rules
  3. 0 3
      setup.sh

+ 0 - 11
root/etc/systemd/system/surfacego-touchscreen.service

@@ -1,11 +0,0 @@
-[Unit]
-Description=Surface Go Touchscreen Power Management
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-ConditionPathExists=/sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/power/control
-Exec=/bin/sh -c "echo on > /sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/power/control"
-
-[Install]
-WantedBy=multi-user.target

+ 0 - 2
root/etc/udev/rules.d/99-surface.rules

@@ -1,2 +0,0 @@
-# Type Cover Re-attach (SP4)
-ACTION=="add", SUBSYSTEM=="usb", ATTRS{product}=="Surface Type Cover", RUN+="/sbin/modprobe -r i2c_hid && /sbin/modprobe i2c_hid"

+ 0 - 3
setup.sh

@@ -45,9 +45,6 @@ done
 echo "==> Copying firmware files under root..."
 sudo cp -rv firmware/* /lib/firmware/
 
-echo "==> Enabling power management for Surface Go touchscreen..."
-sudo systemctl enable -q surfacego-touchscreen
-
 echo
 
 echo "Setting your clock to local time can fix issues with Windows dualboot."