RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Rotate ES without config change and reboot?

    Scheduled Pinned Locked Moved Help and Support
    emulationstatiorotaterotation
    2 Posts 1 Posters 277 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jouster
      last edited by

      I have a manually-rotated CRT system. I've grouped my games into ES Collections based on screen orientation. I pick either a vertical or horizontal collection, rotate the monitor to the appropriate orientation, and then play games from that collection. Ideally I'd like to be able to pick a menu option or hit a button combination to have ES then switch to the appropriate orientation so I can easily scroll through the games without turning my head sideways. I know about the startup parameter that can be passed to emulationstation, but this doesn't really help for a rotating monitor setup. Any suggestions would be appreciated!

      1 Reply Last reply Reply Quote 0
      • J
        Jouster
        last edited by

        I solved my own problem! I modified the EmulationStation startup script to toggle back and forth between horizontal and vertical mode on a restart. So, now I can rotate my monitor, restart EmulationStation, and my menus match the orientation. Here is the updated file:

        /opt/retropie/supplementary/emulationstation/emulationstation.sh

        #!/bin/sh
        esdir="$(dirname $0)"
        while true; do
           rm -f /tmp/es-restart /tmp/es-sysrestart /tmp/es-shutdown
           "$esdir/emulationstation" "$@" $rotate
           ret=$?
           if [ -f /tmp/es-restart ]; then
             if [ -z "$rotate" ]
             then
                  rotate=”--screenrotate 1”          
             else
                  rotate=””
             fi
             continue
           fi
           if [ -f /tmp/es-sysrestart ]; then
                rm -f /tmp/es-sysrestart
        	sudo reboot
        	break
           fi
           if [ -f /tmp/es-shutdown ]; then
                rm -f /tmp/es-shutdown
                sudo poweroff
                break
           fi
           break
        done
        exit $ret
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.