Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: ebelouet on December 15, 2015, 10:27:48 AM

Title: a20 debian screen state
Post by: ebelouet on December 15, 2015, 10:27:48 AM
Hi,

I search cmd to know if my screen is of or on on debian ?

Sincerely
Eric
Title: Re: a20 debian screen state
Post by: MBR on December 16, 2015, 10:36:27 PM
I'm not sure if there is an easy way, maybe except the command setterm -blank, which tell blanking status of virtual consoles, as the man page says "Without an argument, gets the blank status (returns which vt was blanked or zero for unblanked vt)." But if you just need to be sure that the VT is not in blank state (e.g. the screen is on), you can forcefully unblank the framebuffer by writing 0 into the file /sys/class/graphics/fb0/blank.