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

Implement option to reset config #161

Open
evilC opened this issue Oct 29, 2024 · 1 comment
Open

Implement option to reset config #161

evilC opened this issue Oct 29, 2024 · 1 comment

Comments

@evilC
Copy link

evilC commented Oct 29, 2024

Is your feature request related to a problem? Please describe

I have Gotten myself into a situation where something is clearly borked.
What I want to do is to wipe the config and start again.
If I delete RatOS.cfg and printer.cfg (Along with all backups) and then yank the power cable, when I power back up, somehow magically it has those files again.
If I use the configurator, and select my existing config (Hybrid), it does not offer the option to "Start Fresh".
If I swap to CoreXY, it does offer this option, but when I do so, it clearly has not started fresh as I see comments in there that were in there before.
I eventually worked out that if you delete the two config files, then open the configurator, you can truly start fresh, but it's poor UX to have to do this - there should be a simple, obvious way to do it.

Describe the solution you'd like

Provide an option to completely clear all configuration and start again

Describe alternatives you've considered

Workaround found, but making post to log issue as poor UX

Additional information

No response

@miklschmidt
Copy link
Member

When a thing is hard to do, it's probably because you're not supposed to do it.

If I delete RatOS.cfg and printer.cfg (Along with all backups) and then yank the power cable, when I power back up, somehow magically it has those files again.

Yes indeed, the configurator generates these for you on startup from the hardware configuration you have selected including printer.cfg if it's missing. This is effectively a clean slate - generated from your hardware selection. The same you would get if you went through the configurator and accepted overwrites for the conflicts it shows you.

image

Also please don't yank the power cable! :) Repeated improper shutdowns may corrupt your filesystem, shut down the pi through mainsail before powering off.

If I use the configurator, and select my existing config (Hybrid), it does not offer the option to "Start Fresh".
Because it's already selected -> there's no change. If you want you can select a different printer, and then select Hybrid again. I can add a reset configuration button, but i'm not sure how that's beneficial. The premise here is flawed.

If I swap to CoreXY, it does offer this option, but when I do so, it clearly has not started fresh as I see comments in there that were in there before.

What comments, where? Printer.cfg will not be overwritten unless you accept it the end of the wizard.

I eventually worked out that if you delete the two config files, then open the configurator, you can truly start fresh, but it's poor UX to have to do this - there should be a simple, obvious way to do it.

It's poor UX, because what you want to do, doesn't make much sense. You have a full diff view at the end of the configurator that'll allow you to override each individual file with the generated contents for the hardware you've chosen.

image

Clicking that is effectively the same as "resetting" the file.

Please note that instead of brute forcing a reset, any problems should be reported and dealt with properly. Use the debug zip :)

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

No branches or pull requests

2 participants