04-21-2024, 01:20 PM
I have built a Stealth V3 player, comprising a Raspberry 4b, a set of DC power supply, and a Waveshare 7.9" HDMI screen. This is a small how-to for Moode 9, currently tested on ~pre4 version. I will try to keep this updated after V9 is released. Basically it works for me and maybe it's not optimal, I'm not a guru in RPI hardware detection and firmware options.
Steps:
sudo vi /home/pi/.xinitrc
The touch screen worked out of the box. However, you may need to press the "Rotate Touch" button a few times until it works correctly. The display modules saves the rotation setting internally.
Steps:
- setup the PI image, get ssh working
- adapt /boot/firmware/cmdline.txt /home/pi/.xinitrc as shown below
- reboot
- your console will scroll boot messages
- and start the GUI after a while (I still have to check if the 2 min I observe until the GUI is available is due to some timeout or the result of loading X11 and Chromium)
Quote:#add this to the end of the line:
video=HDMI-A-1:400x1280M@60,rotate=90
# the full line should look similar to this, but might vary slightly
console=serial0,115200 console=tty1 root=PARTUUID=92517673-02 rootfstype=ext4 fsck.repair=yes rootwait video=HDMI-A-1:400x1280M@60,rotate=90
sudo vi /home/pi/.xinitrc
Quote:# before the "xset" commands, add this:
DISPLAY=:0 xrandr --output HDMI-1 --rotate left
# in the "SCREENSIZE="$(fbset ...." line, swap $2 and $3, so the lines become :
SCREENSIZE="$(fbset -s | awk '$1 == "geometry" { print $3","$2 }')"
The touch screen worked out of the box. However, you may need to press the "Rotate Touch" button a few times until it works correctly. The display modules saves the rotation setting internally.