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

Feature request: auto eject of SD cards #2472

Open
zapta opened this issue Jan 1, 2015 · 7 comments
Open

Feature request: auto eject of SD cards #2472

zapta opened this issue Jan 1, 2015 · 7 comments
Labels
Feature request This is an idea for a new feature in Slic3r OS: Linux OS: OSX OS: Windows

Comments

@zapta
Copy link

zapta commented Jan 1, 2015

Like many I am using SD cards to transfer the gcode generated by Slic3r to my 3D printer and going through the cycle of modify the design, export STL, load STL, write gcode and eject SD card is tedious.

It would be very useful to have in Slic3r an auto-eject check configuration box that automatically ejects the SD card after writing the gcode file to it.

@simonkuehling
Copy link

I think this may require quite platform-and maybe even distribution-specific code for each operating system to implement in Slic3r itself..

Did you consider using a post-processing script for that task already? In linux and OSX this could be a one-liner i think - i am not sure how easy it is for windows though

@zapta
Copy link
Author

zapta commented Jan 2, 2015

I am using Mac OSX, I managed to setup an 'eject' button in the top desktop bar but it doesn't work for SDs. Yes, it may be platform dependent but very useful consider how popular SD cards are. For platforms that do not support it it can be disabled. With the right abstraction it should not be that bad I think. It can be as simple as dispatching a shell command from Slic3r.

@alranel
Copy link
Member

alranel commented Jan 2, 2015

Detection of SD cards might require some hacks... This is something I've been considering myself too. We need to investigate how to do that on Windows.

@zapta
Copy link
Author

zapta commented Jan 2, 2015

Does this help?

http://msdn.microsoft.com/en-us/library/windows/desktop/aa364939%28v=vs.85%29.aspx

On Fri, Jan 2, 2015 at 1:13 AM, Alessandro Ranellucci <
notifications@github.com> wrote:

Detection of SD cards might require some hacks... This is something I've
been considering myself too. We need to investigate how to do that on
Windows.


Reply to this email directly or view it on GitHub
#2472 (comment).

@lordofhyphens lordofhyphens added this to the Pull Request or Bust milestone Jul 11, 2016
@lordofhyphens
Copy link
Member

I think this is better solved as a post process script myself, as there are as many ways to unmount a file system as there are OSes. Keeping it in Slic3r itself would also start to necessitate permission escalations on some OS configurations.

This is also not my use case

@lordofhyphens lordofhyphens added Feature request This is an idea for a new feature in Slic3r OS: Linux OS: Windows OS: OSX labels Jul 11, 2016
@bubnikv
Copy link
Contributor

bubnikv commented Jul 11, 2016

Cura (the original gui by Daid) implements SD card detection very nicely as
far as I can judge it on Windows. Cura also implements multi platform SD
card eject, but it is disabled by default. I suppose there is some reason
for it being disabled. On Windows, cura uses an external 3rd party tool for
eject.
On Jul 11, 2016 9:45 AM, "Joseph Lenox" notifications@github.com wrote:

I think this is better solved as a post process script myself, as there
are as many ways to unmount a file system as there are OSes. Keeping it in
Slic3r itself would also start to necessitate permission escalations on
some OS configurations.

This is also not my use case


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#2472 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AFj5I5FE6npjVIaiqTR9TYnaxFDpCDXpks5qUfSHgaJpZM4DNo14
.

@dbuezas
Copy link

dbuezas commented Dec 5, 2023

Since the suggested post-processing script was trickier than I expected, posting it here in case others land here:

(
sleep 1 # so orca starts saving first
diskutil eject /dev/disk2
say "Ejected" # mac specific (I think)
) >/dev/null 2>&1 &

Put in a file, chmode +x, put script's path in the post-processing field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request This is an idea for a new feature in Slic3r OS: Linux OS: OSX OS: Windows
Projects
None yet
Development

No branches or pull requests

6 participants