project-owner / Peppy

Peppy Player Repository
GNU General Public License v3.0
72 stars 14 forks source link

Dislplаy #41

Closed AlexPtushkin closed 1 year ago

AlexPtushkin commented 1 year ago

Good afternoon, I received the display and downloaded the firmware. For some reason the display is pink. It's like there's no green. How to check the display. Need a display test program. The colors are probably inverted Best regards photo_2023-09-22_21-31-09

AlexPtushkin commented 1 year ago

photo_2023-09-22_21-38-06

AlexPtushkin commented 1 year ago

Updated the display driver, peppy stopped loading git clone https://github.com/waveshare/LCD-show.git .cd LCD-show / Если это драйвер старой версии, выполните следующий код: sudo ./LCD35B-show

Displays on the screen photo_2023-09-22_23-25-36

AlexPtushkin commented 1 year ago

The colors are normal, but it won’t load any further and is stuck after restart photo_2023-09-23_00-46-33

project-owner commented 1 year ago

Hi, according to the log it looks like some Bluetooth issue similar to this one: https://github.com/Arkq/bluez-alsa/issues/394 You still should be able to connect to the Pi using SSH. Which display do you use and which disk image?

AlexPtushkin commented 1 year ago

Hello,

  1. I downloaded image klimt-waveshare.3.5.img.xz
  2. launched peppy
  3. I see the display is inverted, I updated the display driver
  4. Peppy lost his bluetooth How to fix the error?

Log: [2023-09-23 11:04:31,701] {amixerutil.py:44} DEBUG - ALSA mixer name: Headphone [2023-09-23 11:04:31,789] {diskmanager.py:288} DEBUG - Started USB drive plug/unplug observer [2023-09-23 11:04:31,789] {bluetoothutil.py:101} DEBUG - Starting bluetoothctl utility... [2023-09-23 11:04:31,830] {bluetoothutil.py:105} DEBUG - bluetoothctl utility started [2023-09-23 11:04:31,883] {bluetoothutil.py:395} DEBUG - Not found paired devices [2023-09-23 11:04:31,885] {bluetoothutil.py:399} DEBUG - No data for Bluetooth device [2023-09-23 11:04:32,405] {screensaverdispatcher.py:219} DEBUG - Get screensaver slideshow [2023-09-23 11:04:32,418] {selector_events.py:53} DEBUG - Using selector: EpollSelector [2023-09-23 11:04:32,426] {webserver.py:206} DEBUG - Web Server Started [2023-09-23 11:04:32,582] {peppy.py:415} DEBUG - Audio Server Started

project-owner commented 1 year ago

What's the current state? Do you see UI? Can you control player using touchscreen?

AlexPtushkin commented 1 year ago

Peppy loads, even the interface appears. Then everything disappears and the inscription appears: pygame 1.9.4.post1 Hello from the pygame community. https://www.pygame.org/contribute.html

I tried following the instructions https://github.com/project-owner/PeppyPlayers.doc/wiki/Waveshare-3.5-(B)

After updating LСD the problem appears. git clone https://github.com/waveshare/LCD-show.git cd LCD-show / sudo ./LCD35-show

The browser interface works without problems. The archive klimt-waveshare.3.5.img.xz was made for the old version of the display. They don't produce this one now. We need to correct the mistake.

project-owner commented 1 year ago

Can you disable Bluetooth using Web UI and restart the player? If it helps try to setup Bluetooth again.

AlexPtushkin commented 1 year ago
  1. deployed the image klimt-waveshare.3.5.img.xz
  2. updated the LСD driver I didn’t even set up bluetooth - the problem already appeared.

Log Peppy: [2023-09-23 13:48:10,609] {web.py:2243} INFO - 304 GET /parameters (192.168.1.6) 68.28ms [2023-09-23 13:48:10,615] {web.py:2243} INFO - 304 GET /bgr (192.168.1.6) 5.02ms [2023-09-23 13:48:10,616] {web.py:2243} INFO - 304 GET /fonts (192.168.1.6) 4.89ms [2023-09-23 13:48:10,754] {web.py:2243} INFO - 304 GET /bgr (192.168.1.6) 4.10ms [2023-09-23 13:48:10,757] {web.py:2243} INFO - 304 GET /fonts (192.168.1.6) 1.28ms [2023-09-23 13:48:10,766] {web.py:2243} INFO - 304 GET /labels?language=English-USA (192.168.1.6) 8.09ms [2023-09-23 13:48:10,773] {web.py:2243} INFO - 304 GET /bgr (192.168.1.6) 3.49ms [2023-09-23 13:48:10,777] {web.py:2243} INFO - 304 GET /fonts (192.168.1.6) 1.11ms [2023-09-23 13:48:10,818] {web.py:2243} INFO - 304 GET /fonts (192.168.1.6) 1.10ms [2023-09-23 13:52:14,498] {web.py:2243} INFO - 200 GET /timezone (192.168.1.6) 245.70ms [2023-09-23 13:52:14,520] {connectionpool.py:1052} DEBUG - Starting new HTTPS connection (1): alphacephei.com:443 [2023-09-23 13:52:14,929] {connectionpool.py:556} DEBUG - https://alphacephei.com:443 "GET /vosk/models/model-list.json HTTP/1.1" 200 None [2023-09-23 13:52:14,936] {web.py:2243} INFO - 304 GET /voiceassistant/voskmodels?language=English-USA (192.168.1.6) 435.28ms [2023-09-23 13:52:14,966] {web.py:2243} INFO - 304 GET /alsadevices (192.168.1.6) 461.55ms [2023-09-23 13:52:15,002] {diskmanager.py:46} DEBUG - [] [2023-09-23 13:52:15,004] {web.py:2243} INFO - 304 GET /diskmanager/disks (192.168.1.6) 35.51ms [2023-09-23 13:52:15,200] {web.py:2243} INFO - 304 GET /nasmanager/nases (192.168.1.6) 3.81ms [2023-09-23 13:52:15,277] {sambautil.py:88} DEBUG - Get shares [2023-09-23 13:52:15,284] {web.py:2243} INFO - 304 GET /sharefolder/shares (192.168.1.6) 7.15ms [2023-09-23 13:52:15,365] {web.py:2243} INFO - 304 GET /voiceassistant/config (192.168.1.6) 7.85ms [2023-09-23 13:52:17,102] {web.py:2243} INFO - 304 GET /playlists?language=English-USA&genre=News&folder=Genre (192.168.1.6) 7.08ms

putty (2).log

AlexPtushkin commented 1 year ago

I read: The source code contains a condition that prevents the printing of this message:

python if 'PYGAME_HIDE_SUPPORT_PROMPT' not in OS.environ: print(' with which Pygame %с' % Ver) print(' greetings from the community with which Pygame. https://www.pygame.org/contribute. html') See this commit

This was added very recently (October 2018) and until now 1.9.4 was released before then. After the next version > 1.9.4 you should just be able to run the code with PYGAME_HIDE_SUPPORT_PROMPT= ./my_code.py to hide the message.

project-owner commented 1 year ago

Can you show the content of the file /etc/rc.local after the LCD driver update?

AlexPtushkin commented 1 year ago

Screenshot_2

AlexPtushkin commented 1 year ago

I replaced rc.local.bak with rc.local and everything worked. Did I do the right thing?

project-owner commented 1 year ago

The problem is in the line 'fbcp &'. The driver installer adds that line which breaks the player functionality.

Best regards.

AlexPtushkin commented 1 year ago

If you leave sleep 7, then bluetooth does not work. Both lines need to be removed.

project-owner commented 1 year ago

I'm not sure how that delay can affect a Bluetooth. But if it helps you can remove it.

AlexPtushkin commented 1 year ago

Dear friend! Problem solved, Thank you! Best regards!

Alex