Slic3r icon indicating copy to clipboard operation
Slic3r copied to clipboard

Feature request: auto eject of SD cards

Open zapta opened this issue 10 years ago • 7 comments

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.

zapta avatar Jan 01 '15 16:01 zapta

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

simonkuehling avatar Jan 01 '15 19:01 simonkuehling

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.

zapta avatar Jan 02 '15 01:01 zapta

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.

alranel avatar Jan 02 '15 09:01 alranel

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 < [email protected]> 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 https://github.com/alexrj/Slic3r/issues/2472#issuecomment-68515045.

zapta avatar Jan 02 '15 18:01 zapta

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 avatar Jul 11 '16 07:07 lordofhyphens

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" [email protected] 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 https://github.com/alexrj/Slic3r/issues/2472#issuecomment-231663584, or mute the thread https://github.com/notifications/unsubscribe/AFj5I5FE6npjVIaiqTR9TYnaxFDpCDXpks5qUfSHgaJpZM4DNo14 .

bubnikv avatar Jul 11 '16 21:07 bubnikv

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

dbuezas avatar Dec 05 '23 23:12 dbuezas