This question already has an answer here:
- Check if display is powered on in Linux 2 answers
I would like to check if a monitor is turned on so that I can switch the output to it.
will show all connected displays no matter if they are turned on or not
will only list the monitors that are displaying something.