Useless port's clogs the interface


is there a way to hide /dev/ttyS** ?

As PlatformIO uses the information reported back by the system, this would have to be done on the system side. I am not aware of any setting for PlatformIO to “hide” interfaces.

1 Like

feels so good mmmmm…

sudo nano /etc/systemd/system/remove-ttys.service

Description=Remove /dev/ttyS* devices

ExecStart=/bin/bash -c 'for i in {0..31}; do rm /dev/ttyS$i; done'


sudo systemctl daemon-reload

sudo systemctl enable --now remove-ttys.service

1 Like