Page 1 of 1

Knobster Disconnected in Air Player

Posted: Sun Sep 17, 2023 8:50 am
by Knaldgas
Have installed Air Player on an RPi4 and set it to auto-start.
Air Manager on Windows 11 connects nicely to AP on RPi4, but the Knobster on RPi4 shows disconnected.
Restarting AM and/or AP does not help.
Unplug then plug the knobster USB resolves the issue.

I would like the system to "just start up" without having to reconnect the knobster on every start. How can I do that?
I tried a couple of ways to reconnect the device from command line: https://askubuntu.com/questions/645/how ... mmand-line
I tried the c-program:

Code: Select all

/* usbreset -- send a USB port reset to a USB device */
...
and the

Code: Select all

sudo sh -c "echo 0 > /sys/bus/usb/devices/1-4.6/authorized"
sudo sh -c "echo 1 > /sys/bus/usb/devices/1-4.6/authorized"
but didn't work (intention were to do some kind of work-around)

How can I fix this?

Re: Knobster Disconnected in Air Player

Posted: Fri Nov 03, 2023 4:00 am
by jpihrke
I was having the same problem on my Debian machine and was able to fix it by running the following:

Code: Select all

echo '1-1.6.1' > /sys/bus/usb/drivers/usb/unbind
echo '1-1.6.1' > /sys/bus/usb/drivers/usb/bind
My Knobster's device ID happens to be 1-1.6.1. You can find yours by running:

Code: Select all

dmesg | grep Knobster
Note: all of the commands above must be run with root privileges.

Ref: https://askubuntu.com/questions/798040/ ... ormal-user

Re: Knobster Disconnected in Air Player

Posted: Fri Nov 03, 2023 7:39 pm
by Knaldgas
jpihrke wrote: Fri Nov 03, 2023 4:00 am

Code: Select all

echo '1-1.6.1' > /sys/bus/usb/drivers/usb/unbind
echo '1-1.6.1' > /sys/bus/usb/drivers/usb/bind
Ref: https://askubuntu.com/questions/798040/ ... ormal-user
This works! I made a script based on this to automatically find the device id and use that for the unbind/bind calls.
Finally I can power on and get flying, without having "unplug Knobster, then replug" on my preflight checklist!
Thanks a bunch! :D

Re: Knobster Disconnected in Air Player

Posted: Sat Nov 04, 2023 5:59 pm
by jpihrke
Thanks a bunch! :D
Happy to help!