From cdfdf4ac567fdfce87576be5595df77e72c7807d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Wed, 8 Jan 2020 11:10:34 +0900 Subject: [PATCH] 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. --- root/etc/systemd/system/surfacego-touchscreen.service | 11 ----------- root/etc/udev/rules.d/99-surface.rules | 2 -- setup.sh | 3 --- 3 files changed, 16 deletions(-) delete mode 100644 root/etc/systemd/system/surfacego-touchscreen.service delete mode 100644 root/etc/udev/rules.d/99-surface.rules diff --git a/root/etc/systemd/system/surfacego-touchscreen.service b/root/etc/systemd/system/surfacego-touchscreen.service deleted file mode 100644 index 60bebb2d0..000000000 --- a/root/etc/systemd/system/surfacego-touchscreen.service +++ /dev/null @@ -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 diff --git a/root/etc/udev/rules.d/99-surface.rules b/root/etc/udev/rules.d/99-surface.rules deleted file mode 100644 index 20e15a10c..000000000 --- a/root/etc/udev/rules.d/99-surface.rules +++ /dev/null @@ -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" diff --git a/setup.sh b/setup.sh index 7fd8c9e30..078cd80c9 100755 --- a/setup.sh +++ b/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."