Author Topic: monitor rotation on linux  (Read 1748 times)

nitrogen_widget

  • Sr. Member
  • ****
  • Posts: 307
    • View Profile
monitor rotation on linux
« 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.

raygun

  • Administrator
  • Sr. Member
  • *****
  • Posts: 390
    • View Profile
Re: monitor rotation on linux
« Reply #1 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

nitrogen_widget

  • Sr. Member
  • ****
  • Posts: 307
    • View Profile
Re: monitor rotation on linux
« Reply #2 on: February 21, 2015, 12:03:37 PM »
Thanks for pointing me in the right direction.