nexus511 / gpd-ubuntu-packages

This repository shall provide the base for building ubuntu packages from most of the patches currently used to get linux on the gpd-pocket.
GNU General Public License v3.0
73 stars 4 forks source link

SDL causes wrong display orientation #15

Open nexus511 opened 7 years ago

nexus511 commented 7 years ago

SDL applications in fullscreen cause the display to return back to portrait mode.

It can be reproduced by installing and starting "i have no tomatoes":

sudo apt install tomatoes && tomatoes
LokiChaos commented 7 years ago

Since version 1.2.14 SDL supports rotating the framebuffer. This can be done with the environment variable "SDL_VIDEO_FBCON_ROTATION". In case of the Z2 you have to set it to "CCW" (rotate counter clock wise). Source, https://boards.dingoonity.org/other-game-systems/zipit-z2-wireless-messenger/

The Zipit Z2 also uses a rotated panel for its display. I know we were able to run SDL applications with rotation on it so I looked up how it was done.

Probably just set that in /etc/profile.d/gpd-pocket-sdl.sh or a similar file to have it globally set in the environment and not worry about clobbering any existing files.

nexus511 commented 7 years ago

@LokiChaos Thanks for your response. I have been actually looking for excatly something like this.

There is one problem: We are not using a framebuffer on the pocket and need a solution for X11 instead.

nexus511 commented 6 years ago

Got some hint that it might work with SDL2.