Skip to content
Advertisement

How to check if Linux console screensaver has blanked screen

is there a way to check programmatically (via ioctl(), etc.) or by reading a file in /sys, /proc or /dev) whether the screen has been blanked by the Linux console screensaver?

Thanks and best regards,

Günter

Advertisement

Answer

You can parse the output of xset q with DISPLAY set, but it’s not pretty.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement