-
Notifications
You must be signed in to change notification settings - Fork 37
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
Portrait Mode With Bookworm and Raspberry pi4 ? #401
Comments
I get this question quite often these days. The old instruction set doesn't seem to do anymore: https://www.thedigitalpictureframe.com/raspberry-pi-digital-picture-frame-portrait-orientation/ Any thoughts on how to achieve this with Bookworm? |
Now that we have solved Bookworm + Wayland, does Portrait mode work again? |
Sadly no, @sapnho - I just came here to try and find a solution. I followed the directions at the link you posted above, but of course that doesn't work as you noted. I'm running a Pi 4 with the latest and updated Bookworm Lite OS and latest picframe. One thing of note is that
|
With the latest setup we use What happens if you run that on the command line while picframe is running? PS something like
|
Closer!
One thing to note is in your example you swapped the resolution values in the However... It doesn't quite actually work. I did this initially while So, I tried adding the command above to the |
@adammhaile I'm away at the moment so can't check up on this properly, but I seem to remember that I put a couple of variables into the Paddy |
@paddywwoof Closer still! It does work but only if I run the following command AFTER the It does nothing still when it's in |
In the meantime, I added an option to rotate images on load, which should solve the problem at least for my specific needs: |
Adam, that's a tidy solution to your problem. It might be even easier, and save adding niche code to picframe, to write a five line python script to just rotate images and save them as a one-off job after copying them to the raspberry pi. I will look into the issue of when wlr-randr should be run to rotate the screen, once I'm home. Paddy |
I did consider it... probably what I'll actually end up doing. But I was curious how the code worked and thought maybe it might be generally useful beyond my use case. |
Yes definitely worth putting up anything that solves a problem for you as it could well help someone else down the line. I'll test it all out when I'm home but I think I would try putting the wlr-randr line at the end of |
@paddywwoof that was it!
And the following
It works great. The sleep might be too long, but 5 works fine so I guess I'll leave it. Thanks so much for the help! |
Updated it in the article. Thanks, @adammhaile |
All you guys, sapnho, adammhaile, paddywwoof, helgerbe - YOU ARE GEMS ! I made a digital picture frame from an old computer monitor, and used the instructions for Bookworm and a pi4, and had the crazy thing function, which I thought was amazing. Then I asked the question about 'portrait' mode. And lo and behold, you guys figured it out. I now can do either landscape or portrait. Amazing! Thank you! All of you! And Happy Thanksgiving and Happy Holidays. You guys are great! Thank You, |
Hi, I previously used the 2021 version of Picframe on a Pi4B board with the portrait setting described in the 2022 publication. In that version, the modifications for the portrait setting worked perfectly. Recently, I updated Picframe to the December 2024 version on the same Pi4B board. However, despite applying the changes suggested by adammhaile (in the Nov 14 post) to configuration.yaml and start_picframe.sh, the images remain in landscape mode and do not rotate to portrait. Has anyone verified these modifications on a Pi4B board with this version of Picframe? Are there any additional changes or steps required to enable portrait mode? Thank you very much for your help! |
Hi, the latest system should work OK but it will need the latest OS with Wayland etc. Did you do that or just Paddy |
Some additional info for reference:
Thanks in advance for the comments. |
Hmm, sounds like the |
Hi Paddy, thanks a lot. There was a problem in this line. I confirm the modification for the portrait display works for both 1080p monitor and 4k monitor, either 90-degree and 270-degree rotation, works on Pi4B board. |
Brilliant. Glad you sorted it out. Hope you continue enjoying the picture frame. Paddy |
helgerbe,
Is it possible to invoke portrait mode using Bookworm and a pi4?
Regards,
mike
The text was updated successfully, but these errors were encountered: