Motion 704 on Linux Mint

I am running my Shapeoko 5.1 Pro on Linux Mint. The flatpak version of Motion was very out of date and I wasn’t able to use my new pendant. I pointed a robot at it (via Kiro) to figure out if there was a way to run on Wine directly. Here is the final verdict:

What I changed:
  
  - udev rules: /etc/udev/rules.d/99-carbide3d.rules gives the Shapeoko the fixed name /dev/shapeoko and the pendant /dev/jogpendant, whatever order they're plugged in.
  - Wine port mapping: HKLM\Software\Wine\Ports maps COM33 to /dev/shapeoko and COM34 to /dev/jogpendant. Wine keeps these after a restart.
  - Wine device entries: registry entries make Wine present each COM port to Carbide Motion with its real USB ID (16D0:0FA7 for the Shapeoko, 16D0:12DD for the pendant). Without them the app never finds either device.
  
  Installing a newer Carbide Motion version in Wine should keep all of this, because the settings live in Wine and Linux rather than in the app. If a future version stops seeing the machine, check the device entries first. A new version could look up ports differently.

Basically, Wine saw the Shapeoko on COM3 mapped to /dev/ttyACM0, but Motion ignored that and only looked for COM33. Adding in the explicit mapping in the udev rules and in the wine “windows” registry made it work. Both Motion and pendant now work.

YMMV, of course, but hopefully this a) helps anyone else trying to run the latest versions on Linux and b) points the way for future versions to work out of the box.

We finally got our new file download system working, so Linux should now update regularly. We still need to update the Pi build to match- hopefully in the next few days.

You can grab the latest at Carbide Motion Beta Downloads | Carbide 3D

Note: We changed to an AppImage for Linux, since Flatpak didn’t add much value.

6 Likes