Skip to content

Commit

Permalink
Remove outdated udev rules
Browse files Browse the repository at this point in the history
  • Loading branch information
qzed committed Jun 12, 2023
1 parent 4f6c262 commit ad49362
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 20 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ For this tool to work, you need a recent version of the [surface-sam module][sur
Have a look at the [releases](https://github.com/linux-surface/surface-control/releases) page.
Pre-built packages are available for Debian (Ubuntu, ...), whereas PKGBUILDs for Arch Linux are in the AUR (`surface-control`).

_Hint_: Add the following udev rule to change performance mode as a normal user
```
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"
```

## Building from Source

Building this application from source follows the standard rust procedure, i.e. simply call `cargo build --release --locked` for a release-ready executable.
Expand Down
1 change: 0 additions & 1 deletion etc/sysusers/surface-control.conf

This file was deleted.

2 changes: 0 additions & 2 deletions etc/udev/40-surface-control.rules

This file was deleted.

4 changes: 0 additions & 4 deletions pkg/bin/makebin
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ package() {
# copy binary files
install -D -m755 "target/release/surface" "$pkgdir/bin/surface"

# copy system files
install -D -m644 "etc/sysusers/surface-control.conf" "$pkgdir/usr/lib/sysusers.d/surface-control.conf"
install -D -m644 "etc/udev/40-surface-control.rules" "$pkgdir/usr/lib/udev/rules.d/40-surface-control.rules"

# copy completion files
install -D -m644 "target/surface.bash" "$pkgdir/shell-completions/surface.bash"
install -D -m644 "target/_surface" "$pkgdir/shell-completions/surface.zsh"
Expand Down
4 changes: 0 additions & 4 deletions pkg/deb/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ override_dh_install:
# binary files
install -D -m755 "target/release/surface" "${pkgdir}/usr/bin/surface"

# copy system files
install -D -m644 "etc/sysusers/surface-control.conf" "${pkgdir}/usr/lib/sysusers.d/surface-control.conf"
install -D -m644 "etc/udev/40-surface-control.rules" "${pkgdir}/lib/udev/rules.d/40-surface-control.rules"

# completion files
install -D -m644 "target/surface.bash" "${pkgdir}/usr/share/bash-completion/completions/surface"
install -D -m644 "target/_surface" "${pkgdir}/usr/share/zsh/vendor-completions/_surface"
Expand Down
4 changes: 0 additions & 4 deletions pkg/fedora/surface-control.spec
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ strip --strip-all "target/release/surface"
%install
rm -rf %{buildroot}
install -D -m755 "surface-control/target/release/surface" "%{buildroot}/usr/bin/surface"
install -D -m644 "surface-control/etc/sysusers/surface-control.conf" "%{buildroot}%{_sysusersdir}/%{name}.conf"
install -D -m644 "surface-control/etc/udev/40-surface-control.rules" "%{buildroot}%{_udevrulesdir}/40-surface-control.rules"
install -D -m644 "surface-control/target/surface.bash" "%{buildroot}/usr/share/bash-completion/completions/surface"
install -D -m644 "surface-control/target/_surface" "%{buildroot}/usr/share/zsh/site-functions/_surface"
install -D -m644 "surface-control/target/surface.fish" "%{buildroot}/usr/share/fish/completions/surface.fish"
Expand All @@ -42,8 +40,6 @@ install -D -m644 "surface-control/target/surface.fish" "%{buildroot}/usr/share/f
%files
%license surface-control/LICENSE
/usr/bin/surface
%{_sysusersdir}/%{name}.conf
%{_udevrulesdir}/40-surface-control.rules
/usr/share/bash-completion/completions/surface
/usr/share/zsh/site-functions/_surface
/usr/share/fish/completions/surface.fish
Expand Down

0 comments on commit ad49362

Please sign in to comment.