-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dadr Bullseye Branch] Unable to launch frame.py #205
Comments
So I tried switching back to the |
Hi @jakemauer, Just got back from a vacation. Thanks for trying out photoframe and providing feedback. I've been trying to get my hands on a 4B and also a Zero 2 W to work with, but have been having trouble with availability at reasonable cost. There was another person, @Decman84, who was looking at getting this to run on the 4B, but I have not heard from him for a few months. You provide some good news: that the web interface and basics seem fine on the 4B. (The current photoframe is based on stretch kernel so old it can't even boot on the 4B. I bet there are some additional parameters that need to be added to the tvservice commands to point to the proper HDMI port, and as you point out, we need to work out which video driver to load. (The install instructions for the vc4-kms-v3d driver came from a recommendation on the DDC support page. It seems that they might not be correct for Bullseye.) I'm curious whether you see any reasonable output before trying to set a resolution or even before photoframe starts? I think that the Pi should boot with the default resolution of the TV. Did you run the TV successfully with a plain RPI OS install? Thanks again and Regards, |
Hi @dadr I'm installing it on a raspberry 3b+ running bullseye. I've tried attaching a USB stick to the pi to load images onto the screen, but it doesn't seem to read the images either. Any help would be appreciated! |
Oh I managed to get the display to work again. I ran |
So playing around with the bullseye build on my spare raspberry 4b, I'm getting the same issue as @jakemauer where the screen goes all yellow with vc4-fkms-v3d. Disabling all drivers makes it work again (similar to the pi3b+), but I'm unable to get 4K working. I don't mind helping out with any debugging needed. |
Hi @shokwaav, Yes, you need to configure Bullseye to use the legacy driver. I have a 3b that I use to test with, and can say that it works well with that Pi. I should have added this point to the manual install instructions. The delay you see with the USB (or Google) service is when you add it the first time. Photoframe will walk through the directory and count pictures - checking each if it's really a supported picture file instead of some other type of file. This takes more time for more pictures. However, once the service has been added initially, it should not take that long to show pictures anymore. I really like the simple URL, try https://source.unsplash.com/featured/?nature, or https://source.unsplash.com/featured/?national,park You can put in a search term to get pictures with a theme. Thank You for helping with debugging! The log report button should be helpful there. There should be several threads running: Web server dispatch (usually shown first and with debug.py as the last item - since that's the button you clicked on the web UI); Slideshow; shutdown; timekeeper, colormatch (photo sensor), and the root "thread." It's also possible to start frame.py with a debug flag in order to show more information in the log report. See The readme for details, but you just stop the frame service and then manually run the frame program (as root) with --debug flag. |
I just enabled the debug and just looking through the debug, I've noticed that it takes quite a while for the pi to resample the image to smaller resolutions - but the service doesn't cache the temp images either, so each image needs to be processed every time it's shown. Also, if there was a way to enable 4k on the 3b would be great, I enabled it in the config but I just get a black screen when I select it in the web interface. EDIT: So obviously resampling the photos down to a lower resolution before putting it on the USB helped a lot - but I think it would make more sense for it to not delete all the temporary files though. |
You're correct about not caching re-sized images. I asked mrworf about that before, and he answered that the modifications to the image are not cached so that changes in resolution or effects would not force flushing the cache. This cache behavior optimizes against network outages, and I think mrworf primarily serves pictures from google photos. I can see your point also that caching the modified photos makes more sense when the originals are local on the USB. BTW - caching does funny things when you use the web URL. The same URL gives a different picture each time it is called, so caching tends to break that one too. I typically have caching turned off. Tell me more about enabling 4K on a 3B - I thought it was limited to something like 15Hz refresh and that most TVs/ monitors would not show that rate. Have you learned more than that? Also, to be clear, I have a 3B, not a 3B+. I think you have the 3B+, and I think that there was a GPU upgrade between them. |
Ah yea I have a 3B+. I was playing around with the options here: https://forums.raspberrypi.com/viewtopic.php?f=38&t=79330 I'll play around more with it to see if I can get it working. |
So I managed to get 4K working on my 3b+. Using the code I found from here.
Seems the Pi overheats after a while though and throttles and I get occasional black screens. I think the combination of pushing 4k through and processing for the blur taxes the processor too much. |
Managed to get the Pi4 working.
and also comment out |
@shokwaav that is wonderful news! Thank you so very much for sharing. (Xie xie!) Maybe this can help @jakemauer also. I’m happy to add the solution to the install instructions. Since I don’t have a Pi 4 I was worried that all the tvservices calls would need to be modified to specify a port - or some other similar gotcha that would add a lot of work to making the support complete. This is very happy. |
Happy to say the standby and resume features work fine too! |
Hey @dadr I gave your Bullseye branch a try on a Pi4 B. I was able to get everything configured but the frame service failed with the following output:
I can get past that by switching
dt-overlay
tovc4-fkms-v3d
in /boot/config.txt. (Context from here: Raspbian Bullseye - tvservice is not supported w/ vc4-kms-v3d driver SvenVD/rpisurv#143)I'm able to load the web config but even though I have an HDMI display connected and powered on, the config says there are no available displays and I've tried ports 1 and 2. I feel like I'm probably missing something obvious.
EDIT 3:
Anyways, thanks for your work keeping this project going.
The text was updated successfully, but these errors were encountered: