{"action":"created","issue":{"url":"https://api.github.com/repos/recalbox/recalbox-os/issues/915","repository_url":"https://api.github.com/repos/recalbox/recalbox-os","labels_url":"https://api.github.com/repos/recalbox/recalbox-os/issues/915/labels{/name}","comments_url":"https://api.github.com/repos/recalbox/recalbox-os/issues/915/comments","events_url":"https://api.github.com/repos/recalbox/recalbox-os/issues/915/events","html_url":"https://github.com/recalbox/recalbox-os/issues/915","id":151214825,"number":915,"title":"[4.1.0] Add FBTFT (Framebuffer drivers for small TFT LCD display modules)","user":{"login":"Cluf20","id":14099043,"avatar_url":"https://avatars.githubusercontent.com/u/14099043?v=3","gravatar_id":"","url":"https://api.github.com/users/Cluf20","html_url":"https://github.com/Cluf20","followers_url":"https://api.github.com/users/Cluf20/followers","following_url":"https://api.github.com/users/Cluf20/following{/other_user}","gists_url":"https://api.github.com/users/Cluf20/gists{/gist_id}","starred_url":"https://api.github.com/users/Cluf20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cluf20/subscriptions","organizations_url":"https://api.github.com/users/Cluf20/orgs","repos_url":"https://api.github.com/users/Cluf20/repos","events_url":"https://api.github.com/users/Cluf20/events{/privacy}","received_events_url":"https://api.github.com/users/Cluf20/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2016-04-26T19:07:23Z","updated_at":"2017-02-02T13:27:52Z","closed_at":null,"body":"FBTFT is a Framebuffer drivers for small TFT LCD display modules. It's useful for handheld projects.\n\nCan you compile FBTFT in the next version of Recalbox? #Github link: [https://github.com/notro/fbtft](https://github.com/notro/fbtft)\n\nThanks to  #@JJ and @Acris, this is the tutorial to easily operate the mini TFT screens with recalbox thanks to the integration of FBTFT:\n\n\"Thanks to your help i solve it. The resolution was changing when the emulator was launched, that cuased strange behavoir. As you said, i change\n\nglobal.videomode=default\nfor keeping the resolution the same everywhere. And now the menu and the games are in the TFT!!\n\nAnd now how i configure the TFT:\n\nBefore doing anything o have to say that i’m using Raspberry Pi 3 model B and the lastes version of Realbox 4.0.0 beta3. Also note, that i’m learing at the same time i’m doing this, so maybe i’m using wrong terminology, or saying/doing something wrong.\n\nFirst you have to configure the system to use the TFT screen with fbtft, in my case i’m using the Adafruit 3.5 inches TFT screen, but i think you can use a diferent screen changing a little bit the configuration (if it’s supported by fbtft). I have another tft laying around, i’ll try it next week.\n\nFor configure the TFT first we need to enable the SPI bus of the raspberry pi, to do that, write at the end of /boot/config.txt:\n\ndtparam=spi=on\nAlso you need to add to the file /etc/modules.conf :\n\nspi-bcm2835\nNote: i don’t know if anyone have this problem, but i read on the forums, and it seem that other people have the same problem. The problem is that when you try to write, you can’t because the file systems is only read. To solve it use:\n\nmount -o remount,rw /\n\nmount -o remount,rw /boot\nAfter enabling the SPI you can reboot. After reboot you can enable the TFT by using the comand:\n\nmodprobe fbtft_device name=pitft\nif the TFT screen changes from white to black (maybe with some random color pixels) means that it’s working.\n\nTo make it lanuch at boot you have to add to the file /etc/modules.conf :\n\nfbtft_device\nand create a file under /etc/modprobe.d/fbtft.conf with the next line of code:\n\noptions fbtft_device custom name=pitft width=320 height=480 rotate=90 speed=62000000 fps=60\nAnd then, if you reboot and wait after the emulatorstation starts you can watch a flash in the screen. And under /dev , if you run the command ls, you must see now two fbx devices: fb0 is the framebuffer from the HDMI and fb1 the framebuffer from the TFT screen.\n\nTo reproduce the HDMI output in the TFT you have to copy the fb0 to fb1, for that fbcp is used. You can’t compile in recalbox, so to test it i made a dirty workaroung, i used Raspbian to compile it (it’s a very small program) and then i copied the compiled file to the Recalbox image. For doing it right the fbcp program must be compiled with buildroot, but i don’t know how to do it (in the future i’d like to integrate it).\n\nThen you can test if it works, executing thos file in Recalbox, it automatically copies the fb0 to fb1 and you must see the same output in the HDMI monitor, and in the TFT.\n\nTo automatically launch fbcp modify the starting scripts under /etc/init.d/ . I write added it to S99Custom so fbcp is launched at the end of the init scripts.\n\nI think i’m forgeting something and there is a little bit of extra configuration to do, but i’m writing it from memory and i’m out of time. Sorry for that, next week i’ll complete it. But for now i think you can reproduce it with this indications.\n\nThanks and keep working hard!\"\n"},"comment":{"url":"https://api.github.com/repos/recalbox/recalbox-os/issues/comments/276956536","html_url":"https://github.com/recalbox/recalbox-os/issues/915#issuecomment-276956536","issue_url":"https://api.github.com/repos/recalbox/recalbox-os/issues/915","id":276956536,"user":{"login":"ian57","id":3584580,"avatar_url":"https://avatars.githubusercontent.com/u/3584580?v=3","gravatar_id":"","url":"https://api.github.com/users/ian57","html_url":"https://github.com/ian57","followers_url":"https://api.github.com/users/ian57/followers","following_url":"https://api.github.com/users/ian57/following{/other_user}","gists_url":"https://api.github.com/users/ian57/gists{/gist_id}","starred_url":"https://api.github.com/users/ian57/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ian57/subscriptions","organizations_url":"https://api.github.com/users/ian57/orgs","repos_url":"https://api.github.com/users/ian57/repos","events_url":"https://api.github.com/users/ian57/events{/privacy}","received_events_url":"https://api.github.com/users/ian57/received_events","type":"User","site_admin":false},"created_at":"2017-02-02T13:27:52Z","updated_at":"2017-02-02T13:27:52Z","body":"That's strange, can you post your problem on the recalbox forum and give more information. Anyway, did do switch the / and /boot partition to Write mode? "}}
{"actor":{"display_login":"ian57"}}