helgeerbe / picframe

Picture frame viewer for raspi, controlled via mqtt and automatticly integrated as mqtt device in homeassistant.
MIT License
110 stars 32 forks source link

Can't get portrait mode working on Pi5 #354

Open Notrial opened 11 months ago

Notrial commented 11 months ago

I did as per instructions here: https://www.thedigitalpictureframe.com/raspberry-pi-digital-picture-frame-portrait-orientation/

Appended run_start.py with

image

But after I execute:

sudo xinit /usr/bin/python3 /home/pi/picframe_data/run_start.py /home/pi/picframe_data/config/configuration.yaml

I get the following error:

image
Notrial commented 11 months ago

OK so after fiddling with this for hours...in case someone runs into same problem. I did two things...

I edited (appended at the end) cmdline.txt in /boot/firmware with video=HDMI-A-1:1920x1200@60,rotate=270 That rotated the CLI.

Then I changed the start_picframe.sh This line: wlr-randr --output HDMI-A-1 --transform 270 --on

That did the trick!

adammhaile commented 2 days ago

see #401