3,5" TFT only shows console
-
Hi,
I'm trying to build my own Gameboy with RaspberryPi3 and RetorPiev4.1.
I'm using a Kuman 3.5" Display, see here: https://www.amazon.de/gp/product/B01FX7909Q/ref=oh_aui_detailpage_o01_s02?ie=UTF8&psc=1. It seems to be similar to the Waveshare 3.5" Display.
I've installed the latest drivers downloaded from the official site.
After this was able to see the console form beginning on, but I've never seen GUI (Xorg) on this display.
After this I followed the instructions on this site: http://futurice.com/blog/id-like-to-have-some-lcd-on-my-pi.
But I still can't see GUI. It seems the only thing that is missing is to redirect GUI to this display. But i thought this was an approach of fbtft (which is preinstalled on RetroPie4).
After this I tried to use fbcp like this:sudo apt-get install cmake git clone https://github.com/tasanakorn/rpi-fbcp cd rpi-fbcp/ mkdir build cd build/ cmake .. make sudo install fbcp /usr/local/bin/fbcp
With fbcp I can see the RetroPieMenu. But this can't be the solution. I guess it was about 1 to 2 Frames per Second. So fbcp is dismissed. :-D
I still think the only thing that is missing is a redirection of xorg to display. It seems the way the mentioned tutorial suggests does not work at all.
Here are some of my system files:
/boot/cmdline.txt:dwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
/boot/config.txt:
# For more options and information see # http://www.raspberrypi.org/documentation/configuration/config-txt.md # Some settings may impact device functionality. See link above for details # uncomment if you get no picture on HDMI for a default "safe" mode #hdmi_safe=1 # uncomment this if your display has a black border of unused pixels visible # and your display can output without overscan #disable_overscan=1 # uncomment the following to adjust overscan. Use positive numbers if console # goes off screen, and negative if there is too much border #overscan_left=16 #overscan_right=16 #overscan_top=16 #overscan_bottom=16 # uncomment to force a console size. By default it will be display's size minus # overscan. #framebuffer_width=1280 #framebuffer_height=720 # uncomment if hdmi display is not detected and composite is being output #hdmi_force_hotplug=1 # uncomment to force a specific HDMI mode (this will force VGA) #hdmi_group=1 #hdmi_mode=1 # uncomment to force a HDMI mode rather than DVI. This can make audio work in # DMT (computer monitor) modes #hdmi_drive=2 # uncomment to increase signal to HDMI, if you have interference, blanking, or # no display #config_hdmi_boost=4 # uncomment for composite PAL #sdtv_mode=2 #uncomment to overclock the arm. 700 MHz is the default. arm_freq=700 start_x=1 gpu_mem=128 core_freq=250 sdram_freq=400 over_voltage=0 dtparam=spi=on dtoverlay=waveshare35a #dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=1,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900 dtparam=i2c_arm=on dtoverlay=w1-gpio-pullup,gpiopin=4,extpullup=1
/use/share/X11/xorg.conf.d/99-fbturbo.conf:
Section "Device" Identifier "Allwinner A10/A13 FBDEV" Driver "fbturbo" Option "fbdev" "/dev/fb1" Option "SwapbuffersWait" "true" EndSection
ls /boot/overlays/:
adau1977-adc.dtbo dwc-otg.dtbo i2c-gpio.dtbo mcp23s17.dtbo pitft35-resistive.dtbo sc16is750-i2c.dtbo spi2-2cs.dtbo ads1015.dtbo enc28j60.dtbo i2c-mux.dtbo mcp2515-can0.dtbo pps-gpio.dtbo sc16is752-spi1.dtbo spi2-3cs.dtbo ads7846.dtbo enc28j60-spi2.dtbo i2c-pwm-pca9685a.dtbo mcp2515-can1.dtbo pwm-2chan.dtbo sdhost.dtbo spi-gpio35-39.dtbo akkordion-iqdacplus.dtbo gpio-ir.dtbo i2c-rtc.dtbo mmc.dtbo pwm.dtbo sdio-1bit.dtbo spi-rtc.dtbo allo-piano-dac-pcm512x-audio.dtbo gpio-poweroff.dtbo i2c-sensor.dtbo mz61581.dtbo qca7000.dtbo sdio.dtbo tinylcd35.dtbo at86rf233.dtbo hifiberry-amp.dtbo i2s-gpio28-31.dtbo pi3-act-led.dtbo raspidac3.dtbo sdtweak.dtbo uart1.dtbo audioinjector-wm8731-audio.dtbo hifiberry-dac.dtbo i2s-mmap.dtbo pi3-disable-bt.dtbo README smi-dev.dtbo vc4-fkms-v3d.dtbo audremap.dtbo hifiberry-dacplus.dtbo iqaudio-dac.dtbo pi3-miniuart-bt.dtbo rpi-backlight.dtbo smi.dtbo vc4-kms-v3d.dtbo bmp085_i2c-sensor.dtbo hifiberry-digi.dtbo iqaudio-dacplus.dtbo piscreen2r.dtbo rpi-dac.dtbo smi-nand.dtbo vga666.dtbo dht11.dtbo hifiberry-digi-pro.dtbo iqaudio-digi-wm8804-audio.dtbo piscreen.dtbo rpi-display.dtbo spi0-hw-cs.dtbo w1-gpio.dtbo dionaudio-loco.dtbo hy28a.dtbo justboom-dac.dtbo pisound.dtbo rpi-ft5406.dtbo spi1-1cs.dtbo w1-gpio-pullup.dtbo dpi18.dtbo hy28b.dtbo justboom-digi.dtbo pitft22.dtbo rpi-proto.dtbo spi1-2cs.dtbo waveshare35a-overlay.dtb dpi24.dtbo i2c0-bcm2708.dtbo lirc-rpi.dtbo pitft28-capacitive.dtbo rpi-sense.dtbo spi1-3cs.dtbo wittypi.dtbo dwc2.dtbo i2c1-bcm2708.dtbo mcp23017.dtbo pitft28-resistive.dtbo rra-digidac1-wm8741-audio.dtbo spi2-1cs.dtbo
/etc/X11/xorg.conf.d/99-calibration.conf:
Section "InputClass" Identifier "calibration" MatchProduct "ADS7846 Touchscreen" Option "Calibration" "3932 300 294 3801" Option "SwapAxes" "1" EndSection
/var/syslog:
... Feb 27 20:57:09 systemd-modules-load[104]: Failed to find module 'flexfb regwidth=16 nobacklight init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3 width=480 height=320' Feb 27 20:57:09 systemd-modules-load[104]: Failed to find module 'fbtft_device name=flexfb speed=16000000 gpios=reset:25,dc:24' ... Feb 27 20:57:09 systemd[1]: Reached target Sockets. Feb 27 20:57:09 kernel: [ 3.917851] input: ADS7846 Touchscreen as /devices/platform/soc/3f204000.spi/spi_master/spi0/spi0.1/input/input3 Feb 27 20:57:09 kernel: [ 3.980434] fbtft: module is from the staging directory, the quality is unknown, you have been warned. Feb 27 20:57:09 kernel: [ 3.996043] fb_ili9486: module is from the staging directory, the quality is unknown, you have been warned. Feb 27 20:57:09 systemd[1]: Starting Basic System. Feb 27 20:57:09 kernel: [ 3.996920] fbtft_of_value: regwidth = 16 Feb 27 20:57:09 kernel: [ 3.996941] fbtft_of_value: buswidth = 8 Feb 27 20:57:09 systemd[1]: Reached target Basic System. Feb 27 20:57:09 kernel: [ 3.996953] fbtft_of_value: debug = 0 Feb 27 20:57:09 kernel: [ 3.996963] fbtft_of_value: rotate = 90 Feb 27 20:57:09 kernel: [ 3.996973] fbtft_of_value: fps = 30 ...
If something is missing let me know. Maybe its just some missing configuration. I hope some can help me with this.
Thanks in advance.
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.