Can't access the port in linux on chromebook

Hi, I'm a chromebook user. I found the linux terminal on my computer and used it to install the IDE. Everything was fine until I opened the "tools" dropdown and noticed the 'port' option was greyed-out. I couldn't click on it. Does anyone know what I could do? thanks!

1 Like

Your topic does not indicate a problem with the Arduino website or the forum and therefore has been moved to a more suitable location on the forum.

Which IDE are you using? Which board are you using? Is the board a clone or an original? If the former, what is the serial-to-usb IC on the board.

Usually under linux lsusb and dmesg are your friends to analyse problems. I'm not a Chromebook user so have no idea.

1 Like

Setting Up Arduino IDE on Linux: Tips and Troubleshooting

  1. Check User Groups:
  • Type groups in the terminal to check if dialout is listed.
  • If not, add your user to the necessary groups using the following commands (replace yourUserName with your actual username):

sudo usermod -a -G tty yourUserName
sudo usermod -a -G dialout yourUserName

  • Log off and log back in for the changes to take effect. This step is crucial.
  1. Additional Group Configuration (for IDE 2.2 and similar):
  • Run these commands to ensure your user has the required permissions:

sudo groupadd plugdev
sudo groupadd dialout
sudo usermod -a -G tty $1
sudo usermod -a -G dialout $1
sudo usermod -a -G uucp $1
sudo usermod -a -G plugdev $1

  1. Troubleshoot Connection with dmesg:
  • Disconnect your Arduino board.
  • Run dmesg -w to start monitoring system messages. The program will not close automatically.
  • Connect the board and observe the output for any changes related to your device.
  • Stop dmesg -wusingCtrl+C`.
  1. List Devices:
  • Navigate to the /dev directory and list the devices using:

cd /dev
ls -l

  • Check if your device (e.g., /dev/ttyUSB0) appears correctly.
  1. BRLTTY Conflicts:
  • If you see references to BRLTTY in the dmesg output, it can interfere with serial communication. You can uninstall it or create udev rules to disable it:

sudo apt-get purge --auto-remove brltty

  • You may find more guidance on disabling BRLTTY by searching the Arduino forum.

Helpful Links:


These steps and resources should help you troubleshoot and set up your Arduino IDE on Linux effectively.

The steps and options may change the next time you update the Chromebook, but in version 133

  1. Click the clock-wifi-battery widget in the bottom right corner
  2. In the panel that opens, click the gear in the bottom right corner. If you hover, it says Settings
  3. In Settings, scroll the list on the left all the way to the bottom and select About Chrome OS
  4. In the main panel, scroll al the way to the bottom. Above the copyright notice is the Developers section with one item: Linux development environment. Select it
  5. Select your destination: Manage USB devices

(You can also search for it.) The panel presents two options and a third section

  • Show popup notification for new USB devices.
  • Enable persistent USB device sharing with guests.
  • Give Linux apps permission to access USB devices.
    Only supported devices are shown.
    Available USB devices will appear here.

I have both of the options enabled. You might only need the first. Before you try it, in the Terminal

ls -ltr /dev | tail

which will show the ten most recently connected/updated devices, ending with for example

crw-rw---- 1 root   kvm      10, 232 Mar 20 18:26 kvm
crw-rw-rw- 1 root   root     10, 229 Mar 20 18:26 fuse
crwx------ 1 root   tty     136,   0 Mar 24 11:48 console
drwxr-xr-x 3 root   root          60 Mar 24 11:55 bus
drwxrwxrwt 2 root   root          40 Mar 24 12:09 shm
crw-rw-rw- 1 root   root      5,   2 Mar 24 12:09 ptmx

Plug in your device. If it is recognized, a popup will appear in the bottom right saying "USB device detected", with the option Connect to Linux. So click that, and try the ls again

crw-rw---- 1 root   kvm      10, 232 Mar 20 18:26 kvm
crw-rw-rw- 1 root   root     10, 229 Mar 20 18:26 fuse
crwx------ 1 root   tty     136,   0 Mar 24 11:48 console
drwxr-xr-x 3 root   root          60 Mar 24 11:55 bus
crw-rw-rw- 1 root   root    166,   0 Mar 24 12:09 ttyACM0
crw-rw-rw- 1 root   root      5,   2 Mar 24 12:09 ptmx
drwxrwxrwt 2 root   root          40 Mar 24 12:09 shm

Here, it's added as /dev/ttyACM0. In that third section in Settings, the device should now be listed, perhaps using an entirely generic/misleading name. I have "USB Single Serial".

If you don't get the popup, then the device is not recognized. You may be out of luck until something gets added and blessed somewhere.

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