video_display_state(3)
π video_display_state β Arcan Lua API π
okay bestie, this is video_display_state(3) from the Arcan Lua API, and it's literally about changing the power state for a display. no cap, it's giving "screen go to sleep / screen wake up" energy, and we are keeping every detail. β¨
πΈ NAME πΈ
video_display_state β change power state for a display. periodt. π
β¨ SYNOPSIS β¨
the synopsis is right here, bestie β first statestr, then the call:
statestr
video_display_state( id, state )
π DESCRIPTION π
so this function is intended for nativ video platforms that expose raw video display control β and for _lwa builds, it's a switch to enable/disable render passes while maintaining other parts of the pipeline. π«Ά
note that the function returns a human readable string representing the current state, but the optional state argument expects one of these constants:
DISPLAY_OFFDISPLAY_ONDISPLAY_SUSPENDDISPLAY_STANDBY
any other value is a terminal state transition. π
the id value for a display can be retrieved in the event handler for _display_state(action, id). iykyk. π₯
π EXAMPLE π
here's the example, copied exactly and looking iconic:
function video_display_state0()
print(video_display_state(0));
print(video_display_state(0, DISPLAY_OFF));
print(video_display_state(0, DISPLAY_ON));
end
π¦ SEE ALSO: π¦
vidsysβ go check it out, bestie. π
mwah π β this page is from vidsys, dated October 2026, and it's video_display_state(3). slay. π
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms