Skip to content
JeffB42 edited this page Apr 17, 2021 · 23 revisions

Q: OctoScreen doesn't work, or doesn't install, or doesn't display correctly. What's wrong?

A: It's impossible to know. The best 'getting started' resource I know of is Chris Riley's video, OctoScreen - Octoprint Raspberry Pi -Touch Screen Plugin - Chris's Basement

Q: My screen is 480x320. When I run, the screen "resizes" and shifts things around, and some of the controls are "beyond the screen" and don't fit.

A: This is a known issue, and is being looked into. What's happening is that the screen is 480x320 but OctoScreen is requiring 548x348 (ish) pixels. OctoScreen is built using GTK (a Linux GUI library) and when a control takes up more space than what's available, instead of clipping the window, GTK expands the entire window. This causes your 480x320 to expand to 548x348, but it's still only able to display 480x320. Please read the articles Setting Up OctoScreen and Your Display and Installing OctoScreen with a 3.5" 480x320 TFT screen.

Q: How do I invert the Z-axis button?

A: You need to install the OctoPrint-Z-Bolt-OctoScreen plugin (https://github.com/Z-Bolt/OctoPrint-Z-Bolt-OctoScreen), and then go into OctoPrint's settings, navigate to the OctoPrint-Z-Bolt-OctoScreen plugin, and then check the invert Z-axis button.

Q: Does OctoScreen work using a distro other than OctoPi?

A: At this time, the only distro that's supported is OctoPi. It might work in other distros, but the only known working (and supported) distro is OctoPi.

Q: What CPUs does OctoScreen run on?

A: At this time, only the Raspberry Pi 4 and Raspberry Pi 3B are supported. Other CPUs like the Raspberry Pi Zero and BeagleBone are not supported. They might work, but if you encounter problems, it's up to up you to troubleshoot and work through issues you encounter.

Q: Can I use multiple displays?

A: No. OctoScreen is intended to be used as a small touchscreen controller for your 3D printer, allowing you to control it. OctoScreen uses GTK, and when it runs, it assumes it's the only display you have connected.

Q: I'd like the screen to turn blank after a few minutes. How do I do that?

A: See the solutions posted at https://github.com/Z-Bolt/OctoScreen/issues/132 and https://github.com/Z-Bolt/OctoScreen/issues/96

Q: How do I enable logging? Why would I want to turn logging on?

A: Logging is a great tool to discover errors and to trouble shoot issues. When you report that "it crashes and restarts", well, that's not enough to go on. To set up logging in OctoScreen, do the following:
1.SSH into your OctoPi server
2.Edit the config file (typically nano /etc/octoscreen/config)
3.Look for OCTOSCREEN_LOG_FILE_PATH (or add it if it's missing)
4.Set the value to OCTOSCREEN_LOG_FILE_PATH="/home/pi/logs/logfile.txt"
5.Set the logging level. The logger has different levels in which it logs messages. "debug" is the most verbose, where as "error" is the least. The different log levels (in order of increased logging) are: error, warn, info, debug.
Example: OCTOSCREEN_LOG_LEVEL=debug

(later on, if you don't want logging turned on, either don't define OCTOSCREEN_LOG_FILE_PATH, or set OCTOSCREEN_LOG_FILE_PATH to an empty value - eg OCTOSCREEN_LOG_FILE_PATH=)

6.Exit nano and save the config file.
7.Next, create the initial log file by doing the following:

mkdir /home/pi/logs
touch /home/pi/logs/logfile.txt

Some additional tips about the log file:
  • Log files aren't automatically truncated and will grow over time. For normal use, you'll probably want to set OCTOSCREEN_LOG_FILE_PATH= so log messages aren't added to your log file.

  • When you encounter an issue, turn logging on by setting OCTOSCREEN_LOG_FILE_PATH=/home/pi/logs/logfile.txt (or whatever your log file path is) and also set OCTOSCREEN_LOG_LEVEL=debug.

  • After setting the log file or changing the logging level, you will need to reboot your machine. Run sudo reboot now.

  • The log file will report many things, like warnings and general info about what is taking place (helpful for debugging and troubleshooting). If you are experiencing an error, search your log file for the errors. If you see something logged as a warning, it's just that - it's only a warning.

If you post a log file, either paste the text in the issue, or attach it as a plain text file (.TXT). Do not post .DOC, .RTF, or .PDF files (post only plain text files please).

Q: Is it possible to display the mouse's cursor?

A: To display the cursor, add DISPLAY_CURSOR=true to your config file. In order to display the cursor, you will also need to edit /lib/systemd/system/octoscreen.service and remove -nocursor.