{"id":5,"date":"2016-02-20T14:00:00","date_gmt":"2016-02-20T14:00:00","guid":{"rendered":""},"modified":"2016-02-25T18:09:00","modified_gmt":"2016-02-25T18:09:00","slug":"scummvm-fullscreen-on-a-raspberry-pi-tft-touchscreen","status":"publish","type":"post","link":"https:\/\/www.root42.de\/blog\/?p=5","title":{"rendered":"ScummVM fullscreen on a Raspberry Pi TFT touchscreen"},"content":{"rendered":"<p>I managed to get ScummVM running on the 3.5&#8243; Waveshare touchscreen. This is obviously only nice, if it runs fullscreen. Have a look:<\/p>\n<p><iframe loading=\"lazy\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/kE4QyjqgKmc\" width=\"560\"><\/iframe><\/p>\n<p>For this to work, you need to adjust your openbox configuration, assuming you are running a default Raspbian with LXDE \/ openbox. Edit .config\/openbox\/lxde-pi-rc.xml and add the following to the applications section:<\/p>\n<pre style=\"background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: &quot;arial&quot;; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;\"><code style=\"color: black; word-wrap: normal;\">   &lt;application class=\"scummvm\" name=\"scummvm\"&gt;  <br \/>     &lt;fullscreen&gt;yes&lt;\/fullscreen&gt;  <br \/>   &lt;\/application&gt;  <br \/><\/code><\/pre>\n<p>You can switch between fullscreen and windowed mode by pressing Alt+F11, in the default openbox configuration.<\/p>\n<p>Next, you need to install scummvm and the OpenGL software rasterizer, since the touch screen frame buffer does not support the hardware OpenGL engine that the Pi provides:<\/p>\n<pre style=\"background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: &quot;arial&quot;; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;\"><code style=\"color: black; word-wrap: normal;\">$ sudo apt-get install scummvm mesa-utils libgl1-mesa-dri libgl1-mesa-swx11<br \/><\/code><\/pre>\n<p>This will also install dri drivers and some OpenGL utilities, such as glxgears to test performance.<\/p>\n<p>Now you want to tell ScummVM to actually use the OpenGL backend driver, or else it will not scale to, but rather use the default 2x scaler, which is too large for the 480&#215;320 display. Easiest way to do this is to edit ~\/.scummvmrc (you have to have run ScummVM at least once for this) and edit the [scummvm] section to have these lines:<\/p>\n<pre style=\"background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: &quot;arial&quot;; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;\"><code style=\"color: black; word-wrap: normal;\">[scummvm]<br \/>last_fullscreen_mode_width=480<br \/>last_fullscreen_mode_height=320<br \/>gfx_mode=opengl_nearest<br \/><\/code><\/pre>\n<p>If gfx_mode or the other lines already exist, edit them to your liking.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I managed to get ScummVM running on the 3.5&#8243; Waveshare touchscreen. This is obviously only nice, if it runs fullscreen. Have a look: For this to work, you need to adjust your openbox configuration, assuming you are running a default Raspbian with LXDE \/ openbox. Edit .config\/openbox\/lxde-pi-rc.xml and add the following to the applications section: &hellip; <a href=\"https:\/\/www.root42.de\/blog\/?p=5\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;ScummVM fullscreen on a Raspberry Pi TFT touchscreen&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5"}],"collection":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"}],"version-history":[{"count":1,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions"}],"predecessor-version":[{"id":189,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions\/189"}],"wp:attachment":[{"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.root42.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}