-
Notifications
You must be signed in to change notification settings - Fork 17
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
Raspberry Pi 4B incompatibility #5
Comments
lsusb -t output: |
yes I did |
I guess I will need to wait until I myself get a Raspberry Pi 4B so that I can adjust the software. What's sad is that the three versions (1MB, 2MB and 4MB) will each have different IDs, making this problematic. |
I guess it's just the ram size which is different. what IDs are you talking about? are you using a sort of ID to see if you are running on some PI model? |
The output of |
You cannot fix this until uhubctl can support it. And that requires updated firmware for 4B, see raspberrypi/linux#3079. |
Bummer. I've subscribed to your thread to keep an eye on this. |
|
@OutsourcedGuru Any updates on possible pi 4B support after the uhubctl update? I recently installed a new printer mainboard and setup my 4B for Octoprint with psu control. My Ender 3's stock mainboards usb stopped responding to anything but the 5v line so Im super paranoid that octoprints 5v supply fried something in my stock board. This seems like the best setup for preventing it in the future. If not having a 4B is your main limit Id happly do a veriatey of tests to help using my own. I figure my time is better spent helping you get the pluging as universal as possible then it is spending the time unknowingly trying to make uhubctl work for myself! |
I'm using a RPI4 with 2GB and with the following uhubctl command I can toggle all the usb ports on /off:
(don't forget to give sudo rights to the user without password via "sudo visudo" ... ) The plugin could detect the type of RPI (2/3/4) based on the output of cat /proc/cpuinfo Might it be possible to add that logic to the plugin? |
I might. I've just been busy doing other things lately. |
I have a Pi4-2GB for Octoprint, if I can help, ping me. |
Just submitted a pull to update for RPi4. Note this is a bigger rewrite that removes the ability to toggle individual ports on RPi3B+, per the latest uhubctl update. This is tested and confirmed working on RPi3B+ and RPi4B boards. |
How do I install your branch? |
@sr1329 if you add a plugin from URL and use https://github.com/TokugawaHeavyIndustries/OctoPrint-USBControl/archive/master.zip it should work on the Pi4 @TokugawaHeavyIndustries thanks for this!!! Have installed on a 4gb Pi 4B and its working great. Can now turn off my printer and screen! Would be great to see this merged into master. |
Just installed on a Pi 4 B 4GB and toggling the switch doesn't seem to control the power, but "sudo /home/pi/uhubctl/uhubctl -l 1-1 -a 0" works, seems like the switch is executing the wrong command. |
@Coolie1101 Did you install the commit from my pull/branch or did you install the main from OutsourcedGuru? |
@OutsourcedGuru , if you have abandoned this project, perhaps you should pass the helm to @TokugawaHeavyIndustries. I would be happy to update uhubctl readme to point to @TokugawaHeavyIndustries repository instead. |
Installed via link with "https://github.com/TokugawaHeavyIndustries/OctoPrint-USBControl/archive/master.zip" |
@Coolie1101 , did you upgrade RPI 4 firmware? Also, please show output of |
@TokugawaHeavyIndustries , @Coolie1101 , your plugin should be calling |
@mvp I just updated my fork to the latest ver of uhubctl. Looks like the I was originally using v2.1.0-38-gb73213dd. |
And yes the command for the 4B that the plugin is sending is |
Note that |
Yeah that was leftover from @OutsourcedGuru 's original work, and I just haven't cleaned it up. 😄 |
|
Also, is the only way to use the feature is by going to settings>USBControl? And is there any way to restore the usb camera connection after restoring power? |
@Coolie1101 , USB camera should reconnect after restoring power. If that doesn't work, try adding |
@mvp, Tx, I tried with "sudo /home/pi/uhubctl/uhubctl -R", but no go. |
@Coolie1101 , I meant adding this flag to other flags. Try this to turn power back on:
|
Doesn't seem to work, still no video until a host reboot. |
@Coolie1101 Does the plugin work now (at least for turning off the power)? |
it complains that it isn't installed on a Pi2/3 and doesn't work.
The text was updated successfully, but these errors were encountered: