Hi,
I face similar issues with an older JoyIt display (TFT 3.2) touch display.
My setup is as follows: Raspberry Pi 4 with latest OS 64bit light installed. Respective drivers for the TFT installed and working (checked by using the fbi tool to show images. On hdmi0 I have a Samsung LED Screen (/dev/fb0) and the TFT is configured to be /dev/fb1.
Kodi also installed. I post my config.txt below for easier reading.
What I want to achieve is to use the Raspberry as a Mediaplayer and the additional TFT to show additional information using KodiDisplayInfo.
Currently I have installed python3 and pygame 2.1.2 and used the following python script for testing:
My first impression was that the script did not worked at all (while running kodi on the main display fb0). But exiting kodi showed that the image was just shown on the main screen instead of the TFT regardless which device I set in SDL_FBDEV.
I managed to update the pygame module t 2.5.2 with above hints but then the script did not work anymore - print(pygame.display.get_driver()) says "offscreen". So I reverted back to 2.1.2 for now.
As the fbi tool can indeed display images on both devices fb0 and fb1 I assume there must be something broken in the pygame module.
Experimenting with switching off dtparam=i2s and dtparam=spi which I found in some other thread also did not help.
Does anybody have soime hint here?
Kind regards,
Stephan
Here my current config.txt:
I face similar issues with an older JoyIt display (TFT 3.2) touch display.
My setup is as follows: Raspberry Pi 4 with latest OS 64bit light installed. Respective drivers for the TFT installed and working (checked by using the fbi tool to show images. On hdmi0 I have a Samsung LED Screen (/dev/fb0) and the TFT is configured to be /dev/fb1.
Kodi also installed. I post my config.txt below for easier reading.
What I want to achieve is to use the Raspberry as a Mediaplayer and the additional TFT to show additional information using KodiDisplayInfo.
Currently I have installed python3 and pygame 2.1.2 and used the following python script for testing:
Code:
#!/usr/bin/python# -*- coding: iso-8859-1 -*-# Source: http://inventwithpython.com/drawing.pyimport osimport sysimport copyimport pygamefrom PIL import Imagefrom time import sleepfrom pygame.locals import *def main(): os.putenv('SDL_FBDEV','/dev/fb1') os.environ["SDL_FBDEV"] = "/dev/fb1" pygame.init() pygame.display.init() screen = pygame.display.set_mode((320, 240)) screen.fill((0, 0, 0)) pygame.display.update() pygame.draw.line(screen, (30,80,200),[100,270],[200,319],2) pygame.display.update() while True: passif __name__ == '__main__': main()
I managed to update the pygame module t 2.5.2 with above hints but then the script did not work anymore - print(pygame.display.get_driver()) says "offscreen". So I reverted back to 2.1.2 for now.
As the fbi tool can indeed display images on both devices fb0 and fb1 I assume there must be something broken in the pygame module.
Experimenting with switching off dtparam=i2s and dtparam=spi which I found in some other thread also did not help.
Does anybody have soime hint here?
Kind regards,
Stephan
Here my current config.txt:
Code:
# For more options and information see# http://rptl.io/configtxt# Some settings may impact device functionality. See link above for details# Uncomment some or all of these to enable the optional hardware interfacesdtparam=i2c_arm=ondtparam=i2s=ondtparam=spi=ondtoverlay=joy-IT-Display-Driver-32b-overlay:rotate=270,swapxy=1framebuffer_priority=2dtparam=audio=onmax_usb_current=1hdmi_force_hotplug=1hdmi_drive=2display_default_lcd=0# Enable audio (loads snd_bcm2835)dtparam=audio=on# Additional overlays and parameters are documented# /boot/firmware/overlays/README# Automatically load overlays for detected camerascamera_auto_detect=1# Automatically load overlays for detected DSI displaysdisplay_auto_detect=1# Automatically load initramfs files, if foundauto_initramfs=1# Enable DRM VC4 V3D driverdtoverlay=vc4-kms-v3dmax_framebuffers=2 # Don't have the firmware create an initial video= setting in cmdline.txt.# Use the kernel's default instead.disable_fw_kms_setup=1# Run in 64-bit modearm_64bit=1# Disable compensation for displays with overscan#disable_overscan=1# Run as fast as firmware / board allowsarm_boost=1[cm4]# Enable host mode on the 2711 built-in XHCI USB controller.# This line should be removed if the legacy DWC2 controller is required# (e.g. for USB device mode) or if USB support is not required.otg_mode=1[all]hdmi_enable_4kp60=1
Statistics: Posted by VisualDigits — Mon Feb 12, 2024 8:15 pm