Announcement

Collapse
No announcement yet.

Touch screen problem on PiCore (bug/ just some tslib setting?)

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • #16
    Hi Paul
    lsmod as follows:
    Module Size Used by
    snd_soc_tpa6130a2 16384 1
    snd_soc_pcm512x_i2c 16384 1
    snd_soc_pcm512x 32768 1 snd_soc_pcm512x_i2c
    regmap_i2c 16384 2 snd_soc_tpa6130a2,snd_soc_pcm512x_i2c
    snd_soc_bcm2835_i2s 16384 2
    snd_soc_hifiberry_dacplus 16384 1
    snd_soc_core 237568 4 snd_soc_pcm512x,snd_soc_hifiberry_dacplus,snd_soc_ bcm2835_i2s,snd_soc_tpa6130a2
    snd_compress 20480 1 snd_soc_core
    raspberrypi_hwmon 16384 0
    snd_pcm_dmaengine 16384 1 snd_soc_core
    snd_pcm 122880 7 snd_compress,snd_soc_pcm512x,snd_pcm_dmaengine,snd _soc_hifiberry_dacplus,snd_soc_bcm2835_i2s,snd_soc _core
    snd_timer 36864 1 snd_pcm
    snd 86016 6 snd_compress,snd_soc_pcm512x,snd_timer,snd_soc_cor e,snd_pcm
    i2c_bcm2835 16384 0
    clk_hifiberry_dacpro 16384 1
    squashfs 45056 47
    zram 28672 2
    zsmalloc 28672 1 zram
    framebuffers as follows:

    framebuffer_width=800
    framebuffer_height=480​

    maybe should be usefull:
    -----pcp.tcz
    |-----pcp-base.tcz
    |-----alsa.tcz
    | |-----libasound.tcz
    | | |-----alsa-modules-5.15.35-pcpCore-v7l.tcz
    |-----alsa-utils.tcz
    | |-----libasound.tcz
    | | |-----alsa-modules-5.15.35-pcpCore-v7l.tcz
    | |-----ncurses.tcz
    |-----openssh.tcz
    | |-----openssl.tcz
    | | |-----ca-certificates.tcz
    |-----dialog.tcz
    | |-----ncurses.tcz
    |-----rng-tools.tcz
    | |-----sysfsutils.tcz
    | |-----openssl.tcz
    | | |-----ca-certificates.tcz
    |-----pcp-squeezelite.tcz
    | |-----pcp-libmpg123.tcz
    | | |-----libasound.tcz
    | | | |-----alsa-modules-5.15.35-pcpCore-v7l.tcz
    | |-----pcp-libfaad2.tcz
    | |-----pcp-libsoxr.tcz
    | |-----pcp-libmad.tcz
    | |-----pcp-libvorbis.tcz
    | | |-----pcp-libogg.tcz
    | |-----pcp-libflac.tcz
    | | |-----pcp-libvorbis.tcz
    | | | |-----pcp-libogg.tcz
    | |-----pcp-libopus.tcz
    | | |-----pcp-libogg.tcz
    | |-----pcp-libalac.tcz
    | |-----openssl.tcz
    | | |-----ca-certificates.tcz
    | |-----libasound.tcz
    | | |-----alsa-modules-5.15.35-pcpCore-v7l.tcz

    -----pcp-8.2.0-www.tcz

    -----nano.tcz
    |-----file.tcz
    | |-----liblzma.tcz
    | |-----bzip2-lib.tcz
    |-----ncurses-terminfo.tcz
    | |-----ncurses.tcz

    -----touchscreen-5.15.35-pcpCore-v7l.tcz
    |-----graphics-5.15.35-pcpCore-v7l.tcz

    -----libts.tcz

    -----pcp-jivelite.tcz
    |-----touchscreen-5.15.35-pcpCore-v7l.tcz
    | |-----graphics-5.15.35-pcpCore-v7l.tcz
    |-----libts.tcz
    |-----pcp-lua.tcz
    | |-----pcp-lirc.tcz
    | | |-----media-rc-5.15.35-pcpCore-v7l.tcz
    | | |-----libasound.tcz
    | | | |-----alsa-modules-5.15.35-pcpCore-v7l.tcz
    |-----pcp-jivelite_hdskins.tcz

    Comment


    • #17
      Hi,
      sorry for hopping onto this thread, but I am experiencing the same problem with a WIMAXIT 7" Touchscreen (1024X600IPS). I suppose it's the same hardware.
      Same symptoms, i.e.:
      - touch function works out-of-the-box with Raspbian Buster
      - Jivelite works ok with an attached USB mouse
      - tc_calibrate fails with:
      Code:
      xres = 1024, yres = 600
      Took 1 samples...
      Top left : X = 1024 Y = 600
      Took 1 samples...
      Top right : X = 1024 Y = 600
      Took 1 samples...
      Bot right : X = 1024 Y = 600
      Took 1 samples...
      Bot left : X = 1024 Y = 600
      Took 1 samples...
      Center : X = 1024 Y = 600
      ts_calibrate: determinant is too small -- 0.000000
      Calibration failed.​
      As far as I observe, the lower right corner of the screen is responsive to touching. The vendor states that you have to add the following to config.txt (what I did):
      Code:
      hdmi_force_edid_audio=1
      max_usb_current=1
      hdmi_force_hotplug=1
      config_hdmi_boost=7
      hdmi_group=2
      hdmi_mode=87
      hdmi_drive=2
      display_rotate=0
      hdmi_cvt 1024 600 60 6 0 0 0
      ​
      I've tried all the work-arounds I could find on the web - there seem to be more people with this problem, all of them only with piCore/tinycore/PCP.
      So I'm very interested in a possible solution, as the screen seems really great.
      Best regards
      Martin
      PCP (always latest version) on RasPi 3 with PhatDac (player & server)
      PCP on several RasPis 2 +3
      2 Airplay speakers (Sony SA-NS510) integrated via Airplay Bridge Plugin

      Comment


      • #18
        I don’t see a touch kernel module loaded. Can you boot your system, then plug in the touch cable……then post the tail end of dmesg.
        piCorePlayer a small player for the Raspberry Pi in RAM.
        Homepage: https://www.picoreplayer.org

        Please donate if you like the piCorePlayer

        Comment


        • #19
          Sorry Paul,
          possibly I did before something wrong, did you mean vc_sm_cma 32768?
          lsmod now is:

          Module Size Used by
          snd_soc_tpa6130a2 16384 1
          snd_soc_pcm512x_i2c 16384 1
          snd_soc_pcm512x 32768 1 snd_soc_pcm512x_i2c
          regmap_i2c 16384 2 snd_soc_tpa6130a2,snd_soc_pcm512x_i2c
          snd_soc_hifiberry_dacplus 16384 1
          brcmfmac 335872 0
          brcmutil 24576 1 brcmfmac
          cfg80211 790528 1 brcmfmac
          snd_soc_bcm2835_i2s 16384 2
          snd_soc_core 237568 4 snd_soc_pcm512x,snd_soc_hifiberry_dacplus,snd_soc_ bcm2835_i2s,snd_soc_tpa6130a2
          rfkill 32768 2 cfg80211
          i2c_bcm2835 16384 0
          snd_compress 20480 1 snd_soc_core
          snd_pcm_dmaengine 16384 1 snd_soc_core
          raspberrypi_hwmon 16384 0
          snd_bcm2835 28672 0
          vc_sm_cma 32768 0
          snd_pcm 122880 8 snd_compress,snd_soc_pcm512x,snd_pcm_dmaengine,snd _soc_hifiberry_dacplus,snd_soc_bcm2835_i2s,snd_bcm 2835,snd_soc_core
          snd_timer 36864 1 snd_pcm
          snd 86016 7 snd_compress,snd_soc_pcm512x,snd_timer,snd_bcm2835 ,snd_soc_core,snd_pcm
          clk_hifiberry_dacpro 16384 1
          squashfs 45056 45
          zram 28672 2
          zsmalloc 28672 1 zram
          ​​
          Last edited by kjansik; 2023-04-09, 15:09.

          Comment


          • #20
            Code:
            tc@pCP:~$ dmesg
            [    0.000000] Booting Linux on physical CPU 0x0
            [    0.000000] Linux version 5.15.35-pcpCore-v7 (pCP@SoundStation) (arm-bcm2709hf-linux-gnueabihf-gcc (crosstool-NG 1.24.0.351_511442b) 10.3.0, GNU ld (crosstool-NG 1.24.0.351_511442b) 2.34) #1 SMP Tue Apr 26 22:54:19 EDT 2022
            
            [...deleted due to char limit in this forum]
            
            ...
            [    0.926723] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
            [    0.926732] io scheduler mq-deadline registered
            [    0.926739] io scheduler kyber registered
            [    0.930056] bcm2708_fb soc:fb: FB found 1 display(s)
            [    0.935075] Console: switching to colour frame buffer device 128x37
            [    0.937952] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 1024x600
            [    0.940181] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
            [    0.941276] bcm2835-rng 3f104000.rng: hwrng registered
            [    0.941521] vc-mem: phys_addr:0x00000000 mem_base=0x3f000000 mem_size:0x3f600000(1014 MiB)
            [    0.942151] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
            [    0.949050] brd: module loaded
            [    0.954271] loop: module loaded
            [    0.954658] Loading iSCSI transport class v2.0-870.
            [    0.955772] usbcore: registered new interface driver lan78xx
            [    0.955811] usbcore: registered new interface driver smsc95xx
            [    0.955824] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
            [    1.683733] Core Release: 2.80a
            [    1.683744] Setting default values for core params
            [    1.683762] Finished setting default values for core params
            [    1.883958] Using Buffer DMA mode
            [    1.883965] Periodic Transfer Interrupt Enhancement - disabled
            [    1.883971] Multiprocessor Interrupt Enhancement - disabled
            [    1.883978] OTG VER PARAM: 0, OTG VER FLAG: 0
            [    1.884003] Dedicated Tx FIFOs mode
            [    1.884473]
            [    1.884479] WARN::dwc_otg_hcd_init:1072: FIQ DMA bounce buffers: virt = ba504000 dma = 0xfa504000 len=9024
            [    1.884504] FIQ FSM acceleration enabled for :
            [    1.884504] Non-periodic Split Transactions
            [    1.884504] Periodic Split Transactions
            [    1.884504] High-Speed Isochronous Endpoints
            [    1.884504] Interrupt/Control Split Transaction hack enabled
            [    1.884514] dwc_otg: Microframe scheduler enabled
            [    1.884583]
            [    1.884586] WARN::hcd_init_fiq:457: FIQ on core 1
            [    1.884593]
            [    1.884595] WARN::hcd_init_fiq:458: FIQ ASM at 80814c08 length 36
            [    1.884604]
            [    1.884606] WARN::hcd_init_fiq:496: MPHI regs_base at be810000
            [    1.884621] dwc_otg 3f980000.usb: DWC OTG Controller
            [    1.884644] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
            [    1.884671] dwc_otg 3f980000.usb: irq 89, io mem 0x00000000
            [    1.884730] Init: Port Power? op_state=1
            [    1.884737] Init: Power Port (0)
            [    1.884929] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
            [    1.884941] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
            [    1.884951] usb usb1: Product: DWC OTG Controller
            [    1.884959] usb usb1: Manufacturer: Linux 5.15.35-pcpCore-v7 dwc_otg_hcd
            [    1.884968] usb usb1: SerialNumber: 3f980000.usb
            [    1.885385] hub 1-0:1.0: USB hub found
            [    1.885420] hub 1-0:1.0: 1 port detected
            [    1.885865] dwc_otg: FIQ enabled
            [    1.885872] dwc_otg: NAK holdoff enabled
            [    1.885878] dwc_otg: FIQ split-transaction FSM enabled
            [    1.885888] Module dwc_common_port init
            [    1.886064] usbcore: registered new interface driver usb-storage
            [    1.886195] mousedev: PS/2 mouse device common for all mice
            [    1.887940] sdhci: Secure Digital Host Controller Interface driver
            [    1.887948] sdhci: Copyright(c) Pierre Ossman
            [    1.888175] sdhci-pltfm: SDHCI platform and OF driver helper
            [    1.889918] ledtrig-cpu: registered to indicate activity on CPUs
            [    1.890094] hid: raw HID events driver (C) Jiri Kosina
            [    1.890180] usbcore: registered new interface driver usbhid
            [    1.890188] usbhid: USB HID core driver
            [    1.893287] Initializing XFRM netlink socket
            [    1.893316] NET: Registered PF_PACKET protocol family
            [    1.893401] Key type dns_resolver registered
            [    1.893537] Registering SWP/SWPB emulation handler
            [    1.893948] registered taskstats version 1
            [    1.893968] Loading compiled-in X.509 certificates
            [    1.894505] Key type ._fscrypt registered
            [    1.894513] Key type .fscrypt registered
            [    1.894519] Key type fscrypt-provisioning registered
            [    1.900621] uart-pl011 3f201000.serial: there is not valid maps for state default
            [    1.900749] uart-pl011 3f201000.serial: cts_event_workaround enabled
            [    1.900837] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 114, base_baud = 0) is a PL011 rev2
            [    1.902327] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
            [    1.902555] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
            [    1.903478] mmc-bcm2835 3f300000.mmcnr: mmc_debug:0 mmc_debug2:0
            [    1.903489] mmc-bcm2835 3f300000.mmcnr: DMA channel allocated
            [    1.929698] sdhost: log_buf @ (ptrval) (fa507000)
            [    1.978026] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
            [    1.999562] of_cfs_init
            [    1.999734] of_cfs_init: OK
            [    2.004328] Freeing unused kernel image (initmem) memory: 1024K
            [    2.014822] Indeed it is in host mode hprt0 = 00021501
            [    2.034923] mmc0: host does not support reading read-only switch, assuming write-enable
            [    2.037834] mmc0: new high speed SDXC card at address 59b4
            [    2.075093] Run /init as init process
            [    2.075101]   with arguments:
            [    2.075107]     /init
            [    2.075113]     nortc
            [    2.075118]     noembed
            [    2.075123]     noswap
            [    2.075129]   with environment:
            [    2.075134]     HOME=/
            [    2.075140]     TERM=linux
            [    2.075145]     tz=CET-1CEST,M3.5.0,M10.5.0/3
            [    2.075151]     host=pCP
            [    2.075157]     waitusb=2
            [    2.075537] mmcblk0: mmc0:59b4 NCard 60.1 GiB
            [    2.080131]  mmcblk0: p1 p2
            [    2.080636] mmcblk0: mmc0:59b4 NCard 60.1 GiB
            [    2.116368] mmc1: new high speed SDIO card at address 0001
            [    2.224780] usb 1-1: new high-speed USB device number 2 using dwc_otg
            [    2.224911] Indeed it is in host mode hprt0 = 00001101
            [    2.465529] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcdDevice= 2.00
            [    2.465558] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
            [    2.487662] hub 1-1:1.0: USB hub found
            [    2.487792] hub 1-1:1.0: 5 ports detected
            [    2.804740] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
            [    2.934920] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00
            [    2.934933] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
            [    2.937537] smsc95xx v2.0.0
            [    3.076521] SMSC LAN8700 usb-001:003:01: attached PHY driver (mii_bus:phy_addr=usb-001:003:01, irq=POLL)
            [    3.077047] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:fc:a6:67
            [    4.519119] zram: Added device: zram0
            [    4.525372] zram0: detected capacity change from 0 to 478736
            [    4.529488] random: mkswap: uninitialized urandom read (16 bytes read)
            [    4.533465] Adding 239364k swap on /dev/zram0.  Priority:-2 extents:1 across:239364k SSFS
            [    4.641241] squashfs: version 4.0 (2009/01/31) Phillip Lougher
            [    5.164698] EXT4-fs (mmcblk0p2): recovery complete
            [    5.168868] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
            [    5.257687] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
            [    8.630427] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
            [    8.680228] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
            [    8.680256] [vc_sm_connected_init]: start
            [    8.685387] vc_sm_cma_vchi_init: failed to open VCHI service (-1)
            [    8.685410] [vc_sm_connected_init]: failed to initialize shared memory service
            [    8.692284] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
            [    8.704351] bcm2835_audio bcm2835_audio: card created with 4 channels
            [    8.709038] bcm2835_audio bcm2835_audio: card created with 4 channels
            [    8.871579] cfg80211: Loading compiled-in X.509 certificates for regulatory database
            [    8.908364] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
            [    8.952027] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
            [    8.960976] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
            [    8.961162] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.bin failed with error -2
            [    8.962227] usbcore: registered new interface driver brcmfmac
            [    9.206027] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
            [    9.206132] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
            [    9.215902] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Jul 19 2021 03:24:18 version 7.45.98 (TOB) (56df937 CY) FWID 01-8e14b897
            [   11.456850] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
            [   11.514093] Starting piCorePlayer v8.2.0 startup.
            [   11.546987] random: crng init done
            [   11.605535] smsc95xx 1-1.1:1.0 eth0: Link is Down
            [   12.047545] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
            [   16.750251] Finished piCorePlayer v8.2.0 startup.
            [   32.474754] cam-dummy-reg: disabling
            [  166.844771] usb 1-1.3: new full-speed USB device number 4 using dwc_otg
            [  166.984544] usb 1-1.3: config 1 interface 0 altsetting 0 has 2 endpoint descriptors, different from the interface descriptor's value: 1
            [  166.994040] usb 1-1.3: New USB device found, idVendor=0484, idProduct=5750, bcdDevice= 2.00
            [  166.994066] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
            [  166.994085] usb 1-1.3: Product: MPI7003
            [  166.994101] usb 1-1.3: Manufacturer: QDtech
            [  166.994117] usb 1-1.3: SerialNumber: MPI7003അЉơƅ∉ʡ䈉
            [  167.034909] input: QDtech MPI7003 Touchscreen as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:0484:5750.0001/input/input0
            [  167.105599] hid-generic 0003:0484:5750.0001: input,hiddev96,hidraw0: USB HID v1.01 Device [QDtech MPI7003] on usb-3f980000.usb-1.3/input0
            ​
            PCP (always latest version) on RasPi 3 with PhatDac (player & server)
            PCP on several RasPis 2 +3
            2 Airplay speakers (Sony SA-NS510) integrated via Airplay Bridge Plugin

            Comment


            • #21
              So it is just USB HID device. Should be cut and dry. Pretty sure that is similar to a 10.1 IPS screen that I have. Not sure I ever ran with jivelite on that screen.....but I'll take a look

              Unfortunately, I'm getting ready to head out of town for a few days. But when I get back, I will.
              piCorePlayer a small player for the Raspberry Pi in RAM.
              Homepage: https://www.picoreplayer.org

              Please donate if you like the piCorePlayer

              Comment


              • #22
                Hi Paul,
                somebody did it already, anyway tail of my dmesg you will find below:

                Code:
                [   
                [   31.204258] cam-dummy-reg: disabling
                [   62.834310] usb 1-1.3: new full-speed USB device number 3 using xhci_hcd
                [   62.968847] usb 1-1.3: config 1 interface 0 altsetting 0 has 2 endpoint descriptors, different from the interface descriptor's value: 1
                [   62.972598] usb 1-1.3: New USB device found, idVendor=0484, idProduct=5750, bcdDevice= 2.00
                [   62.972622] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
                [   62.972642] usb 1-1.3: Product: MPI7003
                [   62.972658] usb 1-1.3: Manufacturer: QDtech
                [   62.972674] usb 1-1.3: SerialNumber: MPI7003അЉơƅ∉ʡ䈉
                [   62.995691] input: QDtech MPI7003 Touchscreen as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:0484:5750.0001/input/input0
                [   63.064913] hid-generic 0003:0484:5750.0001: input,hiddev96,hidraw0: USB HID v1.01 Device [QDtech MPI7003] on usb-0000:01:00.0-1.3/input0​

                Comment


                • #23
                  Originally posted by paul-
                  So it is just USB HID device. Should be cut and dry. Pretty sure that is similar to a 10.1 IPS screen that I have. Not sure I ever ran with jivelite on that screen.....but I'll take a look

                  Unfortunately, I'm getting ready to head out of town for a few days. But when I get back, I will.
                  No hurry, thanks for caring
                  PCP (always latest version) on RasPi 3 with PhatDac (player & server)
                  PCP on several RasPis 2 +3
                  2 Airplay speakers (Sony SA-NS510) integrated via Airplay Bridge Plugin

                  Comment


                  • #24
                    Originally posted by paul-
                    So it is just USB HID device. Should be cut and dry. Pretty sure that is similar to a 10.1 IPS screen that I have. Not sure I ever ran with jivelite on that screen.....but I'll take a look

                    Unfortunately, I'm getting ready to head out of town for a few days. But when I get back, I will.
                    Should be cut and dry - glad to hear it! Thanks in advance.

                    Comment


                    • #25
                      My screen is a 10.1 1280x800 screen, I had no problems using at 1280x800 or 800x480 (Both resolutions have a good skin available). It is using a USB touch interface, but a different brand
                      Code:
                      ​[ 4.293828] usb 1-1.1.3: New USB device found, idVendor=0416, idProduct=c168, bcdDevice= 0.00
                      [ 4.293889] usb 1-1.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
                      [ 4.293933] usb 1-1.1.3: Product: MTouch
                      [ 4.293965] usb 1-1.1.3: Manufacturer: TSTP
                      This is on a pi3b+, running pCP 8.2

                      This is the added stuff to config.txt. Make sure to set both frame buffer size and hdmi size. No problems with ts_calibrate or test. No modifications to tslib.conf
                      Code:
                      framebuffer_width=800
                      framebuffer_height=480
                      ​dtoverlay=vc4-kms-v3d,audio
                      hdmi_cvt=800 480 60 6
                      hdmi_group=2
                      hdmi_mode=87
                      hdmi_drive=2
                      ​
                      I'll have to reconfigure with a pi4 to see if there are any differences.

                      piCorePlayer a small player for the Raspberry Pi in RAM.
                      Homepage: https://www.picoreplayer.org

                      Please donate if you like the piCorePlayer

                      Comment


                      • #26
                        On the pi4, its a bit trickier, in that you have to also tell jivelite to what resolution you want. Set it on the tweaks page. Then edit your config.

                        But it worked fine at 800x480 and 1280x800
                        Code:
                        framebuffer_width=800
                        framebuffer_height=480
                        ​dtoverlay=vc4-kms-v3d-pi4,audio
                        hdmi_cvt=800 480 60 6
                        hdmi_group=2
                        hdmi_mode=87
                        hdmi_drive=2​
                        Code:
                        framebuffer_width=1280
                        framebuffer_height=800
                        ​dtoverlay=vc4-kms-v3d-pi4,audio
                        hdmi_cvt=1280 800 60 5
                        hdmi_group=2
                        hdmi_mode=87
                        hdmi_drive=2​

                        When running ts_calibrate run fbset to verify the correct resolution is shown. When using the 1280x800 resolution it wanted to run in 800x600 mode. As long as your config.txt is set correctly, then use
                        Code:
                        sudo fbset -xres xxxx -yres yyyy
                        to set the resolution before running ts_calibrate

                        PS, if your are not using HDMI audio, I would probably change to noaudio when loading the vc4 driver. Also, you should check your cvt data against tables on the rpi pages to make sure they are valid. If you don't use a valid setting, the pi4 will ignore your values. https://www.raspberrypi.com/document...#video-options
                        piCorePlayer a small player for the Raspberry Pi in RAM.
                        Homepage: https://www.picoreplayer.org

                        Please donate if you like the piCorePlayer

                        Comment


                        • #27
                          Many thanks Paul! Now it‘s me who is away from home. I‘ll try your suggestions asap.
                          Best regards
                          Martin
                          PCP (always latest version) on RasPi 3 with PhatDac (player & server)
                          PCP on several RasPis 2 +3
                          2 Airplay speakers (Sony SA-NS510) integrated via Airplay Bridge Plugin

                          Comment


                          • #28
                            I've just tried with the display attached to a Pi3 with with the setting you've suggested. Same result as before:
                            Code:
                            tc@pCP:~$ sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event0 /usr/loc
                            al/bin/ts_calibrate
                            xres = 800, yres = 480
                            Took 1 samples...
                            Top left : X = 1024 Y =  600
                            Took 1 samples...
                            Top right : X = 1024 Y =  600
                            Took 1 samples...
                            Bot right : X = 1024 Y =  600
                            Took 1 samples...
                            Bot left : X = 1024 Y =  600
                            Took 1 samples...
                            Center : X = 1024 Y =  600
                            ts_calibrate: determinant is too small -- 0.000000
                            Calibration failed.​
                            Here is my config.txt:
                            Code:
                            # For more options and information seee
                            # http://rpf.io/configtxt
                            # Some settings may impact device functionality. See link above for details
                            
                            [PI0]
                            initramfs rootfs-pCP-13.2.gz,modules-5.15.35-pcpCore.gz followkernel
                            kernel kernel51535.img
                            
                            [PI02]
                            initramfs rootfs-pCP-13.2.gz,modules-5.15.35-pcpCore-v7.gz followkernel
                            kernel kernel51535v7.img
                            
                            [PI1]
                            initramfs rootfs-pCP-13.2.gz,modules-5.15.35-pcpCore.gz followkernel
                            kernel kernel51535.img
                            
                            [PI2]
                            initramfs rootfs-pCP-13.2.gz,modules-5.15.35-pcpCore-v7.gz followkernel
                            kernel kernel51535v7.img
                            
                            [PI3]
                            initramfs rootfs-pCP-13.2.gz,modules-5.15.35-pcpCore-v7.gz followkernel
                            kernel kernel51535v7.img
                            
                            [PI4]
                            initramfs rootfs-pCP-13.2.gz,modules-5.15.35-pcpCore-v7l.gz followkernel
                            kernel kernel51535v7l.img
                            
                            [CM4]
                            otg_mode=1
                            
                            [ALL]
                            
                            cmdline cmdline.txt
                            
                            # 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=800
                            framebuffer_height=480
                            
                            # uncomment if hdmi display is not detected and composite is being output
                            
                            # uncomment to force a specific HDMI mode (this will force VGA)
                            hdmi_group=2
                            hdmi_mode=87
                            
                            # uncomment to force a HDMI mode rather than DVI. This can make audio work in
                            # DMT (computer monitor) modes
                            
                            # 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
                            
                            #----------------------------------------------------
                            dtparam=i2c_arm=on,i2s=on
                            
                            #---pCP----------------------------------------------
                            # pCP does not use graphics chip by default, free up most memory
                            gpu_mem=16
                            initial_turbo=60
                            
                            # onboard audio overlay
                            dtparam=audio=on
                            audio_pwm_mode=2
                            
                            # For Jivelite use with HDMI screens
                            # Comment out the lines above
                            #   gpu_mem=xx
                            #   dtparam=audio=on
                            # Then uncomment the following line.
                            dtoverlay=vc4-kms-v3d,audio
                            #
                            
                            #Disable Bluetooth on both rpi3 and rpi0W
                            dtoverlay=disable-bt
                            
                            # uncomment to overclock the arm. 700 MHz is the default.
                            #arm_freq=
                            #gpu_freq=
                            #core_freq=
                            #sdram_freq=
                            #over_voltage=
                            #force_turbo=
                            
                            # Remove audio hiss
                            # disable_audio_dither=1
                            
                            #If booting from USB or network, enable this option to reduce CPU load looking for a non-existing card.
                            #dtparam=sd_poll_once
                            
                            # Screen rotation 0 => 0 degrees, 2 => 180 degrees
                            lcd_rotate=2
                            
                            #Custom Configuration Area, for config settings that are not managed by pCP.
                            #pCP will retain these settings during insitu-update
                            #---Begin-Custom-(Do not alter Begin or End Tags)-----
                            hdmi_cvt=800 480 60 6
                            hdmi_drive=2
                            #---End-Custom----------------------------------------
                            ​
                            Am I missing some point?
                            PCP (always latest version) on RasPi 3 with PhatDac (player & server)
                            PCP on several RasPis 2 +3
                            2 Airplay speakers (Sony SA-NS510) integrated via Airplay Bridge Plugin

                            Comment


                            • #29
                              Comment out these two lines. The vc4 driver has audio control, but probably not affecting anything.
                              #dtparam=audio=on
                              #audio_pwm_mode=2

                              What is the output of typing "fbset" just before you would run ts_calibrate.

                              Then when you run ts_calibrate, do the squares show up in the 4 corners of the screen and the direct center for the 5th point.
                              piCorePlayer a small player for the Raspberry Pi in RAM.
                              Homepage: https://www.picoreplayer.org

                              Please donate if you like the piCorePlayer

                              Comment


                              • #30
                                Originally posted by paul-
                                Comment out these two lines. The vc4 driver has audio control, but probably not affecting anything.
                                #dtparam=audio=on
                                #audio_pwm_mode=2
                                ok

                                What is the output of typing "fbset" just before you would run ts_calibrate.
                                Code:
                                tc@pCP:~$ fbset
                                
                                mode "800x480-0"
                                        # D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
                                        geometry 800 480 800 480 16
                                        timings 0 0 0 0 0 0 0
                                        accel true
                                        rgba 5/11,6/5,5/0,0/0
                                endmode
                                ​
                                Then when you run ts_calibrate, do the squares show up in the 4 corners of the screen and the direct center for the 5th point.
                                They do.
                                PCP (always latest version) on RasPi 3 with PhatDac (player & server)
                                PCP on several RasPis 2 +3
                                2 Airplay speakers (Sony SA-NS510) integrated via Airplay Bridge Plugin

                                Comment

                                Working...
                                X
                                😀
                                🥰
                                🤢
                                😎
                                😡
                                👍
                                👎