video_display_state(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

πŸ’… 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_OFF
  • DISPLAY_ON
  • DISPLAY_SUSPEND
  • DISPLAY_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