Screen.sel
#!./Selene
Selene.UseDirectFB("--dfb:quiet,no-vt")
DirectFB.init( DirectFB.CooperativeConst('NORMAL') )
screen = SelScreen.GetScreen(0)
print("Device description :", DirectFB.GetDeviceDescription() )
print("screen size :", screen:GetSize() )
print "Hit 'enter' key to turn the screen off"
io.stdin:read'*l'
screen:SetPowerMode( SelScreen.PowerModeConst("OFF") )
print "Hit 'enter' key to turn the screen on"
io.stdin:read'*l'
screen:SetPowerMode( SelScreen.PowerModeConst("ON") )
print "Hit 'enter' key to exit"
io.stdin:read'*l'