TomMitchell
Posts: 6
Joined: Thu Dec 29, 2016 12:16 pm

Display control on/off

Fri Jan 13, 2017 2:26 pm

I want to use jessie lite without X-11 platform only use OpenGLES.
How can I control the display on/off (via c-code) ?
The display is connected via HDMI port.

Regards,
Tom

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Display control on/off

Sun Jan 15, 2017 1:38 am

The "tvservice" command line tool maybe.
https://github.com/raspberrypi/userland ... vservice.c

TomMitchell
Posts: 6
Joined: Thu Dec 29, 2016 12:16 pm

Re: Display control on/off

Tue Jan 17, 2017 12:18 pm

I had to use these commands: "vcgencmd display_power 0" en "vcgencmd display_power 1" because the framebuffer was not restored using the tvservice command.

Return to “General programming discussion”