Is there a way that we can find the status of a display monitor in a linux environment? pointers on any standard C libraries / unix calls would be helpful. I got many interesting articles on how this can be achieved on win32, but none of them would point a solution for a linux environment.
i tried using xrandr, but it fails to detect the status dynamically
any pointers??
Here is a simple program using Linux Real Mode Interface:
Some possible return values: 0 (on), 1 (standby), 2 (suspend), 4 (off), 8 (reduced on).