Certainly tdewey,
With the Bullseye distribution on Raspberry Pi I used these few customizations (with Bookworm they don't seem to work perhaps due to the configuration files having changed names or paths I presume):
To rotate the 7" LCD screen in portrait orientation, I modify the config.txt file by adding a new hdmi group with these lines
then with a dedicated stage in pi-gen I made some changes that impact the desktop version such as:
I tried applying these changes to Bookworm with wayland, but it didn't work.
Do you have any suggestions for me to continue with Bookworm?
Thank you.
With the Bullseye distribution on Raspberry Pi I used these few customizations (with Bookworm they don't seem to work perhaps due to the configuration files having changed names or paths I presume):
To rotate the 7" LCD screen in portrait orientation, I modify the config.txt file by adding a new hdmi group with these lines
Code:
[HDMI:0]hdmi_group=2hdmi_mode=87hdmi_cvt=800 480 60 6 0 0 0display_hdmi_rotate=1
Code:
# Hide trash icon from desktopsed -i -e 's/show_trash=1/show_trash=0/g' /etc/xdg/pcmanfm/LXDE-pi/desktop-items-0.conf
Code:
# Hide desktop panel from desktopsed -i -e "s/@lxpanel.*/@lxpanel --desktop-off --profile LXDE-pi/g" /etc/xdg/lxsession/LXDE-pi/autostart
Code:
# Rotate X11 on Bullseyegrep -qxF "@xrandr --output HDMI-1 --rotate right" /etc/xdg/lxsession/LXDE-pi/autostart || echo "@xrandr --output HDMI-1 --rotate right" >> /etc/xdg/lxsession/LXDE-pi/autostart# Disable Blank screensed -i -e 's/#xserver-command=\(.*\)/xserver-command=X -s 0 dpms/' /etc/lightdm/lightdm.conf# rotate hdmi screen on PI4sed -ie 's/#session-setup-script=\(.*\)/session-setup-script=\/usr\/share\/rotate_video_pi4.sh/' /etc/lightdm/lightdm.conf Where rotate_video_pi4.sh contains if grep -q 'Pi 4 Model' /proc/device-tree/model; then xrandr --output HDMI-1 --rotate right fi
Code:
# rotate X11 touch TransformationMatrix to follow the rotation of the screeninstall -m 644 files/99-calibration.conf "${ROOTFS_DIR}/usr/share/X11/xorg.conf.d/"
Do you have any suggestions for me to continue with Bookworm?
Thank you.
Statistics: Posted by skcasb — Tue Jul 23, 2024 1:53 pm