Skip to content
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

Volumio USB Reset Plugin Submission #363

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from

Conversation

alfonsotesauro
Copy link

Hello, sorry to disturb you, I think I have created a useful plugin, and I have done testing and seems to work well. It has a single button in its settings that triggers the following shell script:

for i in /sys/bus/pci/drivers/[uoex]hci_hcd/:; do
[ -e "$i" ] || continue
echo "${i##/}" > "${i%/}/unbind"
echo "${i##/}" > "${i%/}/bind"
done

The author of the script gave the following clarifications:

Notes: [1]: the *hci_hcd kernel drivers typically control the USB ports. ohci_hcd and uhci_hcd are for USB1.1 ports, ehci_hcd is for USB2 ports and xhci_hcd is for USB3 ports. (see
https://en.wikipedia.org/wiki/Host_controller_interface_(USB,_Firewire))

The reason of the need of this script was caused by the fact that some time Volumio started to become unresponsive and unusable, even booting from a fresh installation. Many times in those cases I could solve the issue disconnecting the USB DAC (I have a SMSL SU-8) and the USB3.0 powered hub with a USB3.0 Hard Drive with all the music attached. With only a USB-key with a few songs, Volumio used to start to behave normally again. This script gives an easy way to obtain the same result via software, and from my testing it is a valuable tool. It presents a modal dialog after 10 seconds after the execution of the script, telling the user that a restart is suggested. Volumio then starts to scan the music folders again automatically, but only comes back to normal after a restart and a complete database update. I have also noticed that restarting samba and other network services helps to return to normal behaviour more quickly, if the current version goes well I could add the ability to restart samba with the press of a button, eventually changing the name of the plugin to something like "Volumio Hardware Ports Reset". Thanks a lot for your attention, I hope I will receive good news from you and it will be published. Goodbye for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant