USB error opening port UBUNTU

SOLVED
I just had success! The machine is an intel PC running UBUNTU 24.04 LTS. I issued the following command to give permission to myself to access the USB port. Why I have to do this I’ll never understand

Open terminal and type:
sudo chown username /dev/ttyACM0

Or whatever the port name is on your machine.

Hope this helps someone.

Hi folks,
I just fired up gsender 1.4.9 on my intel based Ubuntu machine, fully updated, and I can see the SLB as a device, but when I select it, I get the “error opening port” error. Baud is set to 115200. I tried several different USB cables and ports although the SLB is showing up so I think the connection is good. Also tried power cycling both board and PC. PC bios has legacy enabled. Ug.
Anything else to try? I’m dead in the water.
Thanks,
Tyler

2 Likes

Nothing better than solving a problem on your own! How incredibly satisfying! What is really cool, you posted your solution here in case anyone else has a similar problem. Thank you!
Jake

2 Likes

Quick point @wiremonkey - sometimes when that port gets unplugged and plugged back in, the ownership will revert, and you will have to run chown again.

For a permanent fix, add your user to the dialout group, with:

sudo usermod -a -G dialout $USER

Make sure to log out and back in again.

This will permanently put your user in a group that has permission for those devices.

2 Likes

Perfect! Thanks for the tip. I’m not great with linux, the “$USER” you indicate is my user name without the dollar sign, correct?

Thanks, I’m happy to contribute what little I can in this grblHAL journey!

1 Like

Hi @wiremonkey - the $USER will automatically substitute your user name for you - but that said, using your Linux username (without the dollar sign) will also work :slight_smile:

1 Like

Glad you got this fixed. For what it’s worth, adding the user to dialout group is part of our documentation, although it might be worth adding it to “Common Problems and Fixes” as a secondary location.