Skip to content

Commit ad49362

Browse files
committed
Remove outdated udev rules
1 parent 4f6c262 commit ad49362

File tree

6 files changed

+0
-20
lines changed

6 files changed

+0
-20
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ For this tool to work, you need a recent version of the [surface-sam module][sur
3737
Have a look at the [releases](https://github.com/linux-surface/surface-control/releases) page.
3838
Pre-built packages are available for Debian (Ubuntu, ...), whereas PKGBUILDs for Arch Linux are in the AUR (`surface-control`).
3939

40-
_Hint_: Add the following udev rule to change performance mode as a normal user
41-
```
42-
KERNEL=="01:03:01:00:01", SUBSYSTEM=="surface_aggregator", RUN+="/usr/bin/chmod 666 /sys/bus/surface_aggregator/devices/01:03:01:00:01/perf_mode"
43-
```
44-
4540
## Building from Source
4641

4742
Building this application from source follows the standard rust procedure, i.e. simply call `cargo build --release --locked` for a release-ready executable.

etc/sysusers/surface-control.conf

Lines changed: 0 additions & 1 deletion
This file was deleted.

etc/udev/40-surface-control.rules

Lines changed: 0 additions & 2 deletions
This file was deleted.

pkg/bin/makebin

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ package() {
5959
# copy binary files
6060
install -D -m755 "target/release/surface" "$pkgdir/bin/surface"
6161

62-
# copy system files
63-
install -D -m644 "etc/sysusers/surface-control.conf" "$pkgdir/usr/lib/sysusers.d/surface-control.conf"
64-
install -D -m644 "etc/udev/40-surface-control.rules" "$pkgdir/usr/lib/udev/rules.d/40-surface-control.rules"
65-
6662
# copy completion files
6763
install -D -m644 "target/surface.bash" "$pkgdir/shell-completions/surface.bash"
6864
install -D -m644 "target/_surface" "$pkgdir/shell-completions/surface.zsh"

pkg/deb/debian/rules

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ override_dh_install:
1515
# binary files
1616
install -D -m755 "target/release/surface" "${pkgdir}/usr/bin/surface"
1717

18-
# copy system files
19-
install -D -m644 "etc/sysusers/surface-control.conf" "${pkgdir}/usr/lib/sysusers.d/surface-control.conf"
20-
install -D -m644 "etc/udev/40-surface-control.rules" "${pkgdir}/lib/udev/rules.d/40-surface-control.rules"
21-
2218
# completion files
2319
install -D -m644 "target/surface.bash" "${pkgdir}/usr/share/bash-completion/completions/surface"
2420
install -D -m644 "target/_surface" "${pkgdir}/usr/share/zsh/vendor-completions/_surface"

pkg/fedora/surface-control.spec

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ strip --strip-all "target/release/surface"
3030
%install
3131
rm -rf %{buildroot}
3232
install -D -m755 "surface-control/target/release/surface" "%{buildroot}/usr/bin/surface"
33-
install -D -m644 "surface-control/etc/sysusers/surface-control.conf" "%{buildroot}%{_sysusersdir}/%{name}.conf"
34-
install -D -m644 "surface-control/etc/udev/40-surface-control.rules" "%{buildroot}%{_udevrulesdir}/40-surface-control.rules"
3533
install -D -m644 "surface-control/target/surface.bash" "%{buildroot}/usr/share/bash-completion/completions/surface"
3634
install -D -m644 "surface-control/target/_surface" "%{buildroot}/usr/share/zsh/site-functions/_surface"
3735
install -D -m644 "surface-control/target/surface.fish" "%{buildroot}/usr/share/fish/completions/surface.fish"
@@ -42,8 +40,6 @@ install -D -m644 "surface-control/target/surface.fish" "%{buildroot}/usr/share/f
4240
%files
4341
%license surface-control/LICENSE
4442
/usr/bin/surface
45-
%{_sysusersdir}/%{name}.conf
46-
%{_udevrulesdir}/40-surface-control.rules
4743
/usr/share/bash-completion/completions/surface
4844
/usr/share/zsh/site-functions/_surface
4945
/usr/share/fish/completions/surface.fish

0 commit comments

Comments
 (0)