This commit is contained in:
Thijs Triemstra authored and GitHub committed 2025-07-24 17:11:21 -06:00
1 parent bdb4e93709
commit 234ab979f8
15 files changed
+31 -31

No files matched your search

+2 -2
View File
@@ -12,7 +12,7 @@ This article describe how to use KlipperScreen from an Android device using XSer
It's recommended that you use [VNC](VNC.md) instead or at least install [earlyoom](https://packages.debian.org/en/stable/earlyoom)
1. [First installl KlipperScreen](Installation.md)
1. [First install KlipperScreen](Installation.md)
2. Download the apk of XServer-XSDL or ViewTouch from the [official sourceforge](https://sourceforge.net/projects/libsdl-android/files/apk/XServer-XSDL/).
@@ -113,7 +113,7 @@ Even after enabling the "Stay Awake" option in the Developer/USB Debugging optio
the Xserver-XSDL may still go to a black screen but keep the backlight of your device on.
To keep the screen always active, upon start up of Xserver-XSDL app, select the `Change Device Configuration`
at the top of the splash screen and then select the `Command line parameters, one argument per line` option.
Append the following argument (must be on seperate lines):
Append the following argument (must be on separate lines):
```
-s
0
+2 -2
View File
@@ -1,9 +1,9 @@
# Developer Guide
Basic setup for an enviroment to do development of KlipperScreen.
Basic setup for an environment to do development of KlipperScreen.
!!! note "Alfrix Note:"
I use a standard Linux distro with a desktop enviroment.
I use a standard Linux distro with a desktop environment.
## Clone the repo
Clone your fork, for example:
+9 -9
View File
@@ -1,5 +1,5 @@
How i installed the 3.5" (A) type of screen on RaspberryOS Bookworm (Debian 12)
How I installed the 3.5" (A) type of screen on RaspberryOS Bookworm (Debian 12)
Update: I've tested Bullseye (Debian 11) and it works, but [rotation was not working](#rotation)
@@ -43,7 +43,7 @@ sudo reboot
Some screens will not behave correctly and/or display wrong colors,
this usually due to the wrong [SPI](https://en.wikipedia.org/wiki/Serial_Peripheral_Interface) speed
In my case the maximum i could achieve is 22.22Mhz
In my case the maximum I could achieve is 22.22Mhz
```
dtoverlay=piscreen,drm,speed=22222222
```
@@ -62,7 +62,7 @@ dtoverlay=piscreen,drm,speed=22222222
So even if you can enter any number, it will be approximated to a value from that formula
That's why i used 22.222.222 (400 / 18)
That's why I used 22.222.222 (400 / 18)
reboot to test any changes.
@@ -104,7 +104,7 @@ fbcon=map:11
I have tried the type (B) version 2, and it's quite different, this screen has a different initialization sequence,
probably due to being IPS
so you will need the waveshare35b-v2 dtb of the [waveshare repo](https://github.com/waveshare/LCD-show), to be copied into the apropriate folder
so you will need the waveshare35b-v2 dtb of the [waveshare repo](https://github.com/waveshare/LCD-show), to be copied into the appropriate folder:
```
git clone https://github.com/waveshare/LCD-show
@@ -113,9 +113,9 @@ sudo cp LCD-show/waveshare35b-v2-overlay.dtb /boot/firmware/overlays/waveshare35
the config would be something like this, another major difference is that this display will default to vertical
the maximum speed i could achieve with mine was 33mhz (400mhz/12) without color aberration,
but i ended up with 30mhz to have some margin
this overlay supports an fps value, default is 30 i changed it to 60
the maximum speed I could achieve with mine was 33mhz (400mhz/12) without color aberration,
but I ended up with 30mhz to have some margin
this overlay supports an fps value, default is 30 I changed it to 60
this screen was never super responsive but with this configuration is quite tolerable in my opinion.
``` title="/boot/firmware/config.txt"
@@ -150,7 +150,7 @@ EndSection
```
!!! tip
notice that i'm using fbdev and not fbturbo, you can use fbturbo if you like (remeber to install it)
notice that I'm using fbdev and not fbturbo, you can use fbturbo if you like (remember to install it)
at this point this still did not work:
@@ -173,7 +173,7 @@ Fatal server error:
[ 172.068] (EE) no screens found(EE)
```
so i checked out the configuration and found:
so I checked out the configuration and found:
``` title="default contents of /usr/share/X11/xorg.conf.d/20-noglamor.conf"
Section "Device"
+1 -1
View File
@@ -47,7 +47,7 @@ options on brackets are optional
|-----------------|----------------------------------------------------------------------------------------|
| M | Calculate timings using [CVT](https://en.wikipedia.org/wiki/Coordinated_Video_Timings) |
| R | CVT reduced blanking (refresh rate must be 60Hz) |
| -<bpp> | Bits per pixel, A.K.A. BitDepth usuallly 24 |
| -<bpp> | Bits per pixel, A.K.A. BitDepth usually 24 |
| @<refresh-rate> | acceptable refresh rates are 50, 60, 70 or 85 Hz only |
| e | Force enable |
| D | Force enable Digital mode |
+2 -2
View File
@@ -1,6 +1,6 @@
Multiple instances of KlipperScreen
*Dificulty: Advanced*
*Difficulty: Advanced*
This article describes different methods of adding remote desktop clients (VNC or Xserver-XSDL) that do not support installing KS directly.
If your remote device runs GNU/Linux then you should install KlipperScreen directly, instead of the methods described below.
@@ -96,7 +96,7 @@ Test your new service
sudo systemctl start KlipperScreen_tablet
```
Optional: After veryfing it works, make it load when the system starts
Optional: After verifying it works, make it load when the system starts
```sh
sudo systemctl enable KlipperScreen_tablet
```
+1 -1
View File
@@ -1,6 +1,6 @@
# Temperature
This panel is available when there is at least one device with a temperature sensor asociated,
This panel is available when there is at least one device with a temperature sensor associated,
this includes extruders, heaters, sensors and temperature_fans.
There are 3 main modes of operation:
+1 -1
View File
@@ -41,7 +41,7 @@ here are some examples:
# Valid rotation options are normal,inverted,left,right
Option "PreferredMode" "1920x1080"
# May be necesary if you are not getting your prefered resolution.
# May be necessary if you are not getting your preferred resolution.
EndSection
```
Save the file and restart KlipperScreen.
+1 -1
View File
@@ -140,7 +140,7 @@ Output:
In this case the device is the ADS7846 Touchscreen, yours may be different
Reset the old calibration: (set the 0° roation matrix: 1 0 0 0 1 0 0 0 1)
Reset the old calibration: (set the 0° rotation matrix: 1 0 0 0 1 0 0 0 1)
```sh
DISPLAY=:0 xinput set-prop "ADS7846 Touchscreen" 'Coordinate Transformation Matrix' 1 0 0 0 1 0 0 0 1
```
+3 -3
View File
@@ -54,8 +54,8 @@ gcode:
description: Helper: park toolhead used in PAUSE and CANCEL_PRINT
variable_extrude: 1.0
gcode:
##### set park positon for x and y #####
# default is your max posion from your printer.cfg
##### set park position for x and y #####
# default is your max position from your printer.cfg
{% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %}
{% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %}
@@ -163,7 +163,7 @@ if it loads too fast and your extruder can't keep up, you should adjust the `max
All gcode_macros with the attribute `rename_existing` are hidden , because these are default Klipper Gcodes
and these should be implemented in KlipperScreen itself with buttons already.
[This is the same behaiviour of other UIs](https://docs.mainsail.xyz/overview/features/hide-macros-outputs-or-fans#macros-with-rename_existing)
[This is the same behaviour of other UIs](https://docs.mainsail.xyz/overview/features/hide-macros-outputs-or-fans#macros-with-rename_existing)
[LOAD_FILAMENT and UNLOAD_FILAMENT are also hidden](#load_filament-unload_filament)
+1 -1
View File
@@ -468,7 +468,7 @@ class Panel(ScreenPanel):
def new_print(self):
self._screen.screensaver.close()
if "virtual_sdcard" in self._printer.data:
logging.info("reseting progress")
logging.info("resetting progress")
self._printer.data["virtual_sdcard"]["progress"] = 0
self.update_progress(0.0)
self.set_state("printing")
+1 -1
View File
@@ -30,7 +30,7 @@ class Panel(ScreenPanel):
message = (
_("Failed to initialize") + "\n"
+ "This panel needs NetworkManager installed into the system\n"
+ "And the apropriate permissions, without them it will not function.\n"
+ "And the appropriate permissions, without them it will not function.\n"
+ f"\n{e}\n"
)
self.error_box.add(
+2 -2
View File
@@ -187,7 +187,7 @@ class KlipperScreen(Gtk.Window):
def state_execute(self, state, callback):
self.screensaver.close()
if 'printer_select' in self._cur_panels:
logging.debug(f"Connected printer chaged {state}")
logging.debug(f"Connected printer changed {state}")
return False
if state in ("printing", "paused"):
self.set_screenblanking_timeout(self._config.get_main_config().get('screen_blanking_printing'))
@@ -786,7 +786,7 @@ class KlipperScreen(Gtk.Window):
def toggle_shortcut(self, show):
if show and not self.printer.get_printer_status_data()["printer"]["gcode_macros"]["count"] > 0:
self.show_popup_message(
_("No elegible macros:") + "\n"
_("No eligible macros:") + "\n"
+ _("macros with a name starting with '_' are hidden") + "\n"
+ _("macros that use 'rename_existing' are hidden") + "\n"
+ _("LOAD_FILAMENT/UNLOAD_FILAMENT are hidden and should be used from extrude") + "\n"
+1 -1
View File
@@ -129,7 +129,7 @@ create_virtualenv()
python3 -m venv "${KSENV}"
if ! . "${KSENV}/bin/activate"; then
echo_error "Could not activate the enviroment, try deleting ${KSENV} and retry"
echo_error "Could not activate the environment, try deleting ${KSENV} and retry"
exit 1
fi
+1 -1
View File
@@ -6,7 +6,7 @@ echo "* Stopping service"
sudo service KlipperScreen stop
echo "* Removing unit file"
sudo rm /etc/systemd/system/KlipperScreen.service
echo "* Removing enviroment"
echo "* Removing environment"
sudo rm -rf ~/.KlipperScreen-env
echo "!! Please remove $(dirname `pwd`) manually"
echo "Done"
+3 -3
View File
@@ -9,7 +9,7 @@ export XCLIENT=change_me
export DISPLAY=change_me
if [ $XCLIENT == "change_me" ]; then
echo "launch_klipperscreen.sh for XSDL/XServer Clients has not been cofigured properly. Please edit this file to point to your XServer Client"
echo "launch_klipperscreen.sh for XSDL/XServer Clients has not been configured properly. Please edit this file to point to your XServer Client"
exit
fi
@@ -34,12 +34,12 @@ fi
case "$1" in
start)
echo -n "Starting Klipper Screen Xclient Deamon .... "
echo -n "Starting Klipper Screen Xclient Daemon .... "
setsid "$PYKLIPPERSCREEN" "$PYKLIPPERPARAM" #>/dev/null 2>&1 < /dev/null &
echo "running"
;;
stop)
echo -n "Stopping Klipper Screen Xclient Deamon .... "
echo -n "Stopping Klipper Screen Xclient Daemon .... "
PID=`ps -ef|grep KlipperScreen-env/bin/python|awk '{print $2}'`
kill -9 $PID
echo "stopping"