Skip to content
Permalink
Browse files

runcommand: allow passing of x/y resolution for kms

* %XRES% passes the current frame width
* %YRES% passes the frame height

The variable replace is done after a mode switch (even though mode-switching
isn't possible on a bare KMS framebuffer).
  • Loading branch information...
psyke83 committed Jul 11, 2019
1 parent 77f2d29 commit 39a6f67ad72bf5b530ee4190bca47dcd63d0bd87
Showing with 4 additions and 0 deletions.
  1. +4 −0 scriptmodules/supplementary/runcommand/runcommand.sh
@@ -1045,6 +1045,10 @@ function runcommand() {

mode_switch "$MODE_REQ_ID"

# replace X/Y resolution (needed for KMS applications)
COMMAND="${COMMAND//\%XRES\%/${MODE_CUR[0]}}"
COMMAND="${COMMAND//\%YRES\%/${MODE_CUR[1]}}"

[[ -n "$FB_NEW" ]] && switch_fb_res $FB_NEW

config_dispmanx "$SAVE_EMU"

0 comments on commit 39a6f67

Please sign in to comment.
You can’t perform that action at this time.