Linux and Ubuntu: serial permissions and audio

On Linux, CloudHamSuite runs in the same browsers as on Windows: Chrome, Chromium or Edge. You install nothing, not even a driver, because the Linux kernel ships the common USB serial drivers. Still, many people trip over three things the first time: the browser does not see the port, it may not open it, or the audio is too quiet. This page goes through them in order, with Ubuntu as the example.

Try without an account

The right browser

The browser talks to the rig over Web Serial. Chrome, Chromium and Edge can do that, Firefox cannot. On Ubuntu, Chromium is installed as a snap. A snap runs sealed off and on its own sees no USB ports. You have two ways:

If "Choose port …" in setup opens an empty chooser, the snap is almost always the reason.

The dialout group

On Linux a serial port such as /dev/ttyUSB0 belongs to the system. On Ubuntu, members of the dialout group may open it. A freshly created user usually is not one. Then the chooser lists the port, but it will not open. The fix:

sudo usermod -aG dialout $USER

Then log out and back in. A new terminal window is not enough, because group membership only applies to a new session. The command groups shows whether it worked: dialout must be in the list. Chromium as a snap also needs the raw-usb step above.

udev and the port's name

When you plug the rig in, udev creates the device file. Rigs with a USB serial chip such as the CP210x in the IC-7300 appear as /dev/ttyUSB0, /dev/ttyUSB1 and so on, some other devices as /dev/ttyACM0. Which file was added you see with ls -l /dev/ttyUSB* /dev/ttyACM* before and after plugging in. The output also shows the group that owns the file; on Ubuntu that is dialout.

CloudHamSuite does not need the file name. Chrome's chooser shows the port with the name of the USB chip, for the IC-7300 for example "CP2102 USB to UART Bridge Controller". You need no udev rule of your own just for permissions when your user is in dialout.

The port vanishes at once

A special case on Ubuntu: the port shows up briefly and is gone again. Then the braille service brltty grabs it. It mistakes some USB serial chips for a braille display, among them rigs from Icom and Yaesu and many adapters with CP210x or CH340. If you use no braille display, remove the service:

sudo apt remove brltty

Then replug the USB cable. If you need a braille display, do not remove the service.

One program per port

Only one program at a time can open a serial port. If WSJT-X, flrig, rigctld or a logging program runs on the same rig, CloudHamSuite stays silent. Close the other program, including a second browser tab with CloudHamSuite, and check the connection again.

Audio under PipeWire and PulseAudio

Current Ubuntu releases use PipeWire, older ones PulseAudio. For CloudHamSuite it makes no difference, because both understand pactl and pavucontrol. The rig appears as a device of its own, usually with "USB Audio CODEC" in the name. Two directions matter.

Receive (input):

Chrome asks once for microphone access for the input. That is the rig's input, not your microphone. CloudHamSuite measures the receive level itself and raises an input that is a little quiet. If it is too loud, setup says "Too loud"; then lower the level on the rig or in pavucontrol.

Transmit (output):

You then set the actual transmit level in CloudHamSuite, see Setting TX level and ALC.

The clock

FT8 needs an accurate clock. On Linux you switch time synchronisation on like this:

timedatectl set-ntp true

timedatectl on its own shows whether the clock is synchronised. If it is probably off, the station shows that in its status bar.

In short

  1. Install Google Chrome or run sudo snap connect chromium:raw-usb.
  2. sudo usermod -aG dialout $USER, log out and back in.
  3. If the port vanishes: without a braille display sudo apt remove brltty.
  4. Close other programs on the rig.
  5. Check the codec in pavucontrol: input not muted, output at 100 %.
  6. timedatectl set-ntp true.
  7. Open "Set up rig" in CloudHamSuite and get going.

Read on