-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First steps towards support for Mustang/Rumble LT series amps #28
Changes from all commits
1aa4f89
a4e28bf
a9deb6e
d1e14c9
e6dd8fe
c69ad2f
34bf91e
1bd6303
79feee6
b232f3a
d3afee6
116bda7
80bfafe
6d28b92
7467639
7f97d60
7f1284a
9fff8ee
7e25b0e
539bb13
c7dbe63
a386185
fec90e3
1123205
55249ee
511e05a
814cb57
f74efa4
19eadaf
6c6b181
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ | |
| Mustang LT 40S | 1ed8 | 0046 | | | ||
| Rumble LT 25 | 1ed8 | 0038 | | | ||
| Mustang GT 40 | 1ed8 | 0032 | | | ||
| Mustang Micro | 1ed8 | 0043 | | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice, could you submit this in a separate PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will do shortly. Unfortunately, experimentation to date shows that the Mustang Micro is completely unresponsive to the commands which are getting responses on the LT40S, so this may only be useful to put a disclaimer to say this device is not supportable. It is not surprising, as the 'Micro is not interoperable with the Desktop Fender Tone app either. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PR for this will come in in a couple of minutes. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Project] | ||
CreatedFrom=CMakeLists.txt | ||
Manager=KDevCMakeManager | ||
Name=offa-plug |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/sh | ||
|
||
usage() { | ||
cat <<EOF | ||
|
||
Usage: | ||
$0 enable - enable non-root users to access all USB devices with Fender Mustang vendor id 1ed8 | ||
$0 disable - revoke non-root user access if previously granted | ||
Both variants require sudo access | ||
|
||
EOF | ||
} | ||
|
||
udev_rules_filename=/etc/udev/rules.d/10-all_users_access_usb_fender_mustang.rules | ||
|
||
if [ "$1" = "--help" ] | ||
then | ||
|
||
usage | ||
|
||
exit 0 | ||
|
||
elif [ "$1" = "enable" ] | ||
then | ||
|
||
echo ' | ||
|
||
# Enable all users on this computer to interact with Fender Mustang devices with USB vendor id 1ed8 | ||
# Useful for contributors to https://github.com/offa/plug to enable them to experiment with | ||
# Fender devices not already supported. | ||
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="1ed8", GROUP="users" | ||
|
||
' | sudo tee $udev_rules_filename > /dev/null | ||
|
||
sudo udevadm control --reload | ||
|
||
exit 0 | ||
|
||
elif [ "$1" = "disable" ] | ||
then | ||
|
||
sudo rm $udev_rules_filename | ||
|
||
sudo udevadm control --reload | ||
|
||
exit 0 | ||
|
||
else | ||
|
||
usage | ||
|
||
exit 1 | ||
|
||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to submit this line directly, extending
.gitignore
might help others too.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what the invitation is here - do you want me to create a PR with the file ./offa-plug.kdev4 in it, and whatever else is required so that the kdevelop project works out of the box on a fresh clone?
I can't see the point of adding a line for the .kdev4 subdirectory to .gitignore unless it is alongside the project file. I added this because the files the in .kdev4 subdirectory contained information the full path to the sandbox directory on my computer, so I'm guessing that these files are not particularly helpful to others (and might be harmful).
Experimentation shows that adding the offa-plug.kdev4 file only doesn't seem to give a clean startup so I'll look into what is required for a path-neutral project and I'm happy to do a PR containing this if it is what is preferred.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, just add project files to the .gitignore so others that might use the IDE don't commit their local files accidentally.