https://bitbucket.org/malhan-designs/x301-mods/src/master/Lebula Pi 7in Touchscreen Mount/
This is a portrait mount for the Lebula 7" Raspberry Pi IPS Touchscreen. This screen may be sold under other brand names, the key is that the resolution is advertised as 1024x600, it is IPS, capacitive, has speakers, and the Pi mounts to the back of it.
This mount is made to attach to the upper right side of the printer on a 3 Z screw setup. It uses the upper 2020 rail and the front 2040 rail for attachment points, which I've illustrated in the example image below.
As this is a portrait mount for this screen, you will need to rotate the output of your Raspberry Pi. Depending on which Pi and Raspbian OS, the procedure for doing this can vary. I found a lot of misinformation online about how to do this correctly.
Here's what worked for me on a Raspberry Pi 4b running Raspbian OS Buster, as of the writing of this document. The screen output and the touch input are controlled separately on a Raspberry Pi 4b.
Prerequisites:
sudo apt install raspberrypi-ui-mods
sudo apt install arandr
. Please note: you need to install X windows before running this command or arandr will not properly set up its hooks.sudo raspi-config
under System Options -> Boot / Auto Login -> Desktop AutologinTo rotate the screen output:
/usr/share/dispsetup.sh
xrandr --output HDMI-1 --rotate left
before the exit 0
if it exists/usr/share/dispsetup.sh
is executable: sudo chmod +x /usr/share/dispsetup.sh
To rotate the touchscreen input:
/etc/X11/xorg.conf.d/99-calibration.conf
. You may need to create the /etc/X11/xorg.conf.d/
directory firstSection "InputClass"
Identifier "calibration"
MatchProduct "TSTP MTouch"
Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
EndSection
From here, you'll want to setup the dashboard of your choosing on the pi in kiosk mode, whether it be for Octoprint, Mainsail, or Fluidd, etc.
My steps for setting up Mainsail in kiosk mode (should work for Octoprint and/or fluidd as well):
sudo apt install chromium-browser
sudo apt install unclutter
(hides the mouse cursor)sudo apt install ratpoison
(this is an ultra light high performance display manager).config/lxsession/LXDE-pi
if it doesn't exist.config/lxsession/LXDE-pi/autostart
@xset s off
@xset s noblank
@xset -dpms
@unclutter &
ratpoison &
/usr/bin/chromium-browser --app=http://localhost --kiosk --noerrdialogs --overscroll-history-navigation=0 --disable-session-crashed-bubble --disable-infobars --check-for-update-interval=604800 --disable-pinch --enable-features=OverlayScrollbar,OverlayScrollbarFlashAfterAnyScrollUpdate,OverlayScrollbarFlashWhenMouseEnter
You can change the --app=http://localhost
portion of the chromium-browser line to point to another url if needed.