Compare commits

..
9 Commits
Author SHA1 Message Date
Alfredo Monclus 0a9180d482 Graph (#357)
* Add theme graph colors

* Fix graph not applying colors
2021-12-07 20:56:32 -05:00
Jordan e1fcfdc9c7 Main menu hide 'set temp' for devices that don't have a heater. 2021-12-06 19:30:02 -05:00
Jordan c37acb5c00 Fix graph error and make colors configurable 2021-12-05 20:35:37 -05:00
Jordan 8f71eb7ca8 Create keypad widget and include set temp on the main menu 2021-12-04 15:13:31 -05:00
Jordan e9ed33c580 Move graph location 2021-12-04 15:11:16 -05:00
Jordan bf76132a0f graph: Add ability to hide/show sensors. 2021-12-04 15:11:16 -05:00
Alfredo Monclus df32787dc0 tweaks (#291) 2021-12-04 15:11:16 -05:00
Jordan 7ffc394366 Updates to graphing.
Modify heaters to show only ones available in the temp store. Add 
ability to hide/show heaters.
2021-12-04 15:11:16 -05:00
Jordan 44c417bc85 Adding graph capability to main menu 2021-12-04 15:11:16 -05:00
580 changed files with 14071 additions and 63274 deletions

No files matched your search

+12 -1
View File
@@ -1 +1,12 @@
ko_fi: alfrix
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: klipperscreen
open_collective: # Replace with a single Open Collective username
ko_fi: klipperscreen
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
-70
View File
@@ -1,70 +0,0 @@
name: Bug report
description: Create a report to help us improve
title: "[BUG] <title>"
labels: 'bug'
body:
- type: markdown
attributes:
value: |
Please search to see if an issue already exists for the bug you encountered.
This is a bug report, If you need general support, please visit us on [Discord](https://discord.klipper3d.org/)
# Guidelines:
1. Logfile must be provided from ks startup up to the bug
2. The version used must be from this repo (not a fork)
3. The version used shouldn't be too old (older than the last tagged version)
This bug report will be closed if the guidelines are not respected.
#### This is an Open Source project developed voluntarily, there are no Warranties, or ETA.
[License](https://github.com/KlipperScreen/KlipperScreen/blob/master/LICENSE)
### Thank you for choosing KlipperScreen
- type: textarea
id: what-happened
attributes:
label: 'What happened?'
description: A clear and concise description of what the bug is.
placeholder: During a print i pressed pause and nothing happend
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: 'What did you expect to happen instead?'
description: A clear and concise description of what you expected to happen instead.
placeholder: The printer to pause.
validations:
required: true
- type: textarea
id: repro-steps
attributes:
label: 'How to reproduce this bug?'
description: A clear and concise description with precise steps to reproduce this bug.
placeholder: Press pause button and during printing.
validations:
required: true
- type: textarea
id: additional-info
attributes:
label: 'Additional information:'
description: Any additional info, screenshots or recordings which help to describe the issue.
placeholder: hardware info or related printer config.
- type: textarea
id: logs
attributes:
label: Log output
description: |
Please attach the FULL klipperscreen.log and if needed xorg.log or the tail of journalctl.
if you need help to find the log file:
Read the [Documentation](https://klipperscreen.readthedocs.io/en/latest/Troubleshooting/)
placeholder: |
#### The LOG file is REQUIRED. Without the logfile your issue will be closed
Use a Zip archive if needed
validations:
required: true
-8
View File
@@ -1,8 +0,0 @@
blank_issues_enabled: false
contact_links:
- name: Klipper Discord Server
url: https://discord.klipper3d.org/
about: If you have questions or need general support.
- name: KlipperScreen Discussions
url: https://github.com/KlipperScreen/KlipperScreen/discussions
about: If you have questions or need general support.
@@ -1,45 +0,0 @@
name: Feature request
description: Suggest an idea for this project
title: "[FR] <title>"
labels: 'enhancement'
body:
- type: markdown
attributes:
value: >-
## Thank you for choosing KlipperScreen
This form is for feature requests of KlipperScreen
Requesting a feature does not mean it will be worked on, it's taken as a suggestion.
#### This is an Open Source project developed voluntarily, there are no Warranties, or ETA.
[License](https://github.com/KlipperScreen/KlipperScreen/blob/master/LICENSE)
- type: textarea
id: solution
attributes:
label: 'Requested feature'
description: A clear and concise description of what you want.
validations:
required: true
- type: textarea
id: what-happened
attributes:
label: 'Is your feature request related to a problem?'
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
validations:
required: false
- type: textarea
id: alternative
attributes:
label: 'Describe alternatives you have considered'
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: false
- type: textarea
id: info
attributes:
label: 'Additional information'
description: Add any other context drawings or screenshots about the feature.
validations:
required: false
+1 -1
View File
@@ -8,4 +8,4 @@ updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
interval: "daily"
-85
View File
@@ -1,85 +0,0 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
paths-ignore:
- 'docs/**'
- 'ks_includes/locales/**'
pull_request:
paths-ignore:
- 'docs/**'
- 'ks_includes/locales/**'
schedule:
- cron: '32 21 * * 5'
jobs:
analyze:
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
steps:
- name: Checkout repository
uses: actions/checkout@v6
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v4
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"
-29
View File
@@ -1,29 +0,0 @@
name: docs
on:
push:
branches: [master, main]
paths:
- 'docs/**'
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v6
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v5
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
-24
View File
@@ -1,24 +0,0 @@
name: "Add missing log comment"
on:
issues:
types: [labeled]
jobs:
comment:
if: contains(github.event.issue.labels.*.name, 'missing-log')
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v8
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Hello, I'm an automated bot. \n\n
Please attach a log file to this issue as it is required to properly diagnose the problem. \n\n
Logs help verify versions, inspect for errors, prevent duplicate reports, etc. \n\n
If you don't know how to grab the log file please refer to the documentation: \n\n
https://klipperscreen.readthedocs.io/en/latest/Troubleshooting/ \n\n
Thank you!`
})
+4 -12
View File
@@ -1,18 +1,10 @@
name: test-code
on:
push:
paths-ignore:
- 'docs/**'
- 'ks_includes/locales/**'
pull_request:
paths-ignore:
- 'docs/**'
- 'ks_includes/locales/**'
on: [push, pull_request]
jobs:
lint-python-code:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v1
- uses: ricardochaves/python-lint@v1.4.0
with:
python-root-list: "screen.py ks_includes panels"
@@ -22,4 +14,4 @@ jobs:
use-black: false
use-mypy: false
use-isort: false
extra-pycodestyle-options: "--ignore=E402,W503,W504 --max-line-length=120 --max-doc-length=120"
extra-pycodestyle-options: "--ignore=E226,E301,E302,E303,E402,W503,W504 --max-line-length=120 --max-doc-length=120"
-11
View File
@@ -1,11 +0,0 @@
.idea/
.vscode/
.DS_Store
KlipperScreen.conf
__pycache__/
*.py[cod]
*$py.class
dist/
build/
venv/
.venv/
-28
View File
@@ -1,28 +0,0 @@
# Read the Docs configuration file for MkDocs projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
# Set the version of Python and other tools you might need
build:
os: ubuntu-lts-latest
tools:
python: latest
jobs:
post_checkout:
# Cancel building pull requests when there aren't changed in the docs directory or YAML file.
# You can add any other files or directories that you'd like here as well,
# like your docs requirements file, or other files that will change your docs build.
#
# If there are no changes (git diff exits with 0) we force the command to return with 183.
# This is a special exit code on Read the Docs that will cancel the build immediately.
- |
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- docs/ .readthedocs.yaml;
then
exit 183;
fi
mkdocs:
configuration: mkdocs.yml
# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
-323
View File
@@ -1,323 +0,0 @@
# Changelog
This just tracks the most notable changes, if you want all the details checkout the commit history.
Probably all versions contain changes regarding documentation, translation, fixes and other minor refactors
## Current master
* add a wifi interface selector in the network panel
* option to use keyboard navigation
* allow starting in locked state
* option to auto-lock the screen
* if printer power_devices in ks config add shortcut to shutdown panel
* change default value on macro shortcut to false
* rotate the move buttons according to screw_rotation
* add caching of some resources for perfomance
## v0.4.6 (Jul 2, 2025)
* basic lockscreen for shows or kids
* add fine-tune panel on the main/more menu
* add comment field if available in Spoolman
* save dialog asks to save z probe/endstop if it was modified
* power_devices defined in the config will turn off when using the shutdown button
## v0.4.5 (Oct 28, 2024)
* allow calling KlipperScreen panels from gcode
* bed_mesh: automatically call for z_tilt or quad_level if not applied
* show battery status in the topbar
* macros: keyboard to keypad input switch with auto pre-selection
## v0.4.4 (Sep 16, 2024)
* support for different moonraker routes
* allow showing/hiding cursor from the settings
* some wpa-eap support, adds the security type selector and user field
* extrude: wait for temp or open temp panel automatically close #1416
* extrude: show more filament sensors (up to 9)
* notifications: change icon if warnings were issued
* notifications: add clear close #1178
* notifications: klipper config warnings
## v0.4.3 (Jun 29, 2024)
* prompts: add regular buttons and groups
* refactor: always ignore and hide console temp responses
* gcodes: vertical: remove left icons if low resolution
* keypad: support floating point temp
* gcodes: add extra info to confirm print
* zcalibrate: add a dropdown with the function name to select
* job_status: auto-estimated time: use last print time if available
* gcodes: add option to delete in the confirmation
## v0.4.2 (Jun 10, 2024)
* job_status: remove the status message and use the titlebar for that
* shutdown: add restart ks
* extrude: move firmware retraction into the panel, add pressure advance control closes #724
* screen: theme doesn't need a restart anymore
* splash: show the message when klipper is shutdown
* rename print panel to gcodes
* job_status: add extra info to print list and dialog
* network: new NetworkManager backend using sdbus (#1269)
* drop python 3.7 support (#1271)
## v0.4.1 (May 24, 2024)
* vertical layout: increase font size
* main_menu and temp: change layout to accomodate a bigger graph and list in vertical mode
* pins: add pwm_tool
* menu: add pins panel access while printing
* move and zcalibrate: changes in z invert
* system: add cpu and memory usage tracking
* add system info panel
* updater: add distro name
* menu: rename system to update
* allow 2 different screen timeouts, one while printing the other if not
* settings: Add tooltips
* printer_select: support custom icons #1240
* bed_mesh: show round bed without padded values
* macros: send gcode style (G/M) macros without =
* bed_mesh: bedmap draw axis
* zcalibrate: add support for axis twist compensation
* zcalibrate: add confirmation for abort close #1326
## v0.4.0 (Apr 14, 2024)
* move: support rescaling the slider if machine limits are changed
* bed_mesh: add support for rotation and inversion to the meshMap
* bed_level: add a warning for the screws not being used
* heatergraph: add the ability to go fullscreen when clicked close #740
* Add an alternative to X close #1289 (#1306) (Wayland)
* limits: change to minimum cruise ratio
* heatergraph: add power representation (if set to show power in settings)
* base_panel: titlebar: turn red if high cpu or memory is in use, show usage
* create the shutdown panel, add it to the action bar, remove items from system panel
* job_status: show current offset when saving to endstop close #1286
## v0.3.9 (Feb 29, 2024)
* print panel refactor and new features (#1270)
Adds a grid/thumbnail mode (switchable to the list mode)
last mode used is saved
faster load and less memory usage
add sort by size
* extrude: add an extruder selector for machines with more than 5 extruders (#1249)
* pins: make the non pwm pins on-off pwm pins as a scale
* popups: rate limit to every second close #1225
* feat: macro prompts close #1216 (#1219)
## v0.3.8 (Dec 23, 2023)
* add move_distances config option (#1211)
* printer_select: do not sort, this allows the users to sort how they want by defining them in the config in the order they want
## v0.3.7 (Nov 24, 2023)
* wifi: add icons
* initial notifications panel
* add moonraker warnings
## v0.3.6 (Sep 24, 2023)
* LED light control, close #991 (#1106)
* pause will auto-open extrude
* macros: hide the panel if there are no elegible macros
* job_status: click thumbnail for fullscreen thumbnail
## v0.3.5 (Aug 21, 2023)
* camera: relative url support close #1086 (#1088)
* Spoolman support close #1060
* Use callbacks to disable and enable buttons to improve user feedback
* main_menu: allow closing the keypad with the back button
* camera: add support for moonraker cameras, deprecates camera_url
## v0.3.4 (Jul 30, 2023)
* fine_tune: split speed and flow selectors close #935
* job_status: show save to endstop to apply offset for deltas close #916
* job_status: change progress percentage to time-based instead of file-based
## v0.3.3 (Jul 2, 2023)
* Menu reorganization (#1029)
* temp: add pid calibrate to the keypad (#1026)
* bed_level: add center screw close #863
## v0.3.2 (Feb 20, 2023)
* add ability to style and template menu buttons (#866)
* Update on-screen keyboard (#874)
## v0.3.1 (Dec 11, 2022)
* feat: camera support, using mpv as backend
* resizability
* print: add move/rename, make delete a visible button close #636
## v0.3.0 (Dec 5, 2022)
* feat: turn on_off power devices with the screensaver close #518
* macros add parameters
* print: allow directory deletion
* job_status: add eta
* Added support for network manager
* settings: add extra large font close #798
## v0.2.9 (Nov 18, 2022)
* job_status: use the new print_stats layer info
* functions: logging: use printer_data
* keyboard: add spanish and german, change backscpace, clear and accept to icons
## v0.2.8 (Oct 27, 2022)
* config: add printer_data to default config search locations
* extrude: make the speed and distance configurable close #673
* limits and retraction: infinite sliders
* print: hide files and directories starting with .
## v0.2.7 (Oct 4, 2022)
* exclude: graph (#743)
* Add current heater power % to job status (#708)
## v0.2.6 (Sep 2, 2022)
* Change URL protocol to HTTPS and WSS when connecting to port 443
* main temp: add the ability to hide the graph
* system: add shutdown and restart host
* exclude: add exclude objects support
## v0.2.5 (Aug 1, 2022)
* system: Add check for updates close #681
* bed_level: support 3 screws close #606
* job_status: now works without extruders or fans
* print: add delete file
* screen: Always ask to save config if we detect it on responses
* output_pin panel close #546
* built-in keyboard
## v0.2.4 (Jul 3, 2022)
* Enable users to inject a custom script to start KlipperScreen (#660)
* basic support for extruder_stepper
* fan: add max and stop buttons
## v0.2.3 (May 31, 2022)
* job_status: ask for confirmation, and show saved offset
* extrude: add filament sensor support
* limits: add reset, allow to set above the configured maximum but turn the slider red
* job_status: animate filename if it's too long
* macros: allow reverse sorting
* Add Input Shaper panel
* zcalibrate: show the saved offset and offset to be saved
* Allow setting 0 in preheat options (#612)
## v0.2.2 (May 1, 2022)
* Improve Job status (#592)
Adds heater_generic and/or temp_sensors besides extruder/bed (because of the limited space maybe only 1)
Temps are now buttons and act as a shortcut to the temp panel
Adds fan_generic to the fan label and it's now a shortcut to the fan panel
The colors and size of the progress circle were changed to be more subtle.
Margins between items were augmented, because they are buttons now
Adds 3 information pages: move, extrusion and time:
* move can be opened with speed or z buttons
* time with elapsed/remaining buttons
* extrusion with the extrude_factor / flowrate button
* limits: add units
* Add firmware retraction panel close #101
* Add possibility to define custom code for cooling (#579)
* job_status: add save z button to save babystepping
* console: hide temps, clear button, button icons
## v0.2.1 (Apr 1, 2022)
* Vertical mode (#480)
* Use extruder icon without number if there is only 1
* Screensaver if dpms is off
* fine_tune: add reset button, do not set babystepping prior to homing, reorganize a bit
* menu and printer_select: support more than 8 items
* zcalibrate: add selector for the different modes zcalibrate supports
* system: feature: add Full Update
* Added option to select default printer at startup. (#542)
* Show fan speed according to max_power and off_below (#543)
* console: add switch to turn off autoscroll (#540)
* base_panel: allow titlebar items to be configured
* splash_screen: allow power_devices to be configured
* Bed_level: Support 6 and 8 Screws and rotation (#484)
* Show position including offsets in the move panel (#516)
* Start in configurations without fans or extruders or temp devices
* Extrude panel: Support 5 extruders (#441)
* Support hiding by name using underscore (#437)
* Support Manual Mesh calibration (#388)
* Support the "enter" key from a physical keyboard (#379)
* Support multiple power devices. (#350)
* add speed as parameter to UN/LOAD_FILAMENT macro (#359)
## v0.2.0 (Dec 7, 2021)
The Project changed maintainer [alfrix](github.com/alfrix)
(Thats the reason for the version jump)
* Temp graph (#357)
* Create keypad widget and include set temp on the main menu
* Switch from vext.gi to PyGObject (#348)
* Add the full message of the commits in the updater (#343)
* Wakeup touch block (#340)
* screen: RESPOND echo will now show a message on the screen.
* Zcal panel: Support for Z_ENDSTOP_CALIBRATE (#327)
* Move panel: Add Z-tilt/Quad-gantry-level/HomeXY button (#326)
* Add temperature_fan to heaters (#325)
* Configurable xy position for z-calibrate (#310)
* Material themes (#297)
* Support custom themes (#288)
* Allow gcode commands with preheat options (#274)
* Add printer limits panel
* Add unload/load and reorganize extrude panel (#250)
* Font Size Selector (#245)
* Wake the screen at print start and end (#229)
* system: Add restart option to services that moonraker supports
* base_panel: Add extruder/heater bed temperatures to the title bar
## v0.1.6 (May 13, 2021)
* Wifi manager: Updates to include ability to change wifi networks
## v0.1.5 (May 10, 2021)
* New Style - Solarized (#144)
* M117 messages display (#150)
* print: Include refresh button for files
* bed_mesh: Include ability to view mesh Added ability to visualize bed meshes. The active bed mesh will have more points available to view than inactive bed meshes.
* Multiple printers (#85)
* screen: Enable DPMS so screens can power down.
* screen: Allow cursor to be displayed #51
* temperature: add heater_generic
* screen: Only process current panel's subscription
## v0.1.4 (Feb 15, 2021)
* network: Show wifi information
* screen_panel: Put icons on a sidebar instead of on the header
* printer: Include quad_gantry_level
* wifi: Initial wifi class
* job_status/settings: Allow different file estimation methods
* print: Allow sorting by date and name.
## v0.1.3 (Jan 7, 2021)
* gcode_macros: Update to hide macros based on settings
* settings: Create settings panel for KlipperScreen settings
* job_status: updates to show active extruder
* KlippyWebsocket: changes to allow for moonraker api key
* gcode_macros: add a panel for gcode macros
* screen: allow custom moonraker url/port
* config: Allow specifying configfile location from command line
* UI scaling (#28)
* move: Allow inverting of the axis
* bed_level: include screws_tilt_calculate command
* fine_tune: Remove fan from fine tune panel. Add fan to print menu
* configuration: hide extrude while printing
* bed_mesh: Add panel for bed_mesh
* screen: add popup message capability
## v0.1.2 (Dec 2, 2020)
* Change panel layout. Add title and move back button
* system: add klipper version
## v0.1.1 (Nov 28, 2020)
* Add power panel
* menu: add ability to hide certain menus
* Dynamically load panels
* Add HOME XY button
* Highlight all heaters by default on preheat panel
## v0.1.0 (Nov 14, 2020)
* first release
## v0.0.0 (Jul 6, 2020)
* first commit
+2 -3
View File
@@ -629,9 +629,8 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
KlipperScreen: A Klipper touch interface for touchscreens
Copyright (C) 2020-2021 Jordan Ruthe
Copyright (C) 2021-2024 Alfredo Monclus
OctoScreen: A OctoPrint touch interface for TFT touch modules
Copyright (C) 2018 Máximo Cuadros Ortiz
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
+8 -45
View File
@@ -1,52 +1,15 @@
# KlipperScreen
KlipperScreen is a touchscreen GUI that interfaces with [Klipper](https://github.com/Klipper3d/klipper) via [Moonraker](https://github.com/arksine/moonraker). It allows you to switch between multiple printers and access them from a single location. Notably, it doesn't need to run on the same host as your printer; you can install it on another device and configure the IP address to connect to the printer.
KlipperScreen is touchscreen GUI for Klipper based 3D printers. KlipperScreen interfaces with [Klipper](https://github.com/kevinOConnor/klipper) via [Moonraker](https://github.com/arksine/moonraker).
Multiple printers update is here! Please check the configuration information for specifying several printers.
### Documentation
For detailed information, [click here to access the documentation](https://klipperscreen.github.io/KlipperScreen/).
[Click here to access the documentation.](https://klipperscreen.readthedocs.io/en/latest/)
Screenshots are included in the documentation.
### Inspiration
KlipperScreen draws inspiration from [OctoScreen](https://github.com/Z-Bolt/OctoScreen/) and was developed to provide a native touchscreen GUI compatible with [Klipper](https://github.com/Klipper3d/klipper) and [Moonraker](https://github.com/arksine/moonraker).
[![Main Menu](docs/img/panels/main_panel.png)](https://klipperscreen.readthedocs.io/en/latest/Panels/)
Explore more screenshots [here](https://klipperscreen.readthedocs.io/en/latest/Panels/).
### Translations
Translations for KlipperScreen are hosted on Weblate. Thanks to the Weblate team for supporting the open-source community.
<a href="https://hosted.weblate.org/engage/klipperscreen/">
<img src="https://hosted.weblate.org/widget/klipperscreen/svg-badge.svg" alt="Translation status" />
</a>
Click the widget below to access the translation platform:
<a href="https://hosted.weblate.org/engage/klipperscreen/">
<img src="https://hosted.weblate.org/widget/klipperscreen/horizontal-auto.svg" alt="Weblate widget" width="50%" />
</a>
### About the Project
KlipperScreen was created by Jordan Ruthe in 2020.
| Donate to Jordan |
|------------------|
| [Patreon](https://www.patreon.com/klipperscreen) |
| [Ko-fi](https://ko-fi.com/klipperscreen) |
Since 2021, the project has been maintained by Alfredo Monclus (alfrix).
| Donate to Alfrix |
|------------------|
| [Ko-fi](https://ko-fi.com/alfrix) |
We extend our gratitude to all contributors who have helped along the way. [Meet the contributors](https://github.com/KlipperScreen/KlipperScreen/graphs/contributors).
### Sponsors
![LDO](docs/img/sponsors/LDO.png) ![YUMI](docs/img/sponsors/YUMI.png)
Special thanks to [LDO](https://ldomotors.com/) and [YUMI](https://wiki.yumi-lab.com/) for sponsoring KlipperScreen and the open-source community.
KlipperScreen was inspired by [OctoScreen](https://github.com/Z-Bolt/OctoScreen/) and the need for a touchscreen GUI that
will natively work with [Klipper](https://github.com/kevinOConnor/klipper) and [Moonraker](https://github.com/arksine/moonraker).
-5
View File
@@ -1,5 +0,0 @@
from typing import Callable
def _(message: str) -> str: ...
def ngettext(singular: str, plural: str, n: int) -> str: ...
-27
View File
@@ -1,27 +0,0 @@
#
# DO NOT EDIT THIS FILE USE KlipperScreen.conf
#
[main]
[preheat PLA]
bed = 40
extruder = 195
[preheat ABS]
bed = 90
extruder = 220
[preheat PETG]
bed = 80
extruder = 240
[preheat FLEX]
bed = 0
extruder = 210
[include main_menu.conf]
[include splash_menu.conf]
[include print_menu.conf]
[include move_menu.conf]
-150
View File
@@ -1,150 +0,0 @@
#
# DO NOT EDIT THIS FILE USE KlipperScreen.conf
#
[menu __main]
name: {{ gettext('Main Menu') }}
[menu __main move]
name: {{ gettext('Move') }}
icon: move
panel: move
[menu __main temperature]
name: {{ gettext('Temperature') }}
icon: heat-up
panel: temperature
enable: {{ (printer.temperature_devices.count > 0) or (printer.extruders.count > 0)}}
[menu __main extrude]
name: {{ gettext('Extrude') }}
icon: extrude
panel: extrude
enable: {{ printer.extruders.count > 0 }}
[menu __main more]
name: {{ gettext('More') }}
icon: settings
[menu __main print]
name: {{ gettext('Print') }}
icon: printer
panel: gcodes
enable: {{ printer.extruders.count > 0 }}
[menu __main gcodes]
name: {{ gettext('Gcodes') }}
icon: files
panel: gcodes
enable: {{ printer.extruders.count == 0 }}
[menu __main more bedlevel]
name: {{ gettext('Bed Level') }}
icon: bed-level
panel: bed_level
enable: {{ 'bed_screws' in printer.config_sections or 'screws_tilt_adjust' in printer.config_sections }}
[menu __main more bedmesh]
name: {{ gettext('Bed Mesh') }}
icon: bed-mesh
panel: bed_mesh
enable: {{ 'bed_mesh' in printer.config_sections }}
[menu __main more zoffset]
name: {{ gettext('Z Calibrate') }}
icon: z-farther
panel: zcalibrate
[menu __main more limits]
name: {{ gettext('Limits') }}
icon: fine-tune
panel: limits
[menu __main more fan]
name: {{ gettext('Fan') }}
icon: fan
panel: fan
enable: {{ printer.fans.count > 0 }}
[menu __main more led]
name: {{ gettext('Leds') }}
icon: light
panel: led
enable: {{ printer.leds.count > 0 }}
[menu __main more macros]
name: {{ gettext('Macros') }}
icon: custom-script
panel: gcode_macros
enable: {{ printer.gcode_macros.count > 0 }}
[menu __main more pins]
name: {{ gettext('Pins') }}
icon: hashtag
panel: pins
enable: {{ printer.output_pins.count > 0 or printer.pwm_tools.count > 0 }}
[menu __main more power]
name: {{ gettext('Power') }}
icon: shutdown
panel: power
enable: {{ moonraker.power_devices.count > 0 }}
[menu __main more camera]
name: {{ gettext('Camera') }}
icon: camera
panel: camera
enable: {{ moonraker.cameras.count > 0 }}
[menu __main more console]
name: {{ gettext('Console') }}
icon: console
panel: console
[menu __main more updater]
name: {{ gettext('Update') }}
icon: refresh
panel: updater
[menu __main more input_shaper]
name: {{ gettext('Input Shaper') }}
icon: move
panel: input_shaper
enable: {{ 'input_shaper' in printer.config_sections }}
[menu __main more save]
name: {{ gettext('Save Config') }}
icon: complete
method: ks_confirm_save
[menu __main more settings]
name: KlipperScreen
icon: settings
panel: settings
[menu __main more network]
name: {{ gettext('Network') }}
icon: network
panel: network
[menu __main more notifications]
name: {{ gettext('Notifications') }}
icon: notifications
panel: notifications
[menu __main more spoolman]
name: Spoolman
icon: spoolman
panel: spoolman
enable: {{ moonraker.spoolman }}
[menu __main more system]
name: {{ gettext('System') }}
icon: info
panel: system
enable: {{ moonraker_connected }}
[menu __main more fine_tune]
name: {{ gettext('Fine Tuning') }}
icon: fine-tune
panel: fine_tune
-47
View File
@@ -1,47 +0,0 @@
#
# DO NOT EDIT THIS FILE USE KlipperScreen.conf
#
[menu move homing homex]
name: {{ gettext('Home X') }}
icon: home-x
method: printer.gcode.script
params: {"script":"G28 X"}
[menu move homing homey]
name: {{ gettext('Home Y') }}
icon: home-y
method: printer.gcode.script
params: {"script":"G28 Y"}
[menu move homing homez]
name: {{ gettext('Home Z') }}
icon: home-z
method: printer.gcode.script
params: {"script":"G28 Z"}
[menu move homing homeall]
name: {{ gettext('Home All') }}
icon: home
method: printer.gcode.script
params: {"script":"G28"}
[menu move homing homexy]
name: {{ gettext('Home XY') }}
icon: home
method: printer.gcode.script
params: {"script":"G28 X Y"}
[menu move homing quad_gantry_level]
name: {{ gettext('Quad Gantry Level') }}
icon: home-z
method: printer.gcode.script
params: {"script":"QUAD_GANTRY_LEVEL"}
enable: {{ 'QUAD_GANTRY_LEVEL' in printer.available_commands }}
[menu move homing Z-Tilt]
name: {{ gettext('Z Tilt') }}
icon: z-tilt
method: printer.gcode.script
params: {"script":"Z_TILT_ADJUST"}
enable: {{ 'Z_TILT_ADJUST' in printer.available_commands }}
-102
View File
@@ -1,102 +0,0 @@
#
# DO NOT EDIT THIS FILE USE KlipperScreen.conf
#
[menu __print]
name: {{ gettext('Print Control') }}
[menu __print temperature]
name: {{ gettext('Temperature') }}
icon: heat-up
panel: temperature
enable: {{ (printer.temperature_devices.count > 0) or (printer.extruders.count > 0)}}
[menu __print fan]
name: {{ gettext('Fan') }}
icon: fan
panel: fan
enable: {{ printer.fans.count > 0 }}
[menu __print move]
name: {{ gettext('Move') }}
icon: move
panel: move
enable: {{ printer.pause_resume.is_paused }}
[menu __print extrude]
name: {{ gettext('Extrude') }}
icon: extrude
panel: extrude
enable: {{ printer.extruders.count > 0 }}
[menu __print power]
name: {{ gettext('Power') }}
icon: shutdown
panel: power
enable: {{ moonraker.power_devices.count > 0 }}
[menu __print led]
name: {{ gettext('Leds') }}
icon: light
panel: led
enable: {{ printer.leds.count > 0 }}
[menu __print macros]
name: {{ gettext('Macros') }}
icon: custom-script
panel: gcode_macros
enable: {{ printer.gcode_macros.count > 0 }}
[menu __print notifications]
name: {{ gettext('Notifications') }}
icon: notifications
panel: notifications
[menu __print camera]
name: {{ gettext('Camera') }}
icon: camera
panel: camera
enable: {{ moonraker.cameras.count > 0 }}
[menu __print console]
name: {{ gettext('Console') }}
icon: console
panel: console
[menu __print limits]
name: {{ gettext('Limits') }}
icon: fine-tune
panel: limits
[menu __print network]
name: {{ gettext('Network') }}
icon: network
panel: network
[menu __print settings]
name: KlipperScreen
icon: settings
panel: settings
[menu __print spoolman]
name: Spoolman
icon: spoolman
panel: spoolman
enable: {{ moonraker.spoolman }}
[menu __print system]
name: {{ gettext('System') }}
icon: info
panel: system
enable: {{ moonraker_connected }}
[menu __print pins]
name: {{ gettext('Pins') }}
icon: hashtag
panel: pins
enable: {{ printer.output_pins.count > 0 or printer.pwm_tools.count > 0 }}
[menu __print lock]
name: {{ gettext('Lock') }}
icon: lock
panel: lock_screen
-34
View File
@@ -1,34 +0,0 @@
#
# DO NOT EDIT THIS FILE USE KlipperScreen.conf
#
[menu __splashscreen]
name: {{ gettext('Menu') }}
[menu __splashscreen power]
name: {{ gettext('Power') }}
icon: shutdown
panel: power
enable: {{ moonraker.power_devices.count > 0 }}
[menu __splashscreen network]
name: {{ gettext('Network') }}
icon: network
panel: network
[menu __splashscreen updater]
name: {{ gettext('Update') }}
icon: refresh
panel: updater
enable: {{ moonraker_connected }}
[menu __splashscreen settings]
name: KlipperScreen
icon: settings
panel: settings
[menu __splashscreen system]
name: {{ gettext('System') }}
icon: info
panel: system
enable: {{ moonraker_connected }}
-150
View File
@@ -1,150 +0,0 @@
# XServer-XSDL (Android Only)
This article describe how to use KlipperScreen from an Android device using XServer-XSDL
!!! warning
The experience may not be equal to run KlipperScreen natively.
Depending on the device or the network you may encounter performance degradation or other issues.
!!! bug
This method may cause [memory-leaks](https://github.com/KlipperScreen/KlipperScreen/issues/862)
if you don't disable DPMS when installed on X11
It's recommended that you use [VNC](VNC.md) instead
But if you want to use this at least install [earlyoom](https://packages.debian.org/en/stable/earlyoom)
```bash
sudo apt install earlyoom
sudo systemctl enable --now earlyoom
```
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/).
since it's no longer on the play store.
With Android 4 you may have to use v1.11.40
3. Install the app on the Android device
4. Choose [USB (ADB)](#adb) or [WI-FI](#wifi)
### ADB
!!! warning
Leaving the phone always connected it's not recommended, remove the battery to avoid issues.
1. Install ADB on the computer/SBC/Pi with this command:
```bash
sudo apt-get install android-tools-adb
```
2. Put your Android device in Debug mode.
Usually it involves enabling developer mode and "USB debugging"
the exact method varies on different vendors and versions of the device
search "how to enable Android debugging on device-model-and-brand"
3. Copy the sample launcher script with the following commands:
```bash
cd ~/KlipperScreen/scripts
cp sample-android-adb.sh launch_KlipperScreen.sh
chmod +x ~/KlipperScreen/scripts/launch_KlipperScreen.sh
```
4. Start Xserver-XSDL On the Android device
5. Go to [Startup](#startup)
### WIFI
1. Create a launcher script by entering the following commands:
```bash
rm ~/KlipperScreen/scripts/launch_KlipperScreen.sh
touch ~/KlipperScreen/scripts/launch_KlipperScreen.sh
chmod +x ~/KlipperScreen/scripts/launch_KlipperScreen.sh
nano ~/KlipperScreen/scripts/launch_KlipperScreen.sh
```
2. Start the app on the Android device (Xserver-XSDL or ViewTouch)
3. Paste this into the script:
Replace the example IP with the one that Android app shows in the screen.
```bash
DISPLAY=192.168.150.122:0 $KS_XCLIENT
```
!!! important
It's recommended to use a static IP address, because if it changes your connection will stop working.
## Startup
Enter this command on the computer/SBC/Pi
```bash
sudo service KlipperScreen restart
```
## Doesn't start
Follow this steps:
1. Reboot the Android device
2. Open the XSDL app and leave it waiting in the blue-screen
3. Reboot the computer/SBC/Pi
## Xserver-XSDL config
Some versions of the app require this configuration to work as expected.
On the splash-screen of the app go to:
```
“CHANGE DEVICE CONFIGURATION”
└──Mouse Emulation Modde
└──Desktop, No Emulation
```
if you missed it, restart the app.
## Recommended configuration for this use case
It's recommended to set Display timeout to never:
Also for X11 installs turn off DPMS:
![disable_dpms_poweroff](img/disable_dpms_poweroff.png)
## Stop Screen Blanking in Xserver-XSDL
Even after enabling the "Stay Awake" option in the Developer/USB Debugging options of your Android device,
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 separate lines):
```
-s
0
```
This will disable the screen-saver in Xserver and keep KlipperScreen always active.
## Migration from other tutorials
KlipperScreen says error option "service" is not supported anymore.
Stop the other service and Remove it, for example if the service is `KlippyScreenAndroid`:
```bash
sudo service KlippyScreenAndroid stop
sudo rm /etc/systemd/system/KlippyScreenAndroid.service
```
Follow this guide on how to set up the new launcher script with [USB(ADB)](#adb) or [WI-FI](#wifi) and restart KS.
## Help
[The Discourse thread has old instructions, but you may get some help if needed](https://klipper.discourse.group/t/how-to-klipperscreen-on-android-smart-phones/1196)
[#klipper-screen channel on Discord](https://discord.klipper3d.org/)
+91 -250
View File
@@ -1,312 +1,153 @@
# Configuration
Usually you don't need to create a configuration file, but if you need to change something that is not changeable in the UI
create a blank file in `~/printer_data/config/KlipperScreen.conf`, if the file already exist then just edit it.
Create a blank file in `~/klipper_config/KlipperScreen.conf_`, if the file already exist then just edit it.
Write in the file only the options that need to be changed, and restart KlipperScreen.
Write in the file only the options that need to be changed.
!!! failure "Critical"
Each configuration option should be on a newline, as they are presented here.
The line endings should be of UNIX style (LF).
## Include files
```
[include conf.d/*.conf]
# Include another configuration file. Wildcards (*) will expand to match anything.
```
## Main Options
The options listed here are not editable from within the user interface.
```{ .ini .no-copy }
[main]
# Time in seconds before the Job Status page closes itself after a successful job/print
# 0 means disabled
# job_complete_timeout: 0
# Time in seconds before the Job Status closes itself if an error is encountered
# job_error_timeout: 0
# If multiple printers are defined, this can be set the name of the one to show at startup.
# default_printer: MyPrinter
# To define a full set of custom menus (instead of merging user entries with default entries)
# set this to False. See Menu section below.
# use_default_menu: True
# Define one or more moonraker power devices that turn on/off with the screensaver (CSV list)
# screen_on_devices: example1, example2
# screen_off_devices: example1, example2
# Define the password to use when locking the screen, this is not secure
# it's saved as plain text, it's meant to be a deterrent for kids or people at shows
# it will be redacted from the logs.
# default is no password
# lock_password: example_password
# Auto-lock the screen after a period of inactivity (in seconds)
# 0 means disabled
# autolock_timeout: 0
# Start KlipperScreen with the screen locked
# start_locked: False
# Allow button focus to navigate with the keyboard
# a scroll wheel mapped to tab/shift+tab and enter button can work
# Beware that the UI is coded to be touchscreen controlled, this is
# not recommended as the only way to control
# keyboard_navigation: False
```
[main]
# Invert axis in move panel. Default is False. Change to true to invert
invert_x: False
invert_y: False
invert_z: False
!!! tip
It is strongly recommended that you do not add settings to the config file if you don't need them
# Time (seconds) before the Job Status page reverts to main menu after a successful job
job_complete_timeout: 30
# Time (seconds) before the Job Status page reverts to main menu after a successful job.
# If this option is 0, the user must click on a button to go back to the main menu.
job_error_timeout: 0
# Specify the language
# The language can be specified here instead of using the system default language.
language: en
# Allows the cursor to be displayed on the screen
show_cursor: False
```
## Printer Options
Multiple printers can be defined
```{ .ini .no-copy }
```
# Define printer and name. Name is anything after the first printer word
[printer MyPrinter]
[printer Ender 3 Pro]
# Define the moonraker host/port if different from 127.0.0.1 and 7125
moonraker_host: 127.0.0.1
moonraker_port: 7125
# Use HTTPS/WSS. Defaults to True for ports 443 or 7130, False for any other port
# moonraker_ssl: False
# If you're using the route_prefix option in your moonraker config, specify it here.
# This can be useful for running multiple printers behind a path-based reverse proxy.
# Most installs will not need this.
# moonraker_path: printer1
# Moonraker API key if this host is not connecting from a trusted client IP
# moonraker_api_key: False
# Moonraker API key if this is not connecting from a trusted client IP
moonraker_api_key: False
# Define the z_babystep intervals in a CSV list. Currently only 2 are supported, the last value is default
# z_babystep_values: 0.01, 0.05
# Define the z_babystep intervals in a CSV list. Currently only 2 are supported
z_babystep_values: 0.01, 0.05
```
# For the 'Power on' button on the splash screen:
# Define one or more moonraker power devices that turn on this printer (CSV list)
# By Default it tries to match the printer name defined in this section header to the moonraker power device name.
# This devices will be turned OFF when using the shutdown button
# power_devices: example1, example2
# Define what items should be shown in titlebar besides the extruder and bed
# the name must be the same as defined in the klipper config
# valid options are temperature_sensors or temperature_fans, or heater_generic
# There is a special item named "spool" that depends on Spoolman data provided through Moonraker
# titlebar_items: chamber, MCU, Pi, spool
# The style of the user defined items in the titlebar
# Can be 'full' indicating that the full name is shown, 'short' for the first letter, or None (default) for no name
# titlebar_name_type: None
# Low limit for remaining spool weight in the title bar, in grams.
# When the active spool drops below this value, the spool icon and weight turn red.
# spool_low_limit: 20
# Z probe calibrate position
# By default it tries to guess the correct location
# it will try using zero reference position, safe_z, mesh midddle, middle of axis length, etc
# example:
# calibrate_x_position: 100
# calibrate_y_position: 100
# Custom commands for zcalibrate
# the zcalibrate panel provides quick access to test_z, accept and cancel commands
# if you have a command that makes use of this functions and it's not in the main klipper repository
# add it to this list.
# examples:
# zcalibrate_custom_commands: MYCUSTOMPROBE_CALIBRATE, CUSTOM_CALIBRATE method=manual, CUSTOM_TEST
# Rotation is useful if the screen is not directly in front of the machine.
# It will affect the bed mesh visualization.
# Valid values are 0 90 180 270
# screw_rotation: 0
# Define distances and speeds for the extrude panel. CSV list 2 to 4 integers the second value is default
# extrude_distances: 5, 10, 15, 25
# extrude_speeds: 1, 2, 5, 25
# Define distances for the move panel. comma-separated list with 2 to 7 floats and/or integers
# move_distances: 0.1, 0.5, 1, 5, 10, 25, 50
# Camera needs to be configured in moonraker:
# https://moonraker.readthedocs.io/en/latest/configuration/#webcam
## Z probe calibrate Option
If for any reason the XYZ home position is not suitable for calibrating the probe Z offset, you can enter the coordinates for the desired position here.
```
[z_calibrate_position]
# The specified positions must be> 0 otherwise this option is ignored.
# the center of the print bed is a good value
calibrate_x_position: 100
calibrate_y_position: 100
```
## Preheat Options
!!! question "Added one the others disappeared, Is this normal?"
Adding a custom preheat section will cause the defaults to not load, this is
the intended behaviour.
```ini
```
[preheat my_temp_setting]
# Temperature for the heated bed
bed: 40
# Temperature for the tools
extruder: 195
extruder1: 60
heater_bed: 40
# Use the name
chamber: 60
# or the full name
heater_generic chamber: 60
# or for example apply the same temp to devices of the same type
temperature_fan: 40
heater_generic: 60
# Temperature for generic heaters
heater_generic: 40
# optional GCode to run when the option is selected
gcode: MY_HEATSOAK_MACRO
```
There is a special preheat setting named cooldown to *do additional things* when the _cooldown_ button is pressed
*do not* add `TURN_OFF_ALL_HEATERS` or you will remove the ability to turn off individual heaters with this button.
for example:
```ini
[preheat cooldown]
gcode: M107
```
## Include files
```{ .ini .no-copy }
# [include conf.d/*.conf]
# Include another configuration file. Wildcards (*) will expand to match anything.
```
## Menu
This allows a custom configuration for the menu displayed while the printer is idle. You can use sub-menus to group
different items and there are several panel options available. It is possible to have a gcode script run on a menu
button press. There are two menus available in KlipperScreen, __main and __print. The __main menu is displayed while the
printer is idle. The __print menu is accessible from the printing status page.
!!! info
A predefined set of menus is already provided
A menu item is configured as follows:
```{ .ini .no-copy }
[menu __main my_menu_item]
name: Item Name
# To build a sub-menu of this menu item, you would next define [menu __main my_menu_item sub_menu_item]
#
# --- The following items are optional ---
#
# icon: home
# Icon name to be used, it can be any image in the directory:
# KlipperScreen/styles/{theme}/images/ where {theme} is your current theme
# Supported formats svg or png
#
# style: mycolor4
# Icon style, defined as "button.mycolor4" (for example) in the theme css
#
# panel: preheat
# Panel from the panels folder in the KlipperScreen folder
#
# enable: {{ 'screws_tilt_adjust' in printer.config_sections and printer.power_devices.count > 0 }}
# Enable allows hiding of a menu if the condition is false. (evaluated with Jinja2)
# Available variables are listed in the next section.
#
# --- The items below do not work if you define a panel to be loaded ---
#
# method: printer.gcode.script
# Moonraker method to call when the item is selected, you will need params below
# the most common is is printer.gcode.script check out other methods in moonraker documentation:
# https://moonraker.readthedocs.io/en/latest/web_api/#run-a-gcode
#
# params: {"script":"G28 X"}
# Parameters that would be passed with the method above
#
# confirm: 'Are you sure?'
# If present this option will give you a confirmation prompt with the text above.
# It's recommended that you use a Macro-prompt instead of this option,
# as the Macro-prompt will also be shown on other interfaces, and it's more flexible.
# Macro-prompts are described in: https://klipperscreen.github.io/KlipperScreen/macros/#prompts
```
[menu __main my_menu_item]
# To build a sub-menu of this menu item, you would next use [menu __main my_menu_item sub_menu_item]
name: Item Name
icon: home
# Optional Parameters
# Panel from the panels listed below
panel: preheat
# Moonraker method to call when the item is selected
method: printer.gcode.script
# Parameters that would be passed with the method above
params: {"script":"G28 X"}
# Enable allows hiding of a menu if the condition is false. This statement is evaluated in Jinja2
# Available variables are listed below.
enable: {{ printer.power_devices.count > 0 }}
```
Available panels are listed here: [docs/panels.md](panels.md)
Variables to conditionally test the enable statement:
```{ .yaml .no-copy }
# Configured in Moonraker
moonraker.power_devices.count # Number of power devices
moonraker.cameras.count # Number of cameras
moonraker.spoolman # Has spoolman
# Printer specific
printer.pause_resume.is_paused # Printing job is paused
printer.extruders.count # Number of extruders
printer.temperature_devices.count # Number of temperature related devices (not extruders)
printer.fans.count # Number of fans
printer.output_pins.count # Number of pins configured
Certain variables are available for conditional testing of the enable statement:
```
printer.bltouch # Available if bltouch section defined in config
printer.gcode_macros.count # Number of gcode macros
printer.gcode_macros.list # List of names of the gcode macros
printer.leds.count # Number of leds
printer.config_sections # Array of section headers of Klipper config (printer.cfg)
printer.available_commands # List of all the commands that the printer supports
printer.idle_timeout # Idle timeout section
printer.pause_resume # Pause resume section of Klipper
printer.probe # Available if probe section defined in config
printer.power_devices.count # Number of power devices configured in Moonraker
```
A sample configuration of a main menu would be as follows:
```{ .yaml+jinja .no-copy }
```
[menu __main homing]
name: Homing
icon: home
[menu __main preheat]
name: Preheat
icon: heat-up
panel: preheat
[menu __main print]
name: Print
icon: print
panel: print
[menu __main homing homeall]
name: Home All
icon: home
method: printer.gcode.script
params: {"script":"G28"}
[menu __main homing mymacro]
name: My Macro
icon: home
method: printer.gcode.script
params: {"script":"MY_MACRO"}
enable: {{ 'MY_MACRO' in printer.gcode_macros.list }}
[menu __main preheat]
name: Preheat
icon: heat-up
panel: preheat
```
## KlipperScreen behaviour towards configuration
KlipperScreen will search for a configuration file in the following order:
1. _~/printer_data/config/KlipperScreen.conf_
2. _~/.config/KlipperScreen/KlipperScreen.conf_
3. _${KlipperScreen_Directory}/KlipperScreen.conf_
1. _~/KlipperScreen.conf_
2. _${KlipperScreen_Directory}/KlipperScreen.conf_
3. _~/klipper_config/KlipperScreen.conf_
If you need a custom location for the configuration file, you can add [launch argument](#adding-launch-arguments)
If you need a custom location for the configuration file, you can add -c or --configfile to the systemd file and specify
the location of your configuration file.
If one of those files are found, it will be merged with the default configuration.
Default Preheat options will be discarded if a custom preheat is found.
If include files are defined then, they will be merged first.
If one of those files are found, it will be used over the default configuration. The default configuration will be
merged with the custom configuration, so if you do not define any menus the default menus will be used.
The default config is included here: (do not edit use as reference)
_${KlipperScreen_Directory}/config/defaults.conf_
_${KlipperScreen_Directory}/ks_includes/default.conf_
*Do not* copy the entire default.conf file, just configure the settings needed.
Preferably *do not* copy the entire default.conf file, just configure the settings needed.
If no config file is found, then when a setting is changed in the settings panel, a new configuration file should be created automatically.
## Starting on a different monitor/display/screen
Add -m or --monitor as a launch argument, to specify the number of the monitor, that will show Klipperscreen (default: 0).
!!! warning
Selecting the monitor is only allowed when KlipperScreen is set to launch fullscreen in standalone mode (no DE)
## Adding launch arguments
The recommended way to add launch arguments is:
1. Create a launch script:
```bash
touch ~/KlipperScreen/scripts/launch_KlipperScreen.sh
chmod +x launch_KlipperScreen.sh
```
2. Edit the script:
```bash
nano ~/KlipperScreen/scripts/launch_KlipperScreen.sh
```
Add the init and the launch argument, this example will launch KlipperScreen on the second monitor if exists:
```
/usr/bin/xinit $KS_XCLIENT --monitor 1
```
!!! tip
you can use --configfile and --logfile to specify custom locations for those files
If no config file is found, then when a setting is changed in the settings panel, a new configuration file will be created automatically.
+6 -16
View File
@@ -1,23 +1,13 @@
# Contact
There are several ways to contact people who can assist with issues.
Discord is probably going to provide the quickest response as there are more people in the chat who can help.
There are several ways to contact people who can assist with issues. Discord is going to be the quickest response as
there will be more people in the chat who can help.
## GitHub Issues
You may submit a GitHub issue request for any problems you are having.
## Klipper Community Discord
[Look for the channel `#klipper-screen`](https://discord.klipper3d.org/)
The invite link: https://discord.klipper3d.org/
## Issues or improvements to the docs or the application
You may submit a GitHub issue request for any bugs you encounter.
or a Pull Request with translations, features, doc fixes.
or open an issue describing the changes.
or even provide ideas for a feature.
[GitHub repository](https://github.com/KlipperScreen/KlipperScreen/)
Look for the channel `#klipper-screen`
-61
View File
@@ -1,61 +0,0 @@
# Developer Guide
Basic setup for an environment to do development of KlipperScreen.
!!! note "Alfrix Note:"
I use a standard Linux distro with a desktop environment.
## Clone the repo
Clone your fork, for example:
```
cd ~
git clone https://github.com/klipperscreen/klipperscreen.git
```
## Install the dependencies on the host
The X11 or Wayland dependencies should not be needed if you are running a desktop GNU/Linux distro.
See [scripts/system-dependencies.json](https://github.com/KlipperScreen/KlipperScreen/blob/master/scripts/system-dependencies.json)
## Create a virtual environment
For example:
```bash
cd ~/KlipperScreen
python3 -m venv .venv
source .venv/bin/activate
pip install -r scripts/KlipperScreen-requirements.txt
# this one is optional:
pip install -r scripts/dev-requirements.txt
```
# Set configurations
Create klipperscreen.conf and place it on the repo folder
```
[main]
show_cursor=True
# disable screen timeouts
use_dpms=False
screen_blanking=off
# disable Fullscreen and start in a specified size
# 480 x 320 is the minimum size to target
width=480
height=320
# setting width or height will disable fullscreen and it's the intended behavior
```
At this point you can add your actual printer section with the IP (and port of needed) to the config or/and add a virtual printer
# Optional: Virtual printer
You may use a virtual printer like it's described in the [klipper docs](https://www.klipper3d.org/Debugging.html#testing-with-simulavr),
or it's [alternative that uses docker](https://github.com/mainsail-crew/virtual-klipper-printer)
Using a Virtual printer will need klipper and moonraker need to be installed in the machine too.
!!! note
The virtual printer has various limitations,
like constant temperature and limited availability of pins,
it's not a limitation of klipperscreen
## Optional: Configure the IDE
* Set interpreter to the virtual environment created
* Set the run configuration to `KlipperScreen/screen.py`
-49
View File
@@ -1,49 +0,0 @@
# Frequently Asked Questions
## What is the minimum Python version required?
The minimum required version of Python is 3.8. This requirement is checked during installation.
??? "Using Older Python Versions"
If you need to use Python 3.7, you can revert KlipperScreen to v0.4.1
Connect to the printer via SSH and:
```sh
cd ~/KlipperScreen
git reset --hard v0.4.1
```
## Does KlipperScreen work with OctoPrint?
KlipperScreen is not designed to work with OctoPrint, and there are no plans to make it compatible.
## Can I use KlipperScreen as a desktop application?
Yes, you can use KlipperScreen as a desktop application. During installation, do not install it as a service. If you have already installed it as a service, you can disable it by running:
```sh
sudo systemctl disable KlipperScreen
```
Then, you can open the application via the menu when needed. You can also find the shortcut in `KlipperScreen/scripts/KlipperScreen.desktop`.
## Why did the title bar turn red and display CPU and RAM usage?
The red title bar indicating high CPU and RAM usage is a warning system. High resource usage can lead to issues, such as "timer too close" errors in Klipper. If this warning appears during an update or maintenance process, it is generally not an issue—just avoid starting a print job until the warning clears. You can use htop or similar tools from an SSH connection to check what’s consuming the resources.
## How can I switch between multiple printers?
KlipperScreen supports multiple printers. You can switch between them by configuring each printer's IP address in the KlipperScreen settings. This allows you to manage all your printers from a single interface, even if they are running on different hosts.
## Can I customize the KlipperScreen interface?
Yes, you can customize the KlipperScreen interface by editing the configuration files. Detailed instructions and options for customization can be found in the [documentation](https://klipperscreen.github.io/KlipperScreen/).
## What should I do if my touchscreen is not responding correctly?
If your touchscreen is not responding or has touch accuracy issues, check the [Touch Issues section](Troubleshooting/Touch_issues.md) in the troubleshooting guide. You may need to calibrate the touch settings or adjust the touch matrix.
## How do I update KlipperScreen?
To update KlipperScreen, follow the instructions in the [updating guide](Updating.md).
## What if I sometimes see the desktop instead of KlipperScreen?
If you sometimes see the desktop instead of KlipperScreen, and you only want to see KlipperScreen, you may have installed a distro with a full desktop environment. [Check these instructions](Troubleshooting/Desktop.md) on how to properly switch.
+62 -13
View File
@@ -1,32 +1,81 @@
# Hardware
KlipperScreen supports a variety of screens, with a minimum supported resolution of 480x320. Generally, if a device can display a GNU/Linux desktop, it should be compatible with KlipperScreen.
There are no recommended screens, but here are some guidelines:
## Supported Hardware
* There is no support for vertical/portrait mode, only widescreen
* Minimum resolution of 480x320
The following screens are known to work with KlipperScreen:
#### Hardware known to work
* [BTT PI TFT50](https://www.biqu.equipment/collections/lcd/products/bigtreetech-pi-tft50-v1-0-tft-display-for-raspberry-pi-3d-printer-part)
* [BTT HDMI5/7](https://biqu.equipment/products/bigtreetech-hdmi5-v1-0-hdmi7-v1-0)
* [Raspberry PI 7" Touchscreen](https://www.raspberrypi.org/products/raspberry-pi-touch-display/)
* [Hyperpixel 4](https://shop.pimoroni.com/products/hyperpixel-4)
* [3.5" Elegoo](https://www.elegoo.com/de/products/elegoo-3-5-inch-tft-lcd-screen)
* [3.5" RPi Display](http://www.lcdwiki.com/3.5inch_RPi_Display)
* [5" HDMI Display-B](http://lcdwiki.com/5inch_HDMI_Display-B)
* [VoCore](https://klipper.discourse.group/t/hardware-known-to-work-with-klipperscreen/35/7)
* [Android Phone](https://klipper.discourse.group/t/how-to-klipperscreen-on-android-smart-phones/1196)
* [WAVESHARE 4.3 inch DSI LCD](https://www.waveshare.com/4.3inch-dsi-lcd.htm)
* [Android phone](Android.md)
* [DFrobot DFR0550](https://wiki.dfrobot.com/5%27%27TFT-Display_with_Touchscreen_V1.0_SKU_DFR0550)
For more hardware known to work with KlipperScreen, visit the [Klipper Discourse](https://klipper.discourse.group/t/hardware-known-to-work-with-klipperscreen/35).
* [More known hardware in the klipper discourse](https://klipper.discourse.group/t/hardware-known-to-work-with-klipperscreen/35)
### Install
#### Configuration
1. **Install Your Screen**: Follow the manufacturer’s instructions for installing your screen. If you see a white screen, it indicates that the installation was not successful. Ensure that you can at least see a console.
2. **Install KlipperScreen**: Once the screen is properly installed and functioning, proceed to [install KlipperScreen](Installation.md).
Follow the manufacturer instructions on how to install your screen. In general if you see a white screen, then it's not properly installed, ensure that you at least see a console, Then ![install](Installation.md) KlipperScreen, if you are having troubles refer to the ![troubleshooting page](Troubleshooting.md) for further information.
## Screen Rotation
#### Touchscreen Calibration
Most people don't need to calibrate, but if you do need to calibrate your touchscreen, follow the below steps.
For information on screen rotation, refer to the [Rotation section](Troubleshooting/Rotation.md) in the troubleshooting guide.
Run this command:
```
DISPLAY=:0 xinput_calibrator --list
```
It will output something such as:
```
Device "wch.cn USB2IIC_CTP_CONTROL" id=6
```
## Touchscreen Touch Rotation
Find the ID of your display and put it in the following command:
```
DISPLAY=:0 xinput_calibrator -v --device <id from last command>
```
For touchscreen rotation and matrix issues, see the [Touch Issues section](Troubleshooting/Touch_issues.md#touch-rotation-and-matrix) in the troubleshooting guide.
#### Touchscreen touch rotation
If your touchscreen isn't registering touches properly after the screen has been rotated, you will need to apply a
transformation matrix. You can have the matrix be one of the following:
* 0°: `1 0 0 0 1 0 0 0 1`
* 90° Clockwise: `0 -1 1 1 0 0 0 0 1`
* 90° Counter-Clockwise: `0 1 0 -1 0 1 0 0 1`
* 180°: `-1 0 1 0 -1 1 0 0 1`
To check the current matrix, you will need your `<screen name>`
(which can be found via the last section, ex: "wch.cn USB2IIC_CTP_CONTROL").
Run the following command: `xinput list-props "wch.cn USB2IIC_CTP_CONTROL"`
It will output something such as:
```
Device '<screen name>':
Device Enabled (115): 1
Coordinate Transformation Matrix (116): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Calibration Matrix (247): -1.000000, 0.000000, 1.000000, 0.000000, -1.000000, 1.000000, 0.000000, 0.000000, 1.000000
libinput Calibration Matrix Default (248): -1.000000, 0.000000, 1.000000, 0.000000, -1.000000, 1.000000, 0.000000, 0.000000, 1.000000
libinput Send Events Modes Available (249): 1, 0
libinput Send Events Mode Enabled (250): 0, 0
libinput Send Events Mode Enabled Default (251): 0, 0
Device Node (252): "/dev/input/event0"
Device Product ID (253): 6790, 58083
```
You can verify by checking that the 'Coordinate Transformation Matrix' or 'libinput Calibration Matrix'.
You can test a change by running: `xinput set-prop "<screen name>" 'Coordinate Transformation Matrix' <matrix>`
Replace matrix with one of the options above, such as: `1 0 0 0 1 0 0 0 1`
To make this permanent, modify the file `/etc/udev/rules.d/51-touchscreen.rules` and add following line:
```
ACTION=="add", ATTRS{name}=="<screen name>", ENV{LIBINPUT_CALIBRATION_MATRIX}="<matrix>"
```
-203
View File
@@ -1,203 +0,0 @@
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)
![preview](../img/hardware/rpi35a.jpg)
!!! abstract "Disclaimer"
This is based on my own experience, and it's provided for general information
and does not constitute as advice of any kind.
## Initial install
This screens connect to the [GPIO](https://en.wikipedia.org/wiki/General-purpose_input/output)
they were usually installed via repositories named LCD-show ([1](https://github.com/waveshare/LCD-show), [2](https://github.com/goodtft/LCD-show)),
however in the bookworm release there is a simpler solution
```sh
sudo nano /boot/firmware/config.txt
```
at the bottom add:
```
dtoverlay=piscreen,drm
```
???+ info
in this context drm stands for [Direct Rendering Manager](https://en.wikipedia.org/wiki/Direct_Rendering_Manager)
I had to comment out (add # at the start) vc4 or it would boot into a blackscreen
```
#dtoverlay=vc4-kms-v3d
```
Close the nano editor using `ctrl`+`x` (exit), then `y` for yes (save).
```sh
sudo reboot
```
## Wrong colors or graphical corruption
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
```
dtoverlay=piscreen,drm,speed=22222222
```
??? info "About speed"
As you may predict speed has a big impact in usability as it dictates how often the display will refresh
If i understand the [involved drivers](https://github.com/torvalds/linux/blob/65d287c7eb1d14e0f4d56f19cec30d97fc7e8f66/drivers/spi/spi-bcm2835.c#L1068)
correctly, the spi speed is calculated as:
`core_clock / core_divisor`
The divisor must be a multiple of 2, that ranges between 2 and 65536
Core clock in the case of Pi 3 would be 400mhz
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)
reboot to test any changes.
## Rotation
You can rotate the screen adding a rotate line with the degrees [0, 90, 180, 270]
```
dtoverlay=piscreen,drm,rotate=180
```
Screen rotation will require adjusting the touch matrix see [Touch issues](../../Troubleshooting/Touch_issues/)
!!! bug
Raspberry linux Kernel v6.1.77 has a bug in the dtb and rotate doesn't work
The fix has been merged in linux v6.6
you can copy the dtb from the new kernel into the old one if needed
## Console
To make the console work:
```sh
sudo nano /boot/firmware/cmdline.txt
```
add at the start or end:
```
fbcon=map:11
```
!!! warning "Important"
Do not add newlines to the file, it must be 1 line with the options separated by spaces
## Type (B-v2)
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 appropriate folder:
```
git clone https://github.com/waveshare/LCD-show
sudo cp LCD-show/waveshare35b-v2-overlay.dtb /boot/firmware/overlays/waveshare35b-v2.dtbo
```
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
this screen was never super responsive but with this configuration is quite tolerable in my opinion.
``` title="/boot/firmware/config.txt"
dtoverlay=waveshare35b-v2:rotate=270,drm,speed=30000000,fps=60
```
```ini title="example of dmesg output"
...
[ 14.926080] input: ADS7846 Touchscreen as /devices/platform/soc/3f204000.spi/spi_master/spi0/spi0.1/input/input0
[ 15.015895] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.021701] fb_ili9486: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.022279] SPI driver fb_ili9486 has no spi_device_id for ilitek,ili9486
[ 15.022555] fb_ili9486 spi0.0: fbtft_property_value: regwidth = 16
[ 15.022572] fb_ili9486 spi0.0: fbtft_property_value: buswidth = 8
[ 15.022588] fb_ili9486 spi0.0: fbtft_property_value: debug = 0
[ 15.022600] fb_ili9486 spi0.0: fbtft_property_value: rotate = 270
[ 15.022615] fb_ili9486 spi0.0: fbtft_property_value: fps = 60
[ 15.022627] fb_ili9486 spi0.0: fbtft_property_value: txbuflen = 32768
[ 15.826386] graphics fb1: fb_ili9486 frame buffer, 480x320, 300 KiB video memory, 32 KiB buffer memory, fps=62, spi0.0 at 30 MHz
...
```
by default with this configuration the output will be on the secondary framebuffer
so a file must be created to address this issue:
``` title="/usr/share/X11/xorg.conf.d/99-fbdev.conf"
Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Option "fbdev" "/dev/fb1"
Option "SwapbuffersWait" "true"
EndSection
```
!!! tip
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:
```ini title="example of /var/log/Xorg.0.log"
[ 172.061] (II) LoadModule: "modesetting"
[ 172.061] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 172.064] (II) Module modesetting: vendor="X.Org Foundation"
[ 172.064] compiled for 1.21.1.7, module version = 1.21.1
[ 172.064] Module class: X.Org Video Driver
[ 172.064] ABI class: X.Org Video Driver, version 25.2
[ 172.065] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 172.067] (WW) Falling back to old probe method for modesetting
[ 172.068] (EE) open /dev/dri/card0: No such file or directory
[ 172.068] (WW) Falling back to old probe method for modesetting
[ 172.068] (EE) open /dev/dri/card0: No such file or directory
[ 172.068] (EE) No devices detected.
[ 172.068] (EE)
Fatal server error:
[ 172.068] (EE) no screens found(EE)
```
so I checked out the configuration and found:
``` title="default contents of /usr/share/X11/xorg.conf.d/20-noglamor.conf"
Section "Device"
Identifier "kms"
Driver "modesetting"
Option "AccelMethod" "msdri3"
Option "UseGammaLUT" "off"
EndSection
```
did:
```
sudo nano /usr/share/X11/xorg.conf.d/20-noglamor.conf
```
deleted everything and saved.
then removed the write permissions to prevent being regenerated:
```
sudo chmod 444 /usr/share/X11/xorg.conf.d/20-noglamor.conf
```
at this point the screen was working, but the touchscreen needed to be rotated:
``` title="rules for rotation: /etc/udev/rules.d/51-touchscreen.rules"
ACTION=="add", ATTRS{name}=="ADS7846 Touchscreen", ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1 0 0 1"
```
after a reboot the waveshare type b rev2 was working perfectly at this point.
-56
View File
@@ -1,56 +0,0 @@
Screens that use HDMI should work out of the box
you may need to configure the resolution in RaspberryOS Bookworm
you can do this by editing the kernel commandline
```
sudo nano /boot/firmware/cmdline.txt
```
!!! warning "Important"
Do not add newlines to the file, it must be 1 line with the options separated by spaces
for example:
```
video=1920x1080
```
more complex example:
```
video=HDMI-A-1:1920x1080M@60,rotate=90,reflect_x
```
???+ "Find the identifier use xrandr"
on a terminal run:
```sh
DISPLAY=:0 xrandr
```
it will output something like:
```
Screen 0: minimum 320 x 200, current 1024 x 600, maximum 8192 x 8192
HDMI-1 connected primary 1024x600+0+0 (normal left inverted right x axis y axis) 800mm x 450mm
```
in this case the identifier is HDMI-1 and a simple cmdline arg would be something like:
`video=HDMI-1:1024x600@60`
Valid mode specifiers:
```
<xres>x<yres>[M][R][-<bpp>][@<refresh-rate>][i][m][eDd]
```
options on brackets are optional
| Option | Description |
|-----------------|----------------------------------------------------------------------------------------|
| 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 usually 24 |
| @<refresh-rate> | acceptable refresh rates are 50, 60, 70 or 85 Hz only |
| e | Force enable |
| D | Force enable Digital mode |
| d | Disable |
For more info read [modedb default video mode support](https://docs.kernel.org/fb/modedb.html)
+40 -59
View File
@@ -1,73 +1,54 @@
# Installation
## First Steps
#### Setup Raspberry Pi
This install process is meant for Raspbian non-desktop version aka Raspbian Lite.
1. **Install the Screen**: Follow the manufacturer’s instructions for installing your screen. Some screens may require additional software, while others might not.
2. **Test the Screen**: Ensure your hardware is functioning correctly by testing it with RaspberryOS, Ubuntu, or your preferred distribution.
3. **Proceed to Install KlipperScreen**: Once you’ve confirmed that the screen is working, you can proceed with installing KlipperScreen.
If you have installed it on the GUI version, then use `sudo raspi-config` to set boot to console by choosing the following options in order:
## Setup
* 1 System Options
* S5 Boot / Auto Login
* B1 Console
The installation script is designed for RaspberryOS Lite, but it should work on other Debian derivatives as well.
#### Klipper and Moonraker Installation
## Auto Install
Follow the instructions to install Klipper and Moonraker.
* klipper: https://www.klipper3d.org/Installation.html
* moonraker: https://moonraker.readthedocs.io/en/latest/installation/
[KIAUH](https://github.com/dw-0/kiauh) is a tool that helps you install or upgrade Klipper, Moonraker, Mainsail, and other extensions.
In moonraker.conf ensure that 127.0.0.1 is a trusted client for moonraker, such as in this example:
```
[authorization]
trusted_clients:
127.0.0.1
```
![KIAUH Screenshot](img/install/KIAUH.png)
Note: `force_logins: true` requires the moonraker api key in [KlipperScreen.conf](Configuration.md)
Visit [KIAUH on GitHub](https://github.com/dw-0/kiauh) to learn more and view its documentation.
If you wish to use the update manager feature of moonraker for KlipperScreen, add the following block into the moonraker
configuration:
```
[update_manager KlipperScreen]
type: git_repo
path: ~/KlipperScreen
origin: https://github.com/jordanruthe/KlipperScreen.git
env: ~/.KlipperScreen-env/bin/python
requirements: scripts/KlipperScreen-requirements.txt
install_script: scripts/KlipperScreen-install.sh
```
## Manual Install
Follow these steps to manually install KlipperScreen:
Clone the KlipperScreen repository and run the installation script:
```sh
#### KlipperScreen Installation
Execute the following commands:
```
cd ~/
git clone https://github.com/KlipperScreen/KlipperScreen.git
./KlipperScreen/scripts/KlipperScreen-install.sh
```
This script will install the necessary packages, create a Python virtual environment at `~/.KlipperScreen-env`, and install a systemd service file.
!!! tip
If you need a custom location for the configuration file, you can add the `-c` or `--configfile` option to the systemd file and specify the desired location.
## Moonraker Configuration
1. Ensure that the IP of the device is a trusted client in `moonraker.conf`:
```ini
[authorization]
trusted_clients:
127.0.0.1
```
Alternatively, add the [Moonraker API key](https://moonraker.readthedocs.io/en/latest/installation/#retrieving-the-api-key) to `KlipperScreen.conf`.
2. To use the update manager feature of Moonraker for KlipperScreen, add the following block to `moonraker.conf`:
```ini
[update_manager KlipperScreen]
type: git_repo
path: ~/KlipperScreen
origin: https://github.com/KlipperScreen/KlipperScreen.git
virtualenv: ~/.KlipperScreen-env
requirements: scripts/KlipperScreen-requirements.txt
system_dependencies: scripts/system-dependencies.json
managed_services: KlipperScreen
```
!!! tip
If you see warnings in other UIs, ignore them until KlipperScreen finishes installing and Moonraker is restarted.
## Printer Configuration
Add the following basic configurations to your `printer.cfg` file for correct functionality:
```ini
[virtual_sdcard]
path: ~/printer_data/gcodes
[display_status]
[pause_resume]
git clone https://github.com/jordanruthe/KlipperScreen.git
cd ~/KlipperScreen
./scripts/KlipperScreen-install.sh
```
## Macros
This script will install packages that are listed under manual install, create a python virtual environment at
~/.KlipperScreen-env and install a systemd service file.
You may need additional macros for the printer to function as expected. For more information, [read the macros page](macros.md).
If you need a custom location for the configuration file, you can add -c or --configfile to the systemd file and specify
the location of your configuration file.
At this point KlipperScreen should be working, check out the [hardware page](Hardware.md) if you still haven't installed the screen, or head to the [troubleshooting page](Troubleshooting.md) if you are having problems
-132
View File
@@ -1,132 +0,0 @@
Multiple instances of KlipperScreen
*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.
The instances will be independent of each other and not a mirror.
## Notes on Performance
Beware that running multiple instances on the same device at the same time will consume more resources (memory and processing time)
and can be taxing on lower end hardware, in my testing even a Raspberry Pi 3A can run multiple instances of KS,
providing that it doesn't have any cameras or other advanced features.
!!! tip
You can view the system resource usage in the "System" panel of KlipperScreen or directly at the console with htop
Beware that even if the load seems okay at idle, during a print heavy dynamic loads can push the device over the threshold
and that may result in a Klipper error/failure, if it's running on the same device.
Performance will heavily depend on the devices used,
if one of the devices is connected through the network, like for example a VNC client or Android Xserver-XSDL client,
then the network will influence the response time of the interface.
## Option 1: Using the startup script method
*Advantage:* relatively easy to setup
*Disadvantage:* starting or stopping the service will affect all the instances
The default KlipperScreen service will launch the script
```sh
nano $HOME/KlipperScreen/scripts/launch_KlipperScreen.sh
```
Example script:
```sh
#!/bin/bash
/usr/bin/xinit $KS_XCLIENT &
DISPLAY=192.168.18.147:0 $KS_XCLIENT -c $HOME/.config/KlipperScreen/tablet.cfg &
wait
```
In this example the script launches a local instance for a screen connected to the host
then it launches a server for xserver-xsdl client that is running at the defined IP,
notice that the second instance uses a configuration that is specific to itself.
Dont forget to restart the service to load the changes
```sh
sudo systemctl restart KlipperScreen
```
## Option 2: Using a separate service
*Advantage:* stopping and starting the service will only affect the desired instance
*Disadvantage:* configuration and setup is more complex
Create a new service unit file
```sh
sudo nano /etc/systemd/system/KlipperScreen_tablet.service
```
Example of a service unit for an android tablet: (change the IP and username)
```ini title="KlipperScreen_tablet.service"
[Unit]
Description=KlipperScreen Tablet
StartLimitIntervalSec=0
After=systemd-user-sessions.service plymouth-quit-wait.service
ConditionPathExists=/dev/tty0
Wants=dbus.socket systemd-logind.service
After=dbus.socket systemd-logind.service
After=moonraker.service
[Service]
Type=simple
Restart=always
RestartSec=2
SupplementaryGroups=klipperscreen
# username
User=pi
WorkingDirectory=/home/pi/KlipperScreen
Environment="DISPLAY=192.168.18.147:0"
# Absolute paths are required, separate config is optional
ExecStart=/home/pi/.KlipperScreen-env/bin/python /home/pi/KlipperScreen/screen.py -c /home/pi/.config/KlipperScreen/tablet.cfg
[Install]
WantedBy=multi-user.target
```
Test your new service
```sh
sudo systemctl start KlipperScreen_tablet
```
Optional: After verifying it works, make it load when the system starts
```sh
sudo systemctl enable KlipperScreen_tablet
```
if you made a mistake in the config you'll have to reload the service unit
```sh
sudo systemctl daemon-reload
```
Add the new service to moonraker so it can be started and stopped from the UI
```sh
nano $HOME/printer_data/moonraker.asvc
```
In the example above it was `KlipperScreen_tablet`. Beware that is case sensitive
So in this case it would look something like this:
``` title="moonraker.asvc"
klipper_mcu
webcamd
MoonCord
KlipperScreen
KlipperScreen_tablet
moonraker-telegram-bot
moonraker-obico
sonar
crowsnest
octoeverywhere
```
Restart moonraker
```sh
sudo systemctl restart moonraker
```
-133
View File
@@ -1,133 +0,0 @@
# Panels
### Splash Screen
![Splash_screen](img/panels/splash_screen.png)
!!! tip
The *'power on'* button will only appear if a power device exists in moonraker and that power device name
should be added to `power_devices` in the printer section of the klipperscreen configuration file
### Main Menu
![Main Menu](img/panels/main_panel.png)
### [Job Status](Panels/Job_status.md)
```py
panel: job_status
```
[![Job Status](img/panels/job_status.png)](Panels/Job_status.md)
### [Bed Level](Panels/Screws.md)
```py
panel: bed_level
```
[![Bed Level](img/panels/bed_level.png)](Panels/Screws.md)
### Bed Mesh
```py
panel: bed_mesh
```
![Bed Mesh](img/panels/bed_mesh.png)
### Console
```py
panel: console
```
![Console](img/panels/console.png)
### Extrude
```py
panel: extrude theme:material-dark
```
![Extrude](img/panels/extrude.png)
### Fan
```py
panel: fan
```
![Fan](img/panels/fan.png)
### Fine Tune
```py
panel: fine_tune
```
![Fine Tune Panel](img/panels/fine_tune.png)
### Gcode Macros
```py
panel: gcode_macros
```
![Gcode Macros Panel](img/panels/gcode_macros.png)
### Input Shapers
```py
panel: input_shaper
```
![Limits](img/panels/input_shaper.png)
### Limits
```py
panel: limits
```
![Limits](img/panels/limits.png)
### Menu
![Menu Panel](img/panels/menu.png)
### Move
```py
panel: move
```
![Move Panel](img/panels/move.png)
### Network
```py
panel: network
```
![Network Panel](img/panels/network.png)
### Power
```py
panel: power
```
![Power](img/panels/power.png)
### Gcodes / Print
```py
panel: gcodes
```
![Gcodes Panel](img/panels/gcodes.png)
### Retraction
```py
panel: retraction
```
![Limits](img/panels/retraction.png)
### Settings
```py
panel: settings
```
![Settings](img/panels/settings.png)
### Spoolman
```py
panel: spoolman
```
![Spoolman](img/panels/spoolman.png)
### [Temperature](Panels/Temperature.md)
```py
panel: temperature
```
[![Temperature](img/panels/temperature.png)](Panels/Temperature.md)
### Updater
```py
panel: updater
```
![Updater Panel](img/panels/updater.png)
### [Z Calibrate](Panels/Zcalibrate.md)
```py
panel: zcalibrate
```
[![Z Calibrate](img/panels/zcalibrate.png)](Panels/Zcalibrate.md)
-28
View File
@@ -1,28 +0,0 @@
# Job Status
Also known as "Print Status" or the "printing panel" shows the relevant information of the current print.
![Screenshot](../img/panels/job_status.png)
!!! tip
the third row shows the LCD message (`M117`)
This panel has more information than it shows by default, just click/tap the corresponding the status buttons to access the extra information
## Position info
![speed_screenshot](../img/panels/job_status_speed.png)
!!! note
Layer is calculated from object height, it may not be accurate if variable layer is used
If that is the case use the Layer Progress method described in the [Quicktips](../Quicktips.md#layer-progress)
## Extrusion info
![extrusion_screenshot](../img/panels/job_status_extrusion.png)
## Time info
![time_screenshot](../img/panels/job_status_time.png)
## Extra temperature items
By default, only extruder and bed temperatures will be available but additional items can be defined
using ["titlebar_items" in the config](../Configuration.md#printer-options)
-54
View File
@@ -1,54 +0,0 @@
# Bed level
![Bed Level](../img/panels/bed_level.png)
For this panel to appear in the menu `[bed_screws]` or `[screws_tilt_adjust]` need to be defined in Klipper config (printer.cfg)
!!! Important
* `[bed_screws]` uses nozzle positions (nozzle above the screw) [Read Klipper doc entry](https://www.klipper3d.org/Config_Reference.html#bed_screws)
* `[screws_tilt_adjust]` uses probe positions (probe above the screw) [Read Klipper doc entry](https://www.klipper3d.org/Config_Reference.html#screws_tilt_adjust)
The corner buttons in KlipperScreen place the nozzle above the screw to do the ["paper test"](https://www.klipper3d.org/Bed_Level.html?h=paper#the-paper-test).
When `[screws_tilt_adjust]` is defined a couple of things happen:
* A button named "Screws adjust" appears, it runs `SCREWS_TILT_CALCULATE` when is pressed,
and reports the amount to be adjusted into the labels of the corner buttons.
* `[bed_screws]` is now ignored by KlipperScreen. (explained below)
* The corner buttons are now `[screws_tilt_adjust]` coordinates with the probe offset applied. (explained below)
### Why `[bed_screws]` are ignored/not used?
`[screws_tilt_adjust]` positions with offset will be used over `[bed_screws]`, because if the probe offset is changed or
the difference between `[bed_screws]` and `[screws_tilt_adjust]` wasn't calculated correctly,
the "Screws adjust" button stops working correctly.
### Why the probe offset is applied to `[screws_tilt_adjust]`?
Because the corner buttons in KlipperScreen should place the nozzle above the screw to do the ["paper test"](https://www.klipper3d.org/Bed_Level.html?h=paper#the-paper-test).
It doesn't affect the function of `SCREWS_TILT_CALCULATE`, which will go to the defined positions.
## Is `BED_SCREWS_ADJUST` supported?
No, but you can achieve the same thing by using the corner buttons and going in a circle pattern adjusting until desired.
`BED_SCREWS_ADJUST` is just a helper that moves to the screws in sequence
## Limitations
The panel doesn't support more than 9 screws or grids bigger than 3x3.
## Rotation
The layout can be rotated if the screen is not directly in front of the machine.
in the printer configuration you would add screw_rotation: 90
Valid values are 0 90 180 270
## Inversion
The layout will be inverted if an axis is inverted in the move panel
## Is there an alternative?
If you have a reliable probe, define `[bed_mesh]` in Klipper config, remove the springs
and use some thread-locker or locking nuts to fix the bed to the gantry, let the probe do a mesh save it and forget about this.
-23
View File
@@ -1,23 +0,0 @@
# Temperature
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:
## Preheat
[Define profiles](../Configuration.md#preheat-options) to quickly change the target temperature of multiple selected devices.
This is the default mode when not printing.
![Preheat_screenshot](../img/panels/temperature.png)
## Delta adjust
Change the target of the selected devices, the amount is selectable.
This is the default mode while printing
![Delta_screenshot](../img/panels/temperature_delta.png)
## Direct input with keypad
Allows to set the exact temperature using the keypad.
![Keypad_screenshot](../img/panels/temperature_keypad.png)
-61
View File
@@ -1,61 +0,0 @@
# Zcalibrate
This panel supports various modes of operation to assist in the calibration of the Z axis of the machine.
It's strongly suggested to read Klipper documentation about [Bed level](https://www.klipper3d.org/Bed_Level.html)
![Screenshot](../img/panels/zcalibrate.png)
## Buttons
* "Start" will initiate the only method available, or ask the user if multiple methods are available.
!!! note
KlipperScreen will automatically Home(`G28`) if needed
* The raise(+) and lower(-) buttons send `TESTZ Z=distance` where distance is selected in the bottom row.
* Accept will send `ACCEPT`
* Abort will send `ABORT`
## Calibration methods
### Probe (`PROBE_CALIBRATE`)
Available when a probe is defined. (BL-Touch is a probe)
KlipperScreen will try to position the probe in the correct place before sendind a `PROBE_CALIBRATE`
??? info "Search order to select location"
1. `calibrate_x_position` and `calibrate_y_position` in [KlipperScreen.conf](https://klipperscreen.readthedocs.io/en/latest/Configuration/#printer-options)
Both need to be configured, probe offsets are not applied. This is considered an override
2. Probe at the [zero reference position of the mesh](https://www.klipper3d.org/Bed_Mesh.html#configuring-the-zero-reference-position)
3. If `[safe_z_home]` is defined, those values are used. Unless `Z_ENDSTOP_CALIBRATE` is available.
In other words, only use `[safe_z_home]` if `z_virtual_endstop` is used
4. If the kinematics are `delta` probe is placed at 0, 0
5. Probe at the center of the `bed_mesh`
6. Probe at the center of the axes (`position_max` / 2)
Klipper documentation: [Calibrating probe Z offset](https://www.klipper3d.org/Probe_Calibrate.html#calibrating-probe-z-offset)
### Endstop (`Z_ENDSTOP_CALIBRATE`)
Available when a physical endstop is defined for `[stepper_z]`
Klipper documentation: [Calibrating a Z endstop](https://www.klipper3d.org/Manual_Level.html#calibrating-a-z-endstop)
### Bed mesh (`BED_MESH_CALIBRATE`)
Available when a probe is not defined and `[bed_mesh]` is defined
this mode lets you create a mesh leveling bed using the paper test in various points.
!!! warning
DO NOT adjust the bed screws while using this mode.
Adjust the screws using the [bed screws](Screws.md) panel before running this tool.
### Delta Automatic/Manual (`DELTA_CALIBRATE`)
Available when the kinematics are defined as delta.
Klipper documentation: [Delta calibration](https://www.klipper3d.org/Delta_Calibrate.html)
### Axis Twist Compensation (`AXIS_TWIST_COMPENSATION_CALIBRATE`)
Available when `[axis_twist_compensation]` is defined in the Klipper configuration.
Klipper documentation: [Axis Twist Compensation](https://www.klipper3d.org/Axis_Twist_Compensation.html)
-168
View File
@@ -1,168 +0,0 @@
# Quicktips
quick tips, without much explanation
## Hide macros, outputs or fans
Macros can be hidden directly from the interface in the macro settings.
You can also hide them and other devices by prefixing the name with an underscore.
Lets hide a temperature_fan:
```ini
[temperature_fan fan1]
[temperature_fan _fan2]
```
fan1 will show in the interface, but _fan2 will be hidden.
## Layer Progress
* [PrusaSlicer](#prusaslicer)
* [Cura](#cura)
* [ideaMaker](#ideamaker)
* [OrcaSlicer](#orcaslicer)
Follow this steps to provide the current layer in the printing information.
![speed_screenshot](img/panels/job_status_speed.png)
#### PrusaSlicer:
* Open PrusaSlicer
* Go to: `Printer Settings` > `Custom Gcode` > `Start Gcode`
```ini
SET_PRINT_STATS_INFO TOTAL_LAYER=[total_layer_count]
```
Printer Settings > Custom Gcode > After layer change Gcode
```ini
SET_PRINT_STATS_INFO CURRENT_LAYER={layer_num + 1}
```
#### PrusaSlicer Layer Messages
* Open PrusaSlicer
* Go to: `Printer Settings` > `Custom Gcode` > `After layer change Gcode`
* Add this:
```ini
M117 Layer {layer_num+1}/[total_layer_count] : {filament_settings_id[0]}
```
![Layer_progress](img/quicktips/PS_SS_Layer_progress.png)
#### Cura
Cura doesn't have a way to use this directly (the only "g-code on layer change" post-processing plugin doesn't support variables),
so the only way to work around is by adding a replacement post-processing script and a specific macro to Klipper.
To add the script to Cura, use the following steps:
* Open Cura
* Open the `Extensions` menu, then `Post processing`, and click on `Modify G-Code`
* Click the `Add Script` button, and select `Search and Replace` from the options
* On the `Search` textbox, enter this:
```
;(LAYER|LAYER_COUNT)\:(\d+)
```
* On the `Replace` textbox, enter this:
```
;\1:\2\n_CURA_SET_PRINT_STATS_INFO \1=\2
```
* Tick the `Use Regular Expressions` checkbox
* Click Close
In Klipper, add this macro to your printer.cfg:
```ini
[gcode_macro _CURA_SET_PRINT_STATS_INFO]
gcode:
{% if params.LAYER_COUNT is defined %}
SET_PRINT_STATS_INFO TOTAL_LAYER={params.LAYER_COUNT}
{% endif %}
{% if params.LAYER is defined %}
SET_PRINT_STATS_INFO CURRENT_LAYER={(params.LAYER | int) + 1}
{% endif %}
```
Then save the changes and restart Klipper.
After this, any new file sliced in Cura will tell Klipper how to handle the layer values
#### Cura Layer Messages
Install the extension: `Display Filename and Layer on LCD`
#### IdeaMaker
* Open IdeaMaker
* Got to: `Slice` > `Admin templates` > `Click on your template` > `edit`
* Select the tabs named `Gcode` > `Layer Change Gcode`
* Paste this:
```ini
SET_PRINT_STATS_INFO TOTAL_LAYER={total_layers}
SET_PRINT_STATS_INFO CURRENT_LAYER={layer_index}
```
!!! note
`{total_layers}` doesn't seem to be available in the Start gcode (at least on IdeaMaker 4.3.2)
#### IdeaMaker Layer Messages
* Open IdeaMaker
* Go to: `Slice` > `Manage templates` > `Click on your template` > `Edit`
* Select the tab named `Gcode` > `Layer Change Gcode`
* Paste this:
```ini
M117 Layer {layer_index} / {total_layers}
```
#### OrcaSlicer
* Open OrcaSlcicer
* Go to Prepare or Preview and in the printer section click `Edit Preset` > `Machine G-code`
* In `Start Gcode` add:
```ini
SET_PRINT_STATS_INFO TOTAL_LAYER=[total_layer_count]
```
* In `Layer change Gcode` add:
```ini
SET_PRINT_STATS_INFO CURRENT_LAYER={layer_num + 1}
```
#### OrcaSlicer Layer Messages
* Open OrcaSlicer
* Go to Prepare or Preview and in the printer section click `Edit Preset` > `Machine G-code`
* Add this to "Layer Change Gcode":
```ini
M117 Layer {layer_num+1}/[total_layer_count] : {filament_settings_id[0]}
```
![Layer_progress](img/quicktips/OrcaSlicer-progress.png)
+16 -63
View File
@@ -1,80 +1,33 @@
# Theming
## Custom Printer Select Icons
To create a custom theme, create a folder in: _${KlipperScreen_Directory}/styles/_
When multiple printers are configured, you can customize their icons by placing an icon file in the following directory:
The folder name will be the theme name, in that folder create another folder named `images` this is where the icons should be placed. The icons must be SVG files and they need to have specific names that are defined in the code, use the default theme as a reference for the names or check the code.
`~/KlipperScreen/styles/printers/`
To edit colors and styles, create a css file named `style.css` you can use the contents of another theme as a reference.
- The icon file name must match the exact printer name as configured in `KlipperScreen.conf`.
- Supported formats for icons are SVG or PNG.
### Example 1
Example:
```sh
cp /path/to/printer_icon.svg ~/KlipperScreen/styles/printers/printer_name.svg
sudo service KlipperScreen restart
```
## Custom Themes
To create a custom theme for KlipperScreen, follow these steps:
1. **Create Theme Directory:**
- Navigate to `~/KlipperScreen/styles/`.
- Create a new folder with the desired theme name.
2. **Add Icon Images:**
- Inside the theme folder, create a subfolder named `images`.
- Place your SVG icon files here. Refer to the code or default theme for specific icon names used by KlipperScreen.
3. **Customize Styles:**
- Create a CSS file named `style.css` within your theme folder.
- Use existing themes or the default theme as a reference for CSS styles.
Example procedure for creating a theme named `mytheme`:
```sh
cd ~/KlipperScreen/styles/
# Create the directory
mkdir -p mytheme/images
# Copy required SVG icons
cp material-light/images/* mytheme/images/
# Create custom styles
echo "window { background-color: #FFFFFF; }" > style.css
```
4. **Apply the Theme:**
- After creating your theme, restart the KlipperScreen service:
```sh
sudo service KlipperScreen restart
```
- Select you theme from the list in the options.
### Example: Creating a Custom Theme
```sh
cd ~/KlipperScreen/styles/
cd ~/KlipperScreen/styles
mkdir -p mytheme/images
cd mytheme
cp ../default_theme/images/* images/
echo "window { background-color: #FFFFFF; }" > style.css
cp ../z-bolt/images/* images/
echo "window { background-color: red;}" > style.css
sudo service KlipperScreen restart
```
### Example: Custom Background and CSS
At this point `mytheme` should be on the list of themes, and when you select it the background should be red.
Creating a custom background from Mainsail sidebar using Z-bolt icons:
```css
/* style.css */
window {
background-image: url("/home/pi/mainsail/img/background.svg");
}
### Example 2
button {
background-color: rgba(0,0,0,0);
border-radius: 2em;
}
Creating a custom background from Mainsail sidebar and this css using Z-bolt icons
```
window { background-image: url("/home/pi/mainsail/img/background.svg");}
button {background-color: rgba(0,0,0,0); border-radius:2em;}
```
![Custom theme example with background](img/theming/theme_example.png)
![Custom theme example with background](img/theme_example.png)
-66
View File
@@ -1,66 +0,0 @@
# Thumbnails
KlipperScreen can display thumbnails in the file browser and as previews in the print status.
![Job Status](img/panels/job_status.png)
Recommended sizes for thumbnails:
* 300 x 300 - For the larger previews.
* 32 x 32 - For the smaller thumbnails used in lists.
!!! note
Other sizes should work, but keep in mind bigger thumbnails are slower to load and can produce bigger gcode files.
## Select your slicer:
* [PrusaSlicer](#prusaslicer)
* [OrcaSlicer](#orcaslicer)
* [SuperSlicer](#superslicer)
* [Cura](#cura)
* [ideaMaker](#ideamaker)
### PrusaSlicer
In “Expert” mode PrusaSlicer has an option in the “Printer Settings” tab to activate previews.
Under General / Firmware.
![PrusaSlicer](img/quicktips/PrusaSlicer-thumbnails.png)
### OrcaSlicer
Usually works out of the box, the setting is in the printer settings under advanced:
![OrcaSlicer](img/quicktips/OrcaSlicer-thumbnails.png)
### SuperSlicer
In “Expert” mode SuperSlicer has some very convenient options in the “Printer Settings” tab to activate and customize the previews.
![SuperSlicer](img/quicktips/SuperSlicer-thumbnails.png)
### Cura
#### Option #1 A post processing script (Cura 4.9+)
1. With Cura open, navigate to Extensions, Post Processing, Modify G-Code
2. Click Add a script, and select Create Thumbnail
3. Set both Width and Height to 300
4. Click Add a script, and select Create Thumbnail
5. Set both Width and Height to 32
6. Click Close
#### Option #2 A plugin (Cura 4.7+)
[Cura2Moonraker](https://github.com/emtrax-ltd/Cura2MoonrakerPlugin)
![Cura](img/quicktips/Cura-thumbnails.png)
### ideaMaker
1. Open the Advanced tab in the printer settings
2. Enable "GCode Thumbnails for Octoprint and Mainsail"
3. Set both Width and Height to 300
![ideaMaker](img/quicktips/IdeaMaker-thumbnails.png)
+13 -38
View File
@@ -1,44 +1,19 @@
# Translations
## Create Translations
Translations are hosted on Weblate:
You can use a editor such as [poedit](https://poedit.net/) to assist in translations. This guide will assume that you
will be using poedit.
<a href="https://hosted.weblate.org/engage/klipperscreen/">
<img src="https://hosted.weblate.org/widget/klipperscreen/open-graph.png" alt="Weblate" />
</a>
This guide will refer to `language designation`. This can be found from running `echo $LANG` on your pi, as long as you
have set your pi up for your preferred language.
Thanks to the Weblate team for supporting the Open-Source community.
## Manual way:
This is currently discouraged, but if you want you can make your changes manually
### Updating an existing translation:
You can use an editor such as [poedit](https://poedit.net/) to assist in translations.
* Edit `ks_includes/locals/{ISO 639 lang code}/LC_MESSAGES/KlipperScreen.po`
To test your translation:
In poedit go to `File -> Compile to MO`. Save it on the same folder, and restart KlipperScreen
### Adding a new Language:
Example using poedit
#### New Language
* Select `Create a new translation` or `File -> New from POT/PO` and select `ks_includes/locals/KlipperScreen.pot`.
!!! important
Do not edit the POT file as is automatically generated and your changes will be lost.
* Save the file as `ks_includes/locales/{ISO 639 lang code}/LC_MESSAGES/KlipperScreen.po`
* Select `File -> Compile to MO`. Save it on the same folder, and restart KlipperScreen
* Enter your language designation.
* Create the translations
* Save the file as `ks_includes/locales/{LANGUAGE DESIGNATION}/KlipperScreen.po`.
* Select `File -> Compile to MO`. Save this file as `ks_includes/locales/{LANGUAGE DESIGNATION}/KlipperScreen.mo`
!!! note
[Wikipedia ISO 639 Language Codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
Once you have restarted KlipperScreen, select it from the list in the settings.
If you edited and recompiled, you need to restart KlipperScreen to reload the translation.
### Contributing:
[Attach your translation on a GitHub issue or create a PR](Contact.md)
Once you have followed those steps, as long as your pi is set up for your preferred language, KlipperScreen will
automatically use the translations provided in the file. KlipperScreen currently does not detect RTL languages, but
support for RTL is planned in the near future.
+29 -129
View File
@@ -1,148 +1,48 @@
# Troubleshooting
This page will have common problems and common solutions to those problems.
## First Steps
The first step to troubleshooting any problem is getting the cause of the error.
The first step to troubleshooting any problem is getting the cause of the error. KlipperScreen log output will occur
in two places. Check for the file `/tmp/KlipperScreen.log` and look at the contents by running
`cat /tmp/KlipperScreen.log` or grabbing the file over WinSCP or another scp program.
* Find KlipperScreen.log:
If that file is non-existent, there is a problem in KlipperScreen starting up. To get the error output in this case,
run `journalctl -xe -u KlipperScreen`.
!!! warning "Important"
This log file should be provided if you ask for support.
Depending on your setup the file could be accessible from the web interface alongside other logs
## Common Errors
| Mainsail | Fluidd |
|:-------------------------------------------------------:|:---------------------------------------------------:|
| ![mainsail_logs](img/troubleshooting/logs_mainsail.png) | ![fluidd_logs](img/troubleshooting/logs_fluidd.png) |
### Problems occurring before the log file appears
if you can't find it in the web interface, you will need to grab the system logs as explained below
This section will detail problems that may happen before the log file has been created. Each section will start with a
relevant line from the journalctl output.
??? tip "Alternative: Using sftp to grab the logs"
It is possible to use sftp to grab the log, with an application like Filezilla or WinSCP
With some file-browsers like Dolphin, just type the address for example: `sftp://pi@192.168.1.105/home/`
Locate the logs at `~/printer_data/logs`or in `/tmp/` if the former doesn't exist.
## System logs
If [KlipperScreen.log](#first-steps) doesn't exist open a terminal in the host (typically from SSH) and
run this commands:
??? info "Multiple printers on the same host"
If the host is running multiple printers you may need to change `printer_data` to `printer_1_data`
```sh
systemctl status KlipperScreen > ~/printer_data/logs/KlipperScreen_systemctl.log
journalctl -xe -u KlipperScreen > ~/printer_data/logs/KlipperScreen_journalctl.log
cp /var/log/Xorg.0.log ~/printer_data/logs/KlipperScreen_Xorg.log
cp -n /tmp/KlipperScreen.log ~/printer_data/logs/KlipperScreen.log
#### Cannot open virtual Console
```
xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
```
This will copy all the relevant logs to the folder described above, so they can be downloaded from the browser.
With the method described in the first section. You may need to press refresh or reload the page
* Check /etc/X11/Xwrapper.conf
This should have the line `allowed_users=anybody` in it
* Check /etc/group
Run the command `cat /etc/group | grep tty`. If you username is not listed under that line, you need to add it with the
following command (if you username is not 'pi' change 'pi' to your username):
`usermode -a -G tty pi`
??? tip "Alternative: inspect them directly on the terminal:"
!!! warning
Please do not copy-paste the output of the terminal when providing info for an issue,
most of the time this output will be incomplete, use the method described above
```sh
systemctl status KlipperScreen
journalctl -xe -u KlipperScreen
cat /var/log/Xorg.0.log
```
### Problems occurring with the log file
#### Screen shows console instead of KlipperScreen
Run the command `ls /dev/fb*`. If you have multiple devices, you may need to fix the X11 configuration.
## Screen shows console instead of KlipperScreen
Run the command `cat /usr/share/X11/xorg.conf.d/99-fbturbo.conf | grep /dev/fb`. Try modifying the file (
`sudo nano /usr/share/X11/xorg.conf.d/99-fbturbo.conf`) and change `/dev/fb0` to a different file listed in the
previous command (i.e. `/dev/fb1`).
![boot](img/troubleshooting/boot.png)
Once you have saved that file, restart KlipperScreen and it should show up on your display.
#### Screen is all white or blank
!!! abstract "If you see this line in the [system logs](#system-logs):"
```sh
xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
```
[Follow this steps](Troubleshooting/VC_ERROR.md)
!!! abstract "If you see this line in the [system logs](#system-logs):"
```sh
xinit[948]: /usr/lib/xorg/Xorg: symbol lookup error: /usr/lib/xorg/modules/drivers/fbturbo_drv.so: undefined symbol: shadowUpdatePackedWeak
```
[Follow this steps](Troubleshooting/FBturbo.md)
!!! abstract "If you see this line in the [system logs](#system-logs):"
```sh
KlipperScreen-start.sh: (EE) no screens found(EE)
```
This is usually not the main cause of the error. [Start by checking the screen](Troubleshooting/Physical_Install.md)
Drivers not installed or misconfigured can cause this too, continue looking the logs for more clues.
!!! abstract "If you see this line in the [system logs](#system-logs):"
```sh
modprobe: FATAL: Module g2d_23 not found in directory /lib/modules/6.1.21-v8+
```
This error is common on RaspberryOS when using FBturbo, it's not a related issue, it works correctly with the error present.
!!! abstract "If you see this line in the [system logs](#system-logs):"
```sh
(EE) Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices
```
[Follow this steps](Troubleshooting/Framebuffer_id.md)
[Maybe it's the wrong framebuffer](Troubleshooting/Framebuffer.md)
If you can't fix it, [try using a desktop distro as described here.](Troubleshooting/Last_resort.md)
If you want to contribute a solution: [Contact](Contact.md)
## Screen is always ***white*** / ***black*** or ***`No signal`***
If the screen never shows the console even during startup, Then it's typically an improperly installed screen.
[Follow this steps](Troubleshooting/Physical_Install.md)
## The screen shows colors or 'No signal' when idle
!!! warning
Only applicable to X11 not for Wayland
In KliperScreen settings find 'Screen DPMS' and turn it off.
![dpms](img/troubleshooting/dpms.gif)
Your screen doesn't seem to support turning off via software.
KlipperScreen will enable an internal screensaver to make it all black, and hopefully avoid burn-in.
If you find a way of turning it off, please share it: [Contact](Contact.md)
## Touch issues
[Follow this steps](Troubleshooting/Touch_issues.md)
## Network panel doesn't list WI-FI networks
[Follow this steps](Troubleshooting/Network.md)
## I see the Desktop environment instead of KlipperScreen
[Follow this steps](Troubleshooting/Desktop.md)
## Unauthorized
Unauthorized means that you need add the IP of the device that runs KlipperScreen to the moonraker trusted clients
or the Moonraker api-key to klipperscreen.conf
[Follow this steps](Installation.md#moonraker-configuration)
## Other issues
If you found an issue not listed here, or can't make it work, please provide all the log files
a description of your hw, and a description of the issue when [asking for support](Contact.md)
Improperly installed screen, follow the manufacturer instructions on how to physically connect the screen and install the proper drivers.
-20
View File
@@ -1,20 +0,0 @@
#### Check if You Have a Desktop Environment
1. Let you device finish startup
2. At the end of the boot process look at the screen and check using this examples
| Desktop environment | Console |
|:------------------------------------------:|:--------------------------------------------:|
| ![de](../img/troubleshooting/desktop.png) | ![boot](../img/troubleshooting/boot.png) |
| Desktop environment | Console |
| ![delog](../img/troubleshooting/delog.png) | ![clilog](../img/troubleshooting/clilog.png) |
If you installed a desktop (GUI version) of the OS and want to run KlipperScreen exclusively then do:
```sh title="Boot to console / KlipperScreen"
sudo systemctl set-default multi-user.target && sudo reboot
```
to undo and go back to the desktop environment:
```sh title="Boot to the desktop"
sudo systemctl set-default graphical.target && sudo reboot
```
-22
View File
@@ -1,22 +0,0 @@
# FBturbo failing with undefined symbol
in the system [log](../Troubleshooting.md) this appears:
!!! abstract "Log"
```sh
xinit[948]: /usr/lib/xorg/Xorg: symbol lookup error: /usr/lib/xorg/modules/drivers/fbturbo_drv.so: undefined symbol: shadowUpdatePackedWeak
```
Your system doesn't seem compatible with the FBturbo driver that you have installed
Remove the fbturbo driver
```sh
sudo apt purge xserver-xorg-video-fbturbo
```
make sure the config is removed:
```sh
sudo rm /usr/share/X11/xorg.conf.d/99-fbturbo.conf
```
-71
View File
@@ -1,71 +0,0 @@
# Screen is using the wrong framebuffer
If you have multiple framebuffers, you may need to fix the X11 configuration,
list the available framebuffers and check the current one:
```sh
ls /dev/fb*
```
!!! example "Output example"
```
pi@raspberrypi ~ $ ls /dev/fb*
/dev/fb0 /dev/fb1
```
!!! failure "Critical"
if you only see one, for example `/dev/fb0` then this is not the issue. Go to [Troubleshooting](../Troubleshooting.md)
## Use fbcp to copy from one framebuffer to the other
```sh
cd
git clone https://github.com/tasanakorn/rpi-fbcp.git
cd rpi-fbcp
mkdir build
cd build
cmake ..
make
sudo install fbcp /usr/local/bin/fbcp
sudo wget -O /etc/init.d/fbcp https://gist.github.com/notro/eac0fec51cac67bb99c7/raw/4804a36459db10b17d35451d98d4573a045084be/fbcp
sudo chmod +x /etc/init.d/fbcp
sudo update-rc.d fbcp defaults
sudo reboot
```
## Manually change the framebuffer
the file specifying the framebuffer could be:
- 99-fbturbo.conf
- 99-fbusb.conf
- 99-fbdev.conf
check if one of those or similar exist with:
```sh
ls /usr/share/X11/xorg.conf.d/
```
!!! example
you found 99-fbdev.conf:
```sh
sudo nano /usr/share/X11/xorg.conf.d/99-fbdev.conf
```
``` title="99-fbdev.conf"
Section "Device"
Identifier "Allwinner A10/A13/A20 FBDEV"
Driver "fbdev"
Option "fbdev" "/dev/fb0"
Option "SwapbuffersWait" "true"
EndSection
```
since `ls /dev/fb*` returned `/dev/fb0 /dev/fb1` change it to `/dev/fb1`
Save the file, restart KlipperScreen.
```sh
sudo service KlipperScreen restart
```
-52
View File
@@ -1,52 +0,0 @@
# Troubleshooting Framebuffer Issues
Here are some solutions if this line is in the logs:
```sh
(EE) Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices
```
!!! abstract "Raspberry Pi"
This has been known to happen on RaspberryOS Bookworm Lite on Pi5.
Later versions of the OS fixed the issue.
```sh
sudo nano /etc/X11/xorg.conf.d/99-v3d.conf
```
Paste this into the file:
```sh
Section "OutputClass"
Identifier "vc4"
MatchDriver "vc4"
Driver "modesetting"
Option "PrimaryGPU" "true"
EndSection
```
Reboot.
!!! abstract "Generic"
This will heavily vary with different hardware. Find the correct busID and create a config like:
```sh
sudo nano /etc/X11/xorg.conf.d/99-busid.conf
```
Paste this into the file:
```sh
Section "Device"
Identifier "Card0"
Driver "fbdev"
BusID "pci:1:0:0"
EndSection
```
Where the busID in this example is the first pci card. You will have to find the identifier and id of the video output device using tools like:
```sh
lspci
```
Or sometimes with:
```sh
lshw
```
If you find a solution not listed here, please consider contributing with the information.
-28
View File
@@ -1,28 +0,0 @@
# Last Resort to Make the Screen Work
If your screen never shows the console or bootup text during startup, it is typically due to an improperly installed screen. See [Physical Install Issues](Physical_Install.md) for more information.
![Boot Screen](../img/troubleshooting/boot.png)
If the screen shows the bootup text but ends with a blinking cursor or login prompt, and no matter what you tried in [Troubleshooting](../Troubleshooting.md) you can't make it work, then follow these steps:
1. **Install a Distro with a Desktop Environment**
[Click to learn how to check](./Desktop.md)
2. **Ensure Proper Functionality**
Make sure the screen is working properly, including both display and touch functionality.
3. **Deactivate the Desktop Environment for KlipperScreen**
To allow KlipperScreen to run exclusively, enter the following command in a terminal and press enter:
```sh
sudo systemctl set-default multi-user.target && sudo reboot
```
4. **Reboot and Install KlipperScreen**
Wait for the system to reboot and then proceed to install KlipperScreen.
If it still doesn't work, or if you did something else to make it work and want to share your solution:
[Contact Us](../Contact.md)
Remember to share the logs, as they are crucial for troubleshooting.
-54
View File
@@ -1,54 +0,0 @@
# Network
The network panel relies on Network-Manager for its operation.
!!! info "Note for Forks"
The network panel's behavior and dependencies may differ. Please refer to your specific fork documentation or support resources for instructions tailored to your setup.
## Loss of Connection After Installing Network-Manager
If you lose network connection after installing Network-Manager, follow these steps to reconnect:
### Reconnect using KlipperScreen
- **Go to the network panel in KlipperScreen:**
- Access the network panel in KlipperScreen and select your Wi-Fi network to reconnect.
!!! info "Alternative: using the console"
- **Option 1: Switch to a local console with keyboard:**
1. Use `Ctrl + Alt + F1` (or other function keys up to F6) to access a virtual terminal.
2. Log in and run `nmtui` to manage Wi-Fi connections directly from the console.
- **Option 2: Connect a LAN cable for SSH access:**
1. Use SSH to remotely connect to your system.
2. Run `nmtui` to manage your network connections.
## Wi-Fi networks not listed
The initial scan may take a while, first be patient before assuming it's an issue. and check with other tools like `nmtui`
## Permission error
Usually permissions are set with the installer, try to update and then re-run the installer and reboot
???+ "Alternative workaround for network-manager not having permissions"
```sh
mkdir -p /etc/NetworkManager/conf.d
sudo nano /etc/NetworkManager/conf.d/any-user.conf
```
in the editor paste this:
```ini
[main]
auth-polkit=false
```
Then restart the service (or reboot):
```sh
systemctl restart NetworkManager.service
systemctl restart KlipperScreen.service
```
-26
View File
@@ -1,26 +0,0 @@
# Physical installation issues
If the screen never shows the console even during startup, Then it's typically an improperly installed screen,
!!! important
It is advised follow the manufacturer instructions on how to physically connect the screen and install the proper drivers.
## Cable issues
* Check that the cable is inserted properly:
it shouldn't be loose, and in the case of ribbon cables like DSI make sure the contacts face the right way
* If the touchscreen is connected via USB, try another port if available,
if you are using a HUB try connecting the touch directly without the HUB.
* If the board has more than one HDMI try the other port
## Driver issues
Some screens need drivers installed the most common cases are:
### Waveshare
* [Waveshare Wiki](https://www.waveshare.com/wiki)
* [repo LCD-show](https://github.com/waveshare/LCD-show)
### Goodtft (generic/clones)
* [Goodtft Wiki](http://www.lcdwiki.com)
* [repo LCD-show](https://github.com/goodtft/LCD-show)
-158
View File
@@ -1,158 +0,0 @@
# Screen rotation
Configure the server to start in the desired orientation, there are many ways to achieve this,
here are some examples:
!!! warning
Rotation is handled by the OS and not by KlipperScreen,
if you can't rotate your screen it's usually an issue with the OS configuration
## Examples of rotation
???+ example "Universal xorg configuration"
#### Universal xorg configuration
Find the identifier use xrandr
```sh
DISPLAY=:0 xrandr
```
it will output something like:
```
Screen 0: minimum 320 x 200, current 1024 x 600, maximum 8192 x 8192
HDMI-1 connected primary 1024x600+0+0 (normal left inverted right x axis y axis) 800mm x 450mm
```
Take not that the screen is `HDMI-1` (it could be `HDMI-A-1` or many other names)
Create /usr/share/X11/xorg.conf.d/90-monitor.conf
```bash
sudo nano /usr/share/X11/xorg.conf.d/90-monitor.conf
```
Paste this section modifying the options to suit your needs:
```kconfig title="90-monitor.conf"
Section "Monitor"
Identifier "HDMI-1"
# This identifier would be the same as the name of the connector printed by xrandr
# for example "DVI-I-1 connected primary" means that the identifier is "DVI-I-1"
# another example "Unknown19-1 connected primary" some GPIO screens identify as Unknown19
Option "Rotate" "left"
# Valid rotation options are normal,inverted,left,right
Option "PreferredMode" "1920x1080"
# May be necessary if you are not getting your preferred resolution.
EndSection
```
Save the file and restart KlipperScreen.
```bash
sudo service KlipperScreen restart
```
if KlipperScreen doesn't restart:
```bash
sudo reboot
```
you may have to adjust the [touch rotation](../Touch_issues/#touch-rotation-and-matrix)
???+ example "Raspberry Pi using kernel cmdline"
#### Raspberry Pi using kernel cmdline
To set screen orientation when in console mode, you will need to edit the kernel command-line
to pass the required orientation to the system.
```bash
sudo nano /boot/firmware/cmdline.txt
```
To rotate by 90 degrees clockwise, add the following to the cmdline, making sure everything is on the same line,
do not add any carriage returns. Possible rotation values are 0, 90, 180 and 270.
For example a DSI screen:
```bash
video=DSI-1:800x480@60,rotate=90
```
To find the identifier on a terminal run:
```bash
grep -H . /sys/class/drm/card*-*/status | grep :connected
```
you will get somthing like:
```bash
/sys/class/drm/card0-HDMI-A-1/status:connected
```
where HDMI-A-1 would be the identifier
in this case the identifier is HDMI-1 and a simple cmdline arg would be something like:
```bash
video=HDMI-A-1:1024x600@60
```
To apply changes do a reboot:
```bash
sudo reboot
```
[Read the official docs for more info](https://www.raspberrypi.com/documentation/computers/config_txt.html)
[Raspberry Display docs](https://www.raspberrypi.com/documentation/accessories/display.html)
???+ example "Using a dtoverlay config on a Raspberry Pi"
#### Using a dtoverlay config on a Raspberry Pi
In /boot/config.txt (or /boot/firmware/config.txt)
with some display you can add rotate, like this example for a 3.5"
```bash
dtoverlay=waveshare35b-v2,rotate=270,drm,speed=30000000,fps=60
```
??? example "Raspberry Pi legacy mode (works with vc4-fkms-v3d)"
#### Raspberry Pi legacy mode (works with vc4-fkms-v3d)
add to config.txt
```bash
display_lcd_rotate=2
```
To apply changes do a reboot:
```bash
sudo reboot
```
!!! warning
At the moment of writing Pi4 didn't support 90 and 270 degrees with this method, [see the official docs](https://www.raspberrypi.com/documentation/computers/config_txt.html#display_hdmi_rotate)
| Value | result |
| ---------- | ---------- |
| 0 | no rotation |
| 1 | rotate 90 degrees clockwise |
| 2 | rotate 180 degrees clockwise |
| 3 | rotate 270 degrees clockwise |
| 0x10000h | horizontal flip |
| 0x20000 | vertical flip |
[Read the official docs for more info](https://www.raspberrypi.com/documentation/computers/config_txt.html)
??? example "Using a screen installed with goodtft-LCD-show"
#### Using a screen installed with goodtft-LCD-show
```bash
cd LCD-show/
sudo ./rotate.sh 90
```
??? example "Using Waveshare screen that is installed with LCD-show"
#### Using Waveshare screen that is installed with LCD-show
```bash
cd LCD-show/
sudo ./LCD43-show 270 lite
```
## Touchscreen touch rotation
[See touch rotation](./Touch_issues.md#touch-rotation-and-matrix)
-246
View File
@@ -1,246 +0,0 @@
# Touchscreen issues
Contents:
* [Touch not working](#touch-not-working)
* [Touch rotation and matrix](#touch-rotation-and-matrix)
* [Touch calibration](#touch-calibration)
Beware that this document focuses on RaspberryOS but most of it should apply to any other Debian based distros
## Touch not working
If the screen is connected over USB, the cable may cause issues.
For that, please see [this guide](Physical_Install.md#cable-issues).
??? abstract "DSI screens touch not working on RaspberryOS / MainsailOS version Debian 11 Bullseye"
Some DSI screens have issues where touch doesn't work with the default configuration.
The current workaround/temporary fix involves changing the kernel driver module used for these displays.
`sudo nano /boot/config.txt` and change
```sh
dtoverlay=vc4-kms-v3d
```
to
```sh
dtoverlay=vc4-fkms-v3d
```
Close the nano editor using `ctrl`+`x` (exit), then `y` for yes (save).
**Reboot** to apply changes. `sudo reboot`
If that doesn't fix it, you can try commenting these lines out, resulting in:
```sh
# dtoverlay=vc4-kms-v3d
# max_framebuffers=2
```
**Reboot** to apply changes. `sudo reboot`
## Touch rotation and matrix
If the touch works but registers touch input in a different location from the input, then you may need to apply an input transformation matrix.
First you will need your device name. On a terminal, run:
```sh
DISPLAY=:0 xinput
```
??? tip "Alternative"
```
libinput list-devices
```
!!! note
requires libinput-tools
```
sudo apt install libinput-tools
```
Output:
```text
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ADS7846 Touchscreen id=6 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
```
In this case the device is the ADS7846 Touchscreen, yours may be different
You can test a change by running:
```sh
DISPLAY=:0 xinput set-prop "<device name>" 'Coordinate Transformation Matrix' <matrix>
```
!!! example
```sh
DISPLAY=:0 xinput set-prop "ADS7846 Touchscreen" 'Coordinate Transformation Matrix' -1 0 1 0 -1 1 0 0 1
```
Where the matrix can be one of the following options:
| Rotation | Matrix |
|-----------------------------------------|-----------------------|
| 0° | `1 0 0 0 1 0 0 0 1` |
| 90° Clockwise | `0 -1 1 1 0 0 0 0 1` |
| 90° Counter-Clockwise | `0 1 0 -1 0 1 0 0 1` |
| 180° (Inverts X and Y) | `-1 0 1 0 -1 1 0 0 1` |
| invert Y | `-1 0 1 1 1 0 0 0 1` |
| invert X | `-1 0 1 0 1 0 0 0 1` |
| expand to twice the size horizontally | `0.5 0 0 0 1 0 0 0 1` |
To make the calibration permanent read [Save touch calibration](#save-touch-calibration)
## Touch calibration
This is optional, and you should only do it if you are having problems.
Download and build xtcal:
```sh
sudo apt-get install libxaw7-dev libxxf86vm-dev libxft-dev
cd
git clone https://github.com/KurtJacobson/xtcal
cd xtcal
make
cd ..
```
First you will need your touchscreen device name. On a terminal, run:
```sh
DISPLAY=:0 xinput
```
??? tip "Alternative"
```
libinput list-devices
```
!!! note
requires libinput-tools
```
sudo apt install libinput-tools
```
Output:
```text
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ADS7846 Touchscreen id=6 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
```
In this case the device is the ADS7846 Touchscreen, yours may be different
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
```
Run the calibrator - if it's not fullscreen cancel with `ctrl`+`c` and adjust geometry
```sh
DISPLAY=:0 xtcal/xtcal -geometry 480x320
```
!!! important
KlipperScreen or a desktop environment should be on the screen to launch the calibrator
Touch the center of the crosses in order, they should turn white.
![xtcal_preview](../img/troubleshooting/xtcal.png)
### Test the calibration
Copy the output of the calibration and test it, For example:
```sh
DISPLAY=:0 xinput set-prop "ADS7846 Touchscreen" 'Coordinate Transformation Matrix' -0.016267 -0.952804 0.978336 -1.010164 0.065333 0.998316 0 0 1
```
if it's not correct reset the matrix and run xtcal again.
## Save touch calibration
modify `/etc/udev/rules.d/51-touchscreen.rules`:
```sh
sudo nano /etc/udev/rules.d/51-touchscreen.rules
```
```sh title="51-touchscreen.rules"
ACTION=="add", ATTRS{name}=="<device name>", ENV{LIBINPUT_CALIBRATION_MATRIX}="<matrix>"
```
Close the nano editor using `ctrl`+`x` (exit), then `y` for yes (save).
```sh
sudo reboot
```
!!! example
```sh
sudo nano /etc/udev/rules.d/51-touchscreen.rules
```
```sh title="51-touchscreen.rules"
ACTION=="add", ATTRS{name}=="ADS7846 Touchscreen", ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 0 -1 1 0 0 1"
```
Close the nano editor using `ctrl`+`x` (exit), then `y` for yes (save).
```sh
sudo reboot
```
!!! example "Alternative Example"
As an alternative **if the above doesn't work**:
determine the touchscreen driver (usually libinput):
```bash
cat /var/log/Xorg.0.log
```
```bash title="example of /var/log/Xorg.0.log"
...
(II) Using input driver 'libinput' for 'ADS7846 Touchscreen'
...
```
if it says `evdev` instead, then change `libinput` to `evdev` below, both in the filename and in the file
```bash
sudo nano /usr/share/X11/xorg.conf.d/40-libinput.conf
```
```sh title="40-libinput.conf"
Section "InputClass"
Identifier "libinput touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
EndSection
```
!!! note
the number of the filename determines the order of loading, if you have issues
check if there are other files overriding your config or just use 99-touch_calibration.conf as a name.
Close the nano editor using `ctrl`+`x` (exit), then `y` for yes (save).
```sh
sudo reboot
```
For more in-depth guidance on using Coordinate Transformation Matrices:
* [Ubuntu wiki InputCoordinateTransformation](https://wiki.ubuntu.com/X/InputCoordinateTransformation)
* [Libinput docs](https://wayland.freedesktop.org/libinput/doc/1.9.0/absolute_axes.html)
-39
View File
@@ -1,39 +0,0 @@
# Cannot open virtual Console
If you see this line in the [log](../Troubleshooting.md):
!!! abstract "Log"
```sh
xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
```
* Run `cat /etc/X11/Xwrapper.config`
This should have the line `allowed_users=anybody` in it
* Run `cat /etc/group | grep tty`
If your username is not listed under that line, you need to add it with the following command:
```sh
usermod -a -G tty pi
```
(if your username is not 'pi' change 'pi' to your username)
Restart KlipperScreen:
```sh
sudo service KlipperScreen restart
```
If it's still failing:
add `needs_root_rights=yes` to `/etc/X11/Xwrapper.config`:
```sh
sudo bash -c "echo needs_root_rights=yes>>/etc/X11/Xwrapper.config"
```
Restart KlipperScreen:
```sh
sudo service KlipperScreen restart
```
-36
View File
@@ -1,36 +0,0 @@
# Updating
## Using Moonraker update manager
!!! info
This method will not work if KlipperScreen and Moonraker are on different Hosts
For this to work, KlipperScreen should be added to moonraker.conf as explained in the installation instructions.
[moonraker-configuration](Installation.md/#moonraker-configuration)
Then you can update using the System panel:
![system-panel-screenshot](img/panels/system.png)
or from any UI that supports updating from moonraker.
## Using KIAUH
Same as in the installation instructions, but select update instead of install
![KIAUH-screenshot](img/install/KIAUH.png)
## Manual update
```sh
cd ~/KlipperScreen
git pull
source ~/.KlipperScreen-env/bin/activate
pip --disable-pip-version-check install -r ~/KlipperScreen/scripts/KlipperScreen-requirements.txt
sudo service KlipperScreen restart
deactivate
```
-85
View File
@@ -1,85 +0,0 @@
# VNC
This article describes how to use KlipperScreen through a remote connection.
!!! warning
The experience may not be equal to run KlipperScreen natively.
Depending on the device or the network you may encounter performance degradation or other issues.
## On the Host device:
The host device could be for example a Raspberry Pi
1. [First install KlipperScreen](Installation.md)
2. Install a vnc server package, for example:
```bash
sudo apt install tigervnc-standalone-server
```
3. Create `~/KlipperScreen/scripts/launch_KlipperScreen.sh`:
```bash
#!/bin/bash
# Use display 10 to avoid clashing with local X server, if any
Xtigervnc -rfbport 5900 -noreset -AlwaysShared -SecurityTypes none :10&
DISPLAY=:10 $KS_XCLIENT&
wait
```
!!! tip
To change resolution add: `-geometry 1280x720` to the arguments of Xtigervnc
4. Make the script executable
```bash
chmod +x ~/KlipperScreen/scripts/launch_KlipperScreen.sh
```
5. Restart KlipperScreen or reboot the system:
```bash
sudo systemctl restart KlipperScreen.service
```
## On the remote device:
Install a VNC viewer and configure it to the ip of the host.
??? example "Example using an iPad"
#### Example using an iPad
* Install a VNC viewer for example: `RealVNC Viewer: Remote Desktop`
* Open the VNC viewer app
* Press "+" button at the top right
* Enter IP address of your print host.
* Press "Save"
* Select "Interaction", select "Touch panel", go back
* Press "Done"
* Double-click on an icon with IP address you have just added.
* VNC client will complain about unencrypted connection. Disable the warning and say "Connect"
* Use or skip tutorial
* Press the "Pin" icon to hide the panel.
##### Prevent unwanted rotation of UI
* Go to `Settings` > `General` > Set `Use side switch to` to `Lock Rotation`
##### Avoid accidentally switching between apps
* Go to `Restrictions` > Set passcode > Enable restrictions.
* Open
* Triple-click "Home" button
* Guided access pops up
* Press "Start"
* Now iPad is locked to VNC viewer until "Guided access" mode is disabled by triple-clicking "Home" button and entering the password.
??? example "Example using an Android device"
#### Example using an Android device
* Install a VNC viewer for example: `RealVNC Viewer: Remote Desktop`
* Open the VNC viewer app
* Press "+" button at the right
* Enter IP address of your print host.
* Press "Save"
* Double-click on an icon with name or IP address you have just added.
* VNC client may complain about unencrypted connection. Disable the warning and say "Connect"
##### Prevent unwanted rotation of UI
* Lock the rotation using the buttons in the notification bar or in device Settings > Screen > Disable "Rotate automatically"
It's recommended to set Display timeout to never:
Also for X11 installs turn off DPMS:
![disable_dpms_poweroff](img/disable_dpms_poweroff.png)
-40
View File
@@ -1,40 +0,0 @@
Only breaking changes will be listed here.
#### [2024_05_24](https://github.com/KlipperScreen/KlipperScreen/commit/524aa0e7dc2b27c93534d356ba19963b793f38d8)
* Drop python 3.7 support, last version for it is v0.4.1: `git reset --hard v0.4.1`
* Drop old WiFi manager, only maintain sdbus-networkmanager
#### [2024_01_26](https://github.com/KlipperScreen/KlipperScreen/commit/9d0e4b841f905f0034a7c6fefefcf041e38b90a3)
* Deprecated old ~/klipper_config folder users need to place the configfile
in ~/printer_data/config, ~/.config/KlipperScreen, or directly in the repo
#### [2023 10 08](https://github.com/KlipperScreen/KlipperScreen/commit/b6199a4f24beb02dc0f8956f60c88e3ba3468927)
* Deprecated [bed_screws] and [z_calibrate_position] sections those configs should go in [printer name]
#### [2023 07 23](https://github.com/KlipperScreen/KlipperScreen/commit/8053e97d1041f136118d40669442e910df6cf186)
* Deprecated `camera_url` option of printer, the camera config is read from moonraker
#### [2022 03 21](https://github.com/KlipperScreen/KlipperScreen/commit/bc34b3c8d6761c27a0b0c62fc4dfa11442b417f6)
* Default configuration is now merged again.
Fixing [2021 05 20](https://github.com/KlipperScreen/KlipperScreen/commit/eb801486928bf02709033dcbc5f0a45ca43b23c1)
#### [2022 03 10](https://github.com/KlipperScreen/KlipperScreen/commit/490dc929bd11e3c4200b999ce7204d84fa0bc184)
* The "Power On Printer" button now requires power_devices under the printer section in KlipperScreen.conf
the power_devices allowed are those defined in the config of moonraker of the printer
The "Power" panel will be in the Menu if there are power devices found
#### [2022 03 01](https://github.com/KlipperScreen/KlipperScreen/commit/49ab84e8d51535d3469d97fdee53099cca6abc39)
* The "Power On Printer" button now requires that the printer name in KlipperScreen.conf
and the power device in moonraker.conf to have the same name.
The "Power" panel will be in the Menu if there are power devices found
#### [2022 01 11](https://github.com/KlipperScreen/KlipperScreen/commit/8a8c6c064cc6d097b1b34a5c42b4001367e545a6)
* The Preheat panel has been deprecated in favor of an all-in-one Temperature panel
Remove preheat panel from your Klipperscreen.conf or replace the occurrences of preheat with temperature
#### [2021 05 20](https://github.com/KlipperScreen/KlipperScreen/commit/eb801486928bf02709033dcbc5f0a45ca43b23c1)
* Default configuration is not merged if a user configuration is set for a specific option
For instance, if `menu __main` is user defined, the main menu will not have any defaults.
-1
View File
@@ -1 +0,0 @@
../CHANGELOG.md
+8
View File
@@ -0,0 +1,8 @@
# Changelog
Breaking changes will be listed here.
#### 2021 05 20
* Default configuration is not merged if a user configuration is set for a specific option
For instance, if `menu __main` is user defined, the main menu will not have any defaults.
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Loaded 100 of 580 files, more files were not shown because too many files have changed in this diff. Show more