Useless port's clogs the interface

image

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


[Unit]
Description=Remove /dev/ttyS* devices

[Service]
Type=oneshot
ExecStart=/bin/bash -c 'for i in {0..31}; do rm /dev/ttyS$i; done'
RemainAfterExit=true

[Install]
WantedBy=multi-user.target


sudo systemctl daemon-reload


sudo systemctl enable --now remove-ttys.service

1 Like