Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Linux Shell Control Commands

Turning the display on or off is possible directly in a Linux shell!

Add your user to the dialout group for access to /dev/ttyACM0:

sudo usermod -a -G dialout $USER

You may have to log out and back in for group changes to take effect.
If not using a Debian based Linux, the tty device might have a different name, or not using the dialout group.

Turn display on

stty -F /dev/ttyACM0 raw
printf "\252U\252U\v\0\0\0" > /dev/ttyACM0

Turn display off

stty -F /dev/ttyACM0 raw
printf "\252U\252U\12\0\0\0" > /dev/ttyACM0