Add KlipperScreen installation module#319
Add KlipperScreen installation module#319dozed-dev wants to merge 3 commits intomainsail-crew:developfrom
Conversation
|
pls move this module to "special". All modules in the "special" directory are optional. We never published a image with KlipperScreen installed, we only used this module for internal testen and let it install for PR tests or other tests. |
|
oh ok! will do |
|
hmm, if I understand correctly, the modules in |
|
i feel like merging code that will never run is not good. |
|
I will add another config parameter that some entries in the config.yml will only be used in the PR build tests. We used this module also in the old workflow only for testing. We didn't include it in the release builds, because we are not able to give enough support für KlipperScreen and not every user will use KlipperScreen and it also need a little bit of load on the pi also without a screen. |
|
@dozed-dev is the klipperscreen module installed correctly like this? because from what I saw the last installation script was broken if launched with the parameters declared before execution scripts/KlipperScreen-install.sh@ln293 see, if you declare the network parameter first it skips the entire installation of the same, same thing with the other parameters |
judging from logs, it installs fine (see this build) |
|
@dozed-dev do you have more informations about the backend in KlipperScreen? I see that KlipperScreen has Wayland and X11 support and you use X11 in this module. Shouldnt it be Wayland on raspberry pi since bookworm? |
|
@dozed-dev I saw that it builds correctly (I built it for myself) but skips are implemented for each parameter and even if it builds it does not install the service and the backend (network and start are skipped by chance) thus creating an image that does not run Klipperscreen correctly... scripts/KlipperScreen-install.sh@ln326 scripts/KlipperScreen-install.sh@ln36 |
|
@meteyou on RPI4 it seems to work fine with X11, but if you want I can test it with Wayland since I plan to see it in a few weeks 😄 |
X is the default, and during installation it says that Wayland is experimental
|
|
@GiacomoGuaresi oh, I understand now! you're right, it skips the whole thing.. |
|
Hi all, I wanted to let you know that my PR on KlipperScreen has been approved. Therefore, we can proceed to rebuild MainsailOS with the KlipperScreen module integrated and verify that the installation is successful. Unfortunately, I will be traveling until May 31st and will not be able to test before then. However, as soon as I return, I will be available to perform all the necessary verifications. In the meantime, if anyone has the opportunity to test the updated build, it would be a great help to speed up the process. |
|
Hi @dozed-dev could you launch the build pipeline for me so I can download the image and test it on real hardware? thanks a lot 😄 |
|
sry, i'm a little bit behind my roadmap. i will add this module as a "build workflow only" build. but i have to add this function to the MainsailOS workflow first. |
|
@GiacomoGuaresi i had to revert a commit so that KlipperScreen actually builds. here's the workflow (currently building): https://github.com/dozed-dev/MainsailOS-dev/actions/runs/15423530973 |
|
Hi @dozed-dev and @meteyou, I tested the build on a Raspberry Pi 4, checked the build logs and verified it works, I attach the photos for me this PR seems ok (at least the install script part) 😄 |
|
@dozed-dev i added the function for "build_only" images here: #325 pls update this branch and add a build_only raspberry pi image with klipperscreen in the config. |
|
@dozed-dev why did you add to every image the new attribute? |
|
@meteyou oh.. idk why i done that lol |
|
@dozed-dev yes pls. add a new image for rpi 64bit incl. KS, but build_only. |
There was a problem hiding this comment.
I have installed KlipperScreen with this few lines of script, now as a begginer, I curious about the difference between this long script and the few lines it is working with...
`#!/bin/bash -e
Ensure pi user exists (pi-gen normally creates it)
id -u pi &>/dev/null || useradd -m -s /bin/bash pi
Clone KlipperScreen as pi
if [ ! -d /home/pi/KlipperScreen ]; then
su - pi -c "git clone https://github.com/KlipperScreen/KlipperScreen.git /home/pi/KlipperScreen"
fi
Run installer as pi, non-interactively
su - pi -c "yes | bash /home/pi/KlipperScreen/scripts/KlipperScreen-install.sh"`

Hi, this is a KlipperScreen module for the new refactor. The old MainsailOS has a KlipperScreen module, so I thought it'd make sense to have it in the refactor too, for feature parity.