Grant "sudo" permissions to IDE 2.0

Hi,

I'm using Ubuntu 22.04. I'd like to start using version 2.0 of the Arduino IDE with my Portenta H7.

With version 1.8.19, like @jerteach mentioned in this thread, I was unable to upload sketches to my Portenta without running the IDE from the terminal with sudo privaleges (sudo arduino). Running without sudo resulted in the same dfu-util: Invalid DFU suffix signature... problem as @jerteach mentioned.

I'm currently seeing the same issue when trying to upload from Arduino 2.0 using the AppImage. I'm curious if anyone has any ideas as to how to overcome this.

What I've tried:

  • Changing the owner of the AppImage to root
  • Running the AppImage from the terminal with sudo using sudo ./arduino-ide_2.0.0_Linux_64bit.AppImage, which then showed:
[0921/141843.613666:FATAL:electron_main_delegate.cc(294)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
Trace/breakpoint trap
  • Adding --no-sandbox gives me:
Starting backend process. PID: 158943
[158925:0921/141946.623973:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[158925:0921/141946.624048:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Authorization required, but no authorization protocol specified
[158925:0921/141946.657221:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=1024
Authorization required, but no authorization protocol specified
[158925:0921/141946.665163:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=1024
Authorization required, but no authorization protocol specified
[158925:0921/141946.667622:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=1024
Authorization required, but no authorization protocol specified
[158925:0921/141946.669777:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=1024
Authorization required, but no authorization protocol specified
[158925:0921/141946.671847:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=1024
Authorization required, but no authorization protocol specified
[158925:0921/141946.674091:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=1024
Authorization required, but no authorization protocol specified
[158925:0921/141946.676347:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=1024
Authorization required, but no authorization protocol specified
[158925:0921/141946.698032:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=1024
Authorization required, but no authorization protocol specified
[158925:0921/141946.701023:ERROR:gpu_process_host.cc(957)] GPU process exited unexpectedly: exit_code=1024
[158925:0921/141946.701036:FATAL:gpu_data_manager_impl_private.cc(417)] GPU process isn't usable. Goodbye.
Trace/breakpoint trap

That's all I've got. So I'm open to other ideas. Thanks in advance.

Since you mention the @jearteach thread, I presume you have already added your user to the appropriate groups, i.e. dialout and plugdev?

Also, check whether the modemmanager service is running. If it is, then stop and disable it.

You may also have to add the UDEV rules - see here:

Look under 'Ubuntu issues troubleshooting' at the end of the page. After adding the rules, you must re-start udev. The simplest way is to just reboot as suggested.

@BitSeeker thanks for the reply. Indeed -- I failed to mention that my user is a member of those groups.

modemmanager does not appear to be running (checked with service --status-all | grep modemmanager). Also searched manually without grepping.

I tried adding the UDEV rules by running -

  • echo 'SUBSYSTEMS=="usb", ATTR{idVendor}=="*", MODE:="0666"' > 20-portenta.rulessudo mv 20-portenta.rules /etc/udev/rules.d/

three times, each time replacing *, once for each of the three IDs they list.

I have rebooted my system after confirming / setting these things and still see the same result.

Thanks for the help so far.

Bumping this to see if anyone has ideas.

I've moved your topic to the dedicated IDE2.0 section of the forum.

1 Like

Bumping again -- is there anyone from Arduino who can address this? Would love to use the new IDE with my Portenta but can't manage to upload...

If you don't come right, I suggest that you contact Arduino via https://www.arduino.cc/en/contact-us/

Not sure what you mean by "don't come right".

My advice is to focus on solving the real problem instead of trying to migrate your unsafe workaround to the new IDE.

Even though it didn't end up being useful in the linked thread, I think it is worth running dmesg just in case it might show some useful information.

  1. Open a terminal.
  2. Disconnect the USB cable of your Arduino board to your computer.
  3. Connect the USB cable of your Arduino board to your computer.
  4. Type this command:
    dmesg | tail --lines=20
    
  5. Press Enter
  6. Click and drag the mouse to select all the output in the terminal window.
  7. Press Ctrl+Shift+C.
    This will copy the selected text to the clipboard.
  8. Open a forum reply here by clicking the Reply button.
  9. Click the </> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the output is correctly formatted.
    Code block
  10. Press Ctrl+V.
    This will paste the output into the code block.
  11. Move the cursor outside of the code block markup before you add any additional text to your reply.
  12. Click the Reply button to post the output.

A bit presumptuous to assume I'd prefer to use my (admittedly) unsafe workaround rather than an IDE that works as expected.

I agree that I could have framed the question differently, but since the other thread was left unaddressed by the Arduino team I figured a workaround was my best bet at the moment. I'll reply with the dmesg output later when I'm back at my desk.

Hello there, I have the same problem, and since the author let me post my output:

[24464.583403] usb 1-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[24464.583405] usb 1-1.2: Product: USB2.0-Serial
[24464.584025] ch341 1-1.2:1.0: ch341-uart converter detected
[24464.585285] usb 1-1.2: ch341-uart converter now attached to ttyUSB0
[24467.592125] usb 1-1.2: USB disconnect, device number 31
[24467.592463] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[24467.592515] ch341 1-1.2:1.0: device disconnected
[24471.021881] usb 1-1.2: new full-speed USB device number 32 using ehci-pci
[24471.135509] usb 1-1.2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54
[24471.135514] usb 1-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[24471.135517] usb 1-1.2: Product: USB2.0-Serial
[24471.136090] ch341 1-1.2:1.0: ch341-uart converter detected
[24471.138742] usb 1-1.2: ch341-uart converter now attached to ttyUSB0
[24472.943290] wlp3s0: authenticate with de:3f:99:99:41:b2
[24472.944687] wlp3s0: send auth to de:3f:99:99:41:b2 (try 1/3)
[24472.948246] wlp3s0: authenticated
[24472.953925] wlp3s0: associate with de:3f:99:99:41:b2 (try 1/3)
[24472.966987] wlp3s0: RX AssocResp from de:3f:99:99:41:b2 (capab=0x1431 status=0 aid=3)
[24472.971270] wlp3s0: associated
[24472.996030] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready

Hi @cactus96

What exactly do you mean by "same problem"?

Are you saying that you are encountering a dfu-util: Invalid DFU suffix signature... error while attempting to upload to an Arduino Portenta H7 board using Arduino IDE 2.x?

I get the same errors while trying to run Arduino IDE 2.0 as root on Linux, sorry for the confusion.

What is the reason you are trying to run Arduino IDE 2.0 as root on Linux?

The IDE couldn't access ports without it, but now I've fixed it, sorry for the inconvenience, and thanks for your answer.

I'm glad it is working now.

Regards,
Per

How did you fix it? Do share :slight_smile:

This article helped me: https://support.arduino.cc/hc/en-us/articles/360016495679-Fix-port-access-on-Linux

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.