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

Power down USB port when printer not in use #1397

Closed
hughesjs opened this issue May 26, 2023 · 6 comments
Closed

Power down USB port when printer not in use #1397

hughesjs opened this issue May 26, 2023 · 6 comments
Labels
Ref: Moonraker Reference to Moonraker 💡 Type: FR Requests a new feature

Comments

@hughesjs
Copy link

Requested feature:

Assuming we're using an RPi with MainSail OS, a lot of printers will draw 5V power from the USB port and remain on even though there's not enough power to power the stepper drivers.

This is kind of annoying.

You can power down individual USB ports on most hardware using uhubctl.

It would be good to have this option from within the MainSail UI.

Solves the following problem:

We don't have to either accept we'll have permanently semi-powered printers or faff about modifying USB cables.

Additional information:

No response

@hughesjs hughesjs added the 💡 Type: FR Requests a new feature label May 26, 2023
@meteyou
Copy link
Member

meteyou commented May 26, 2023

thx for your request, but this feature have to be integrated in Moonraker first. Moonraker is the API and is running on the host itself. Mainsail is only a GUI and is only running in your browser on the client PC.

just my 2 cents: good boards have a jumper to disconnect the 5V from the usb interface. for bad boards, you can just cut the 5V wire in the usb cable. this is more a hardware issue of your printer. i think its not necessary to "fix" this with software.

@meteyou meteyou added the Ref: Moonraker Reference to Moonraker label May 26, 2023
@hughesjs
Copy link
Author

hughesjs commented Jun 4, 2023

Ahh, my mistake, I'll raise an issue over there.

Although I disagree with your comment and I'll explain why.

  1. Yes, it would be lovely it this was present on the board but it's not, and modifying cables is a pain.
  2. A huge amount of features in Klipper are there to address hardware issues in software. Everything from bed meshing to twist compensation is there as a software fix for hardware issues.
  3. It should also be a reasonably easy thing to do in software. The tool to control hub power already exists, it's not like we're going to have to worry about making awkward syscalls.

@meteyou
Copy link
Member

meteyou commented Jun 16, 2023

Software "hacks" are usually harder to set up for some non-linux users than a hardware mod. But if this feature will come in Moonraker, I will implement it in Mainsail.

Can i ask which board do you use?

@Zeanon
Copy link

Zeanon commented Jun 22, 2023

I don't know how important this still is, but instead of cutting the power you can just stick some electrical tape over the 5v pin in your usb-a plug, that's pretty easy

@hughesjs
Copy link
Author

@Zeanon - I know that you can... But when we can handle this in software, hardmodding a usb cable seems like something we should be avoiding

@Zeanon
Copy link

Zeanon commented Jun 26, 2023

Software is not possible, the rpis don't support to turn off individual USB ports
And I would hardly call putting electrical tape over a contact a hardware mod tbh XD

@meteyou meteyou closed this as not planned Won't fix, can't repro, duplicate, stale Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ref: Moonraker Reference to Moonraker 💡 Type: FR Requests a new feature
Projects
None yet
Development

No branches or pull requests

3 participants