Vitux published a tutorial about how to turn off your monitor using a Python script in Ubuntu.
How to turn off your Monitor using a Python Script in Ubuntu
The Traditional way of turning your monitor off via hotkey has been broken for a few newer versions. A Python script can bring that functionality back in a reliable and efficient manner.
How to turn off your Monitor using a Python Script in Ubuntu