goodtft / LCD-show

2.4" 2.8"3.2" 3.5" 5.0" 7.0" TFT LCD driver for the Raspberry PI 3B+/A/A+/B/B+/PI2/ PI3/ZERO/ZERO W
2.3k stars 787 forks source link

weird screen after reboot #246

Open coc opened 4 years ago

coc commented 4 years ago

Hello, I have a 5 inch capacitive HDMI touch screen bought on eBay that is connected to a Raspberry Pi 4 of the first series.

The problem is that after rebooting the RPI (sudo reboot -h), the screen shows weird (not always, but most), but when I unplug the USB connector coming from the CTOUCH port and plug it in again, the screen displays the content correctly. The HDMI cable is plugged in at the first HDMI connector which is right from USB-C socket.

Raspian buster is running (5.4.51-v7l+ #1333 SMP). The RPI power supply is the original 3A. No other hardware is connected. I used LCD-5-show and played a lot with the parameters.

sudo tvservice -s state 0x6 [DVI DMT (87) RGB full 15:9], 800x480 @ 59.00Hz, progressive

/boot/config.txt

IMG_0660

IMG_0661

coc commented 4 years ago

I temporary fixed it with adding a shell script which powers the usb off and on:

/home/pi/restart_usb.sh :

!/bin/sh

sleep 1 sudo uhubctl -l 1-1 -a 0 sleep 1 sudo uhubctl -l 1-1 -a 1

**/etc/xdg/lxsession/LXDE-pi/autostart:

@lxpanel --profile LXDE-pi @pcmanfm --desktop --profile LXDE-pi @xscreensaver -no-splash @point-rpi @unclutter -idle 0 @python3 /home/pi/myprogram.py @xset s noblank @xset s off @xset -dpms @sh /home/pi/restart_usb.sh

I see some errors:

[ 7.669608] input: Fondar Fondar USB Touch 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:0483:5750.0001/input/input1 [ 7.670041] hid-multitouch 0003:0483:5750.0001: input,hidraw0: USB HID v1.10 Device [Fondar Fondar USB Touch] on usb-0000:01:00.0-1.3/input0 [ 7.694918] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 7.767883] brcmfmac: F1 signature read @0x18000000=0x15264345 [ 7.789352] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6 [ 7.790871] usbcore: registered new interface driver brcmfmac [ 7.812844] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2 [ 8.062180] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6 [ 8.077055] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar 23 2020 02:19:54 version 7.45.206 (r725000 CY) FWID 01-88ee44ea [ 8.303468] ads7846 spi0.1: spi0.1 supply vcc not found, using dummy regulator [ 8.304034] ads7846 spi0.1: touchscreen, irq 57 [ 8.306198] input: ADS7846 Touchscreen as /devices/platform/soc/fe204000.spi/spi_master/spi0/spi0.1/input/input2 [ 9.750769] random: crng init done [ 9.750786] random: 7 urandom warning(s) missed due to ratelimiting [ 9.820613] uart-pl011 fe201000.serial: no DMA platform data [ 10.031151] 8021q: 802.1Q VLAN Support v1.8 [ 10.229714] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS [ 10.402562] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled [ 10.748026] bcmgenet: Skipping UMAC reset [ 10.750790] bcmgenet fd580000.ethernet: configuring instance for external RGMII [ 10.753864] bcmgenet fd580000.ethernet eth0: Link is Down [ 15.852499] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 16.593953] Bluetooth: Core ver 2.22 [ 16.594029] NET: Registered protocol family 31 [ 16.594042] Bluetooth: HCI device and connection manager initialized [ 16.594076] Bluetooth: HCI socket layer initialized [ 16.594094] Bluetooth: L2CAP socket layer initialized [ 16.594123] Bluetooth: SCO socket layer initialized [ 16.602764] Bluetooth: HCI UART driver ver 2.3 [ 16.602781] Bluetooth: HCI UART protocol H4 registered [ 16.602867] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 16.603137] Bluetooth: HCI UART protocol Broadcom registered [ 16.779345] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 16.779352] Bluetooth: BNEP filters: protocol multicast [ 16.779364] Bluetooth: BNEP socket layer initialized [ 16.819172] Bluetooth: RFCOMM TTY layer initialized [ 16.819187] Bluetooth: RFCOMM socket layer initialized [ 16.819204] Bluetooth: RFCOMM ver 1.11 [ 21.215469] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled [ 24.587967] fuse: init (API version 7.31) [ 28.011614] usb 1-1.3: USB disconnect, device number 3 [ 28.589518] usb 1-1.3: new full-speed USB device number 4 using xhci_hcd [ 28.726596] usb 1-1.3: New USB device found, idVendor=0483, idProduct=5750, bcdDevice= 2.00 [ 28.726607] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 28.726613] usb 1-1.3: Product: Fondar USB Touch [ 28.726619] usb 1-1.3: Manufacturer: Fondar [ 28.726626] usb 1-1.3: SerialNumber: 00000000001A [ 28.736258] input: Fondar Fondar USB Touch 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:0483:5750.0002/input/input3 [ 28.736549] hid-multitouch 0003:0483:5750.0002: input,hidraw0: USB HID v1.10 Device [Fondar Fondar USB Touch] on usb-0000:01:00.0-1.3/input0

Anybody got a better idea?