I made a harmonograph (Drawing machine to draw Lissajous curves). Its an analog machine with a digital component.
The analog portion is non interruptible. the digital component is a drawing tablet, connected via usb to an Ubuntu server. An Arduino sends keystrokes to the server for creating new files, and for saving old ones. The issue is that in the ~100ms that file operations take, the drawing program continues to read the drawing tablet, but not log the current position. When the file IO returns, the new coordinate is interpolated with the last known coordinate. This generates a line in the resulting image. See image, pictures on right, where said line is especially noticeable:
I don't want to kill the process. I want to stop listening to the USB drawing tablet momentarily. akin to unplugging it. (I can build a circuit to do that if I have to, the previous version worked that way)
from
$lsusb
...
Bus 001 Device 005: ID 056a:00de Wacom Co., Ltd CTH-470 [Bamboo Fun Pen & Touch]
....
The server webpage (gallery) is generated with a bash script. A suitable bash command to stop and start the USB tablet is what I'm after.