Posting this to separate topic so it’s easier to find.
As discussed in topic Moving from Arduino IDE to Embeetle - #8 by joyzpa, I had a problem that the serial port on my linux system refused to open when trying to flash my project to Arduino board. This was (after selecting the right serial port in the probe section of the dashboard as pointed out by @kristof ), caused by insufficient permissions.
Thank you very much @joyzpa for describing the issue and the solution in such detail! This can be very helpful for other users
I’ll try to find time to add your post also to our website.
Yes, thank you @joyzpa for your feedback. I made me realize that the procedure currently documented on our website is unnecessarily complex: it is actually sufficient to check what the group of the serial device is, and add yourself to that group, just like you that. There is no need to change the group of the serial device to plugdev.
After adding yourself to the group, I can confirm that it is sufficient to log out and back in; no need to reboot.
@kristof I think we should implement several changes:
change the explanation on our website
change the title. The error observed in Embeetle is usually not “Libusb failure”, but rather something like “Permission denied”
when you select a serial device in Embeetle, immediately check that the current user has RW rights on that device; if not, pop-up a helpful message showing the command to use to fix the issue:
sudo usermod -a -G dialout $USER
(using the actual group of the serial device instead of dialout, of course)
The new method is simple enough to explain in a short popup; no need to point to the website.