Setting triggerbox in SerialOut component on Linux

OS: Ubuntu 22.04
PsychoPy version: 2026.2.0 Py 3.10
Standard Standalone Installation? (y/n): installed within uv environment

Hello,

I’m trying to send EEG triggers via triggerbox connected through USB. I tried using the Serial Out component. However, I can’t figure out how to set the device correctly.

The triggerbox doesn’t seem to appear as /dev/tty***, but running udevadm monitor --environment --udev in the terminal shows the device as DEVNAME=/dev/bus/usb/001/007

In the 2026.2.0 version of psychopy, the menu of the Serial Out component is different from what is shown on the following documentation page: Sending triggers via a Serial Port — PsychoPy® . Here, we have to set the device through the Device Manager. The triggerbox doesn’t appear in the device list, and adding the path by hand yields the following error:

I also tried to use a Code component (import serial ; port = serial.Serial('/dev/bus/usb/001/007')) but it unable to open the port. Though this might be due to the fact that it’s running in a virtual environment.

I wonder if the path I’m providing is incorrect and/orudevadm monitor --environment --udev if there is a way to set the triggerbox more easily with the Device Manager.

Many thanks

When you tried with a Code Component, what error did you get?

So the first error was

Error initializing trigger box: Serial port error on /dev/bus/usb/003/006: [Errno 13] could not open port /dev/bus/usb/003/006: [Errno 13] Permission denied: ‘/dev/bus/usb/003/006’

I changed the file permissions to rwx for everyone sudo chmod 777 /dev/bus/usb/003/006 and now I get the following error

ERROR Failed to initialize trigger box: Serial port error on /dev/bus/usb/003/006: Could not configure port: (25, ‘Inappropriate ioctl for device’)

I also tried sudo usermod -a -G dialout $USER but I still get the same error