Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: nitrogen_widget on February 14, 2015, 12:31:59 PM

Title: monitor rotation on linux
Post by: nitrogen_widget on February 14, 2015, 12:31:59 PM
can attractmode call a script file or binary file to activate hardware to turn a monitor when I launch a game that is vertical then run another file upon exit of the game to return the monitor to horizontal?

I'd come up with the hardware & software myself to do the actual turning of the monitor, i'd just need a front end to control it for me.
Title: Re: monitor rotation on linux
Post by: raygun on February 19, 2015, 06:43:16 PM
yes, take a look at the ultrastik360 plugin which runs commands whenever a game is launched and whenever it ends.  You could tweak it a bit to do what you are looking for.

To figure out the rotation of a game from a script, use
Code: [Select]
fe.game_info( Info.Rotation ).  It will equal "90" or "270" for vertical games, "0" for horizontal.

cheers
Title: Re: monitor rotation on linux
Post by: nitrogen_widget on February 21, 2015, 12:03:37 PM
Thanks for pointing me in the right direction.