Steps to Install TouchUI for kuman 3.5"

Hey Guys -

I've spent hours trying to get TouchUI working correctly. When doing so, the display didn't work, touch was messed up, or there was always some issue. None of the steps I had seen from others worked nor did the troubleshooting steps on TouchUI's page. When rebuilding my OctoPrint server (setup from scratch) recently, I tried again and finally got it to work.

Below are my system specs at the moment followed by how to get it to work if having issues:

Specs

Steps

  1. Install Octoprint and set up as desired - You may physically install the LCD now but do not yet install the TouchUI plugin
  2. Connect to Octoprint RasPi via SSH
  3. Execute "sudo apt-get update && apt-get upgrade" to upgrade all packages
  4. Execute "sudo apt-get dist-upgrade"
  5. Execute "sudo reboot now" to reboot
  6. Reconnect via SSH once back up
  7. Execute "sudo apt-get install xserver-xorg-video-fbturbo" - depending on your OS image, this will probably fail which is normal
  8. Execute "sudo reboot now" to reboot
  9. Reconnect via SSH once back up
  10. Execute the below commands to install the driver. Note that the final command auto restarts your RasPi without prompting and you may notice some errors prior to this...

sudo rm -rf LCD-show
git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/
sudo ./LCD35-show

  1. Once back up, log back in via SSH again then execute "sudo apt --fix-broken install" to resolve the errors encountered prior to auto reboot
  2. Execute the below two commands again which should now succeed and auto reboot again

cd LCD-show/
sudo ./LCD35-show

  1. Reconnect via SSH once back up
  2. Execute below commands to configure & rotate display:

cd LCD-show/
sudo dpkg -i -B xinput-calibrator_0.7.5-1_armhf.deb
sudo ./rotate.sh 180

  1. Execute "sudo reboot now" to reboot
  2. Reconnect via SSH once back up
  3. Very orientation is correct (although should only see text). If not, rerun "sudo ./rotate.sh" again with a different rotation value instead of 180
  4. Launch browser, browse to OctoPrint's WebUIm then install the TouchUI Plugin
  5. Once installed, ignore prompt to restart in the WebUI and instead execute "sudo reboot now" via SSH
  6. Reconnect via SSH once back up
  7. Execute the below two commands to run TouchUI's helper script. Note that the 2nd command may take a few minutes to complete but once done you should get "Success" for all components

git clone https://github.com/BillyBlaze/OctoPrint-TouchUI-autostart.git ~/TouchUI-autostart/
sudo ~/TouchUI-autostart/helpers/install

That's it - TouchUI should now be displayed and touch calibration work.

Note: If prompted for credentials on screen after final reboot, edit ~/.octoprint/config.yaml and verify that the below lines are present within the AccessControl: section at the top

accessControl:
autologinLocal: true
autologinAs: yourusername
salt: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hope that helps someone. Thanks!

2 Likes

From the sound of things, this technique installs the Desktop (x windows) GUI. It's just good to know that up-front.

Have been struggling with trying to get my Kuman 3.5" , (it's the HDMI version MPI3508) ,working, i think i'm close but not quite there yet.. i see the touchui splash screen as it says connecting to touchui and then i just get a black screen with a mouse pointer. and occasionally i see a white screen with a little page with sad face that can't be good hah. still not registering any of my touch inputs at all.. Must have taken a wrong turn somewhere, do i need to do something different since i have the HDMI version? Thanks for the guide!

Hey Guys -

Just had to set my OctoPrint back up and when doing so realized that I had a couple of the steps wrong. I just edited the steps posted above which I have verified are now correct

Good luck - Thanks!

Thanks
It would be great if you could edit your first post so nobody gets get confused :slight_smile:

You're right - should have done that to begin with. Just updated. Thanks

1 Like