-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting errors and Octodash wont start #609
Comments
What brand of lcd is it, maybe you are installing drivers for a different lcd? |
I don't know the brand or manufacturer but it's this unit: https://www.ebay.com/itm/124138803297 |
Thanks. But this is what I explained I did in my post. |
You installed drivers from a different repo for a different lcd. These need to be removed and the ones at the link I sent need to be installed. |
Ok, I guess I don't understand the procedure. Here is what I did. 1) SSH into my pi where I run octoprint from and logged in 2) enabled AutoLogin to Console 3) I then typed: wget -qO- https://github.com/UnchartedBull/OctoDash/raw/master/scripts/install.sh | bash -s -- --ptg 4) I then typed this: wget -qO- https://github.com/UnchartedBull/OctoDash/raw/master/scripts/update.sh | bash 5) This did not work so I went to the troubleshooting guide and found the section instructing you to install drivers for the display 5) Installed the drivers on my pi using: Per this page: http://www.lcdwiki.com/3.5inch_RPi_Display (The directions from the repo you sent me says: Am I supposed to download the driver files to my desktop them manually install them to the pi? I was still getting the error messages to I then tried all the troubleshooting procedures. Sorry if I am being stupid here but I'm must be missing a few steps. |
Your step 5 is for a different brand of lcd. The lcd that showed in your pics had a model number which I googled and got you the right repo for that lcd. I did not go through the installation process because I don't have this lcd brand. You are going to need to undo step 5, then install the driver, using the repo I sent, using the instructions at that repo. You are finding out the big catch with these cheap LCDs. They are more often than not a huge pain in the ass to get working. You are not stupid, the process is overly complex for what it is. Any other Linux driver is usually built into the distro so things just work, LCDs are too new a accessory for all that quite yet it would seem. |
ok. How do i uninstall the display drivers that I installed before? Do I need to install Raspbian OS if I already have octoprint running? How do I open LX Terminal? Thanks |
Someone else can probably chime in with how to uninstall. I am not a linux pro so I found it easier to just wipe the card and reload octopi. My setup is pretty simple so it's not a big deal to start over. |
So you are saying that these two repos are different: Repo I used: |
Well so it does. My apologies, that's what I get for not digging down. Looks like you have the right driver... |
From what I can see Xorg (the tool that allows anything to be displayed on the screen (except the text console)) doesn't seem to find your screen. It would be really helpful to post your I've also seen, that you're using OctoPi, please refer to the issue @floridaservices linked above, especially the very last comment. It seems like OctoPi is doing some funky stuff with Xorg and xinit, which doesn't really comply with standard debian way of doing things. |
So I tried all that was mentioned in the post linked above with no success. (Maybe this part is a clue: After I install X11, it keeps telling me X11 isn't intalled. Here are some screenshots of the outputs: https://imgur.com/a/cpuKla0 I even tried @philbeauchamp method of "Change boot settings to go into Desktop (autologin) setting B4. Reboot." But that did not help. Am I to understand that Octodash should not be run on a Raspberry Pi that is also running OctoPi? I didn't think I'd need a second Raspberry Pi to run octodash. Maybe that is where I'm confused here? Here is my log file: `pi@v2octopi:~ $ cat /var/log/Xorg.0.log [ 40.091] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration |
@UnchartedBull Maybe it's because I didn't have the drivers installed when I initially installed using your script? Should I wipe the Raspberry Pi and SD card and start fresh? Having the drivers installed before running the install script? |
Not sure if this helps but getting a fatal IO error 11 |
OctoDash should run fine on OctoPi, just the setup is a little more complicated I think. The logs are saying that you‘re missing fbturbo. Please try installing that: https://github.com/ssvb/xf86-video-fbturbo/wiki/Installation. Make sure to post the log file again once you installed that. Also the logs are saying that there are no drivers available. Maybe try reinstalling Xorg. |
I tried that this morning. It caused the raspberry pi screen lock up when loading then I could no longer access the command line. I keep getting this error over and over when trying to run the screen calibrator: unable to connect to X server What does that mean? |
By chance have you tried to connect a HDMI lcd to the pi during all this? I have run into something like this before where xorg would load the app on the TV but now on the little lcd. I would be curious if yours did the same |
I just connected my 1080 x 1920 HDMI monitor and it shows text during boot of what looks like setup stuff. So I just installed Octoscreen using this tutorial: https://www.youtube.com/watch?v=OJ59hXSyBoI I followed it exactly except installing my screen specific drivers. And it also does not start or show on my screen. So I'm going to guess here that this specific screen and the drivers do not work for this type of application. I think the best rout is to order another screen that has been proven to work and has it's own documentation and drivers. I was not trying to cheap out when I ordered this screen. I just thought it would be the safest since there are so many in use. Can you or someone recommend a screen that has been proven to work with Octodash and OctoPi on raspberry Pi 3B+ and 4. Thanks |
I have a 3B+ and a Kedei 3.5 with OctoPi. It is an effortless install. I have a Elecrow 3.5 that I tried first with OctoDash and it would not work with it so I used the Kedei. |
Otherwise you could try a fresh install and go with Raspbian desktop. If that comes up you can install OctoPrint and OctoDash there then. In the linked issue there was a description on how to add OctoDash as an Auto start application. Might use some more resources than the ratpoison setup. |
Hmm doesn't look like I can buy a Kedi 3.5 here in the US. |
I have bought two of them in the past 6 months (am in US) |
Thanks! @UnchartedBull I did get the screen working with a fresh raspian install! How do I install octoprint on top of raspian? I've only don't it by imaging octopi on the SD card. |
Thanks. I read through this today. I decided to order another screen. |
So I ordered this: KeDei 3.5" LCD TFT and this: OSOYOO LCD Touch Screen 3.5" HDMI I'd like to try out a 5" screen. Do you think this one may work: OSOYOO 5 Inch DSI Touch Sceen LCD Display 800x480 I guy on Reddit said he has used a 3.5" OSOYOO screen and drivers successfully. |
I don't have experience with either of those ... But they should work I think. Maybe a good starting point is to search for a Kiosk Mode Setup with Raspbian Lite for those. If you can get Chrome running, OctoDash will also run just fine. I'm closing this issue for now, if you encounter the same bug, please reopen. |
@floridaservices I purchased and received the KeDei screen version 6.3. The screen is working fine: https://imgur.com/eu0iMRP I followed this guide sent to me by the seller. I did everything exactly as he says: After insalling OctoDash with the install script I get the same warning as the last screen: I'm not over $100 into raspi screens and I still cant get OctoDash to start. Did I not install the drivers correctly? Do you have any advice on this? |
Well good news. It started right up with I reinstalled the display driver but this time I didn't make any if the changes per the guide it shipped with. The interface is very nice. When it boots it does say something about ratpoison when it boots up. Is that normal? |
here are my installation notes for the Kedei 3.5 v6.3 and octodash. These things are all I had to do to get OctoDash working with this specific screen. I should have told you not to use their instructions, sorry about that: OctoDash |
Update: I got
Thanks. I do have it working now but I'll likely wipe it all and start over with your method. Do you know how to access a config file if I want to make more changes to the Custom Actions menu? And do you know if there is a way to show a preview of the file like he shows in the screenshot here: https://raw.githubusercontent.com/TimonGaebelein/OctoprintDash/master/screenshots/file_details.png |
I believe that all the configuration can be done in the config.json file. Some more notes on my installation since you are following along - I used the Octopi standard image on a Pi 3B+. I had a pretty vanilla setup when I set up OctoDash so it was nothing to wipe and start over - I also tried the way that people said to do it didn't work. Then I installed only the driver without any of the tweaks and poof it worked! And they all seem to be that way, the Elecrow and Waveshare seem to have their setup issues as well. The image preview is a little complicated - there's this: #556 And then there's a way with the PrusaSlicer plugin. I think this is the direction that the developer is going, see #633. If you happen to be using PrusaSlicer, if you install the dev version of OctoDash and configure the PrusaSlicer plugin it should work like you are wanting. |
That's great news! The ratpoison thing is completely normal, as this is the Window Manager, this should only be visible for a few seconds though. You can also customise the Custom Actions via the UI, which actually offers the exact same fields as in the config. If you want to edit it via ssh, here you go: https://github.com/UnchartedBull/OctoDash/wiki/Setup-&-Settings#settings-file. You can't break anything really, if there are errors OctoDash will let you know :) PrusaSlicer Preview will be included in the next release. You just need to make sure you configure either Cura or PrusaSlicer to export the thumbnail and install the correct OctoPrint Plugin (ufp or prusaslicerthumbnails). |
I also updated the troubleshooting guide: https://github.com/UnchartedBull/OctoDash/wiki/Troubleshooting#cannot-open-display-xinit-failing- to hopefully reflect what actually fixed the problem. Would be great if you could quickly glance over that and let me know if everything is there :) Thanks! |
Thanks. I'm looking forward to the next release! So to recap: I bought a generic, waveshare clone and could not get that to work with Octodash. I then ordered the KeDei screen version 6.3 recommended by @floridaservices. This worked as long as I didn't make all the config changes that came with the instructions (as you posted in your setup troubleshooting guide). With the previous screen, I believe the drivers just aren't compatible with OctoPi or something. Not sure. However, that screen did work with Raspian desktop. One point I got confused while installing: When I SSH into the Pi (which was my preferred method all along) and I type "octodash" I still get a: I was also able to install Octoscreen successfully with this screen based on a recommendation. I have a couple notes for anyone who wants to use this same "Osoyoo" screen. These are the instructions referenced to install the drivers for this screen. However, if you are using a OctoPi, copying the file via USB can be time consuming. Instead I used this Wget to download and install directly from the Google Drive folder:
The first time I installed the driver I used the Here a pic of the screen (the Osoyoo is on the right) I'm calling it an Osoyoo although it's branded "KeDei." The screen on the right is the KeDei recommnded by @floridaservices |
FYI, was having the same problem. I was able to get what I think is the same screen to work by:
After configuring/calibrating the screen in the desktop, I changed my boot settings back to AutoLogin to Console and it worked fine on boot. My screen oddly had the totally wrong calibration settings that caused the touchscreen axis to be inversed only on one axis, so I had to rejig the config files manually for it. |
Gonna add my 2 cents coming here after a long debugging session, for any future people Most, if not all, of the TFT displays over GPIO that use the install at
I have also found that with some of the cheap displays, a hard reboot is required to have them work properly (no power) |
The summary by @Jonnywayway did it for me after hours of troubleshooting. Perhaps mentioning on the troubleshooting section? My guess is that it gets rid of any conflicting garbage individual instances might contain. |
What doesn't work?
After what I believe was successful install (I was prompted that Octodash would launch upon reboot) I get errors and octodash will not start.
Errors shown on Pi Screen:
Fatal Server Error:
(EE) no screens found (EE)
Please consult the X.org Foundation support...
Server terminated with error (1) Closing log file
xinit: giving up
xinit: unable to connect to x server: Connection refused
xinit: server error
Error shown on putty terminal from my desktop when trying to lauch with "octodash":
(octodash:833): Gtk-WARNING **: 18:10:21.469: cannot open display:
What did you already try?
Updated the raspberry Pi using
sudo apt update
andsudo apt full-upgrade
rebooted
installed display drivers using:
rebooted
enabled AutoLogin to Console
rebooted
executed export DISPLAY=:0 and ratpoison before octodash
rebooted
sudo chmod ug+s /usr/lib/xorg/Xorg
rebooted
I've tried all this several times and tried to reinstall unsing the script several times (this script: wget -qO- https://github.com/UnchartedBull/OctoDash/raw/master/scripts/install.sh | bash -s -- --ptg)
General Information:
OctoPrint version : 1.3.12
OctoPi version : 0.17.0
Additional context
Screenshots of pi screen errors:
https://imgur.com/a/jMs2zHj
Screenshot of error in Putty:
https://imgur.com/MSyuNkn
The text was updated successfully, but these errors were encountered: