I successfully run KlipperScreen with touch on the:
Waveshare 7inch HDMI LCD (B) 800x480 v 1.1. (with reflashed firmware)
Open firmware for Waveshare 7" capacitive touchscreen
I took a .bin file from promzona1 (see project issues) and flashed with ST-link V2 under Windows.
The chip on my board is GD32F103.
Then i using it as 1024x600 screen with Raspberry Pi.
overscan_right=225 // these may be different
overscan_bottom=105 // these may be different
hdmi_cvt 1024 600 60 0 0 0 0
At this point you get well adjusted screen but X for the touch was swapped. I not try recompile firmware.
Rotating the screen to the proper orientation proved challenging. The config.txt rotate commands don’t work with the raspberry pi4. I couldn’t get the xorg configuration to rotate the display. When I added kernel commandline parameters to rotate the display, that worked for the initial verbose boot screen… but once KlipperScreen loaded, it was the wrong orientation.
I ended up having to modify the init function in screen.py as below, but it’s pretty hacky. Not sure if there’s a better way on a raspberry pi 4. But… it works
These are useful and almost identical, but have subtle nuanced differences that could prove beneficial. The first, for example, helped me by pointing me to java - adb devices => no permissions (user in plugdev group; are your udev rules wrong?) - Stack Overflow which helped with getting ADB to recognize that I had my phone connected as an adb target and also pointed me to an old version of XSDL that was needed for my old Android v6 phone. The second has some pointers about wireless that I’ve yet to try. On my Note 10+ I was able to get wireless adb running and was able to have a wireless KlipperScreen UI for the printer. On the Note 10+ I was able to use the current release of XSDL, from the Google Play Store, and did NOT need to load the old version manually via adb install.
Of note: On the newer versions of XSDL, there is indeed a ‘Desktop No Emulation’ mode for mouse emulation (which is the appropriate selection to make use of). However, on the older v1.11.40 version, I needed to select tablet/laptop emulation, then turned off all of the config options on the mouse emulation submenu, and finally calibrated the lcd, so that my touches would be passed through to KS so it could do it’s thing. If it looks like it is not functional, it may very well be that the mouse emulation is jacked up.
Also, be advised that it might look like the Web UI (Mainsail in my case) was not operable when KS was working. I found that once KS got started, if you close the web UI and then reopen it, that Moonraker is indeed able to serve both Mainsail UI web clients concurrently with the KlipperScreen device hooked locally to the Klipper Host (and Telegram Bot too, btw). I can’t speak for other MR clients like Fluidd or Mooncord. Other useful and likely relevant guidance:
As noted elsewhere, I am able to get the 4" Miuzei HDMI display working with a Raspberry Pi 4 and KlipperScreen.
To cut to the chase, this display requires a fairly parsnickety set up (which I’ve listed below) and after using this display for several hours, I do not recommend it for use with KlipperScreen/a 3D printer. The screen isn’t really bright and the resistive touch panel is not very sensitive. You can find DSI displays with capacitive touch panels for the same price that work better.
The process to get the display and touch panel is reasonably simple, but it has to be followed exactly:
Install Mainsail (I haven’t tried Fluidd or standard Octoprint for this) on a micro-SD/TF Card and boot the Raspberry Pi with the Display attached.
SSH login into the Raspberry Pi and install LCD-show using the commands listed in “How to rotate the display direction” in 5inch HDMI Display-B. I’ve listed the commands below. DO NOT EDIT CONFIG.TXT!!!
The final command of the LCD-show sequence (“sudo MPI4008-show”) will reboot the Raspberry Pi and may cause the display to come up correctly. If it doesn’t (which means I believe the display isn’t working correctly), unplug the Raspberry Pi and replug it - the Raspberry Pi boot sequence should be displayed now. If there aren’t four Raspberri Pi icons across the top of the display, go back to 1. and start over.
SSH login to the Raspberry Pi and install KIAUH using the instructions below.
Run KIAUH using the “./kiauh/kiauh.sh” command and install “KlipperScreen”. This action will take about five minutes to run.
Klipper should appear on the display.
I found it helpful to power down the Raspberry Pi at this point (using the “shutdown” command) and power back up as the final update didn’t always work from this screen.
If everything has been done correctly, then the Raspberry Pi should reboot (with the progress shown on the display) and Mainsail comes up.
From the Mainsail (“.local”) webpage, add your “printer.cfg” file
From the Mainsail (“.local”) webpage, do a update everything.
Note for the last command (“sudo ./MPI4008-show”), it’s given as “sudo ./XXX-show 90” in the webpage instructions. I have inserted the display type and, as I like the natural orientation of the display away from the power cord, I haven’t specified an angle.
Sorry for the pedantic instructions but I found a number of ways to not quite get there - I had a number of cases where I could get the display working, but KlipperScreen wouldn’t work or I would have everything working and try to streamline it by doing the “update everything” earlier in the process and the screen would stop working.
The display and touchpanel with a Plexiglas frame (as well as fan, which is useful) can be found here:
Hello my friend. So I bought this same screen… I haven’t started to install yet… But this is my first go round with KlipperScreen. So I have a few questions if you don’t mind… if you could help I would appreciate it.
Which wiring did you use? HDMI to the Pi?
Where did you power it from? Just plug into the Pi?
You said no “settings changes needed” so I just install “Klipper Screen” to my Fluidd instance and this just works?
Thank You man… any configs you could share etc. would be great.
Just reporting that Osoyoo 5" screen works perfectly. (Instruction for Raspberry Pi 5″ DSI Touch Screen « osoyoo.com) I choose this over PITFT50v2 because the Osoyoo has software controlled backlight - including totally off, and works out of the box with DPMS and via /sys/class/backlight/rpi_backlight/brightness.