Skip to content

Commit

Permalink
start xow.service on dongle plugin
Browse files Browse the repository at this point in the history
I encountered the `Mt76Exception: Failed to load firmware` error quite a few times. xow.service is stopped and needs a restart as stated in the Troubleshooting section of the README.md. To make my life easier i added a udev rule to do just that for me when i plugged the dongle back in after uplugging it.
Should start/restart the xow.service if the service is not running or is in a `failed` state due to previous ABRT signal.
I think it would be a simple change to the udev.rules to make that the default behaviour but maybe a manual restart is desired?

Anyways, thanks a lot for your work! I'm quite happy with xow!
  • Loading branch information
atcq authored and medusalix committed Jan 24, 2021
1 parent d16f61c commit 4ae5c84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install/udev.rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ SUBSYSTEM=="usb", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02e6", MODE:="0666
SUBSYSTEM=="usb", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02fe", MODE:="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="091e", MODE:="0666"
KERNEL=="uinput", SUBSYSTEM=="misc", MODE:="0666"
# start the xow.service on dongle plugin
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02e6", TAG+="systemd", ENV{SYSTEMD_WANTS}="xow.service"
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02fe", TAG+="systemd", ENV{SYSTEMD_WANTS}="xow.service"

0 comments on commit 4ae5c84

Please sign in to comment.