Rotate ES without config change and reboot?
-
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!
-
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
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.