Skip to content

feat: add MHS35 display installation and restoration scripts with tro… - #427

Open
ahamedfaisal-dot wants to merge 3 commits into
goodtft:masterfrom
ahamedfaisal-dot:master
Open

feat: add MHS35 display installation and restoration scripts with tro…#427
ahamedfaisal-dot wants to merge 3 commits into
goodtft:masterfrom
ahamedfaisal-dot:master

Conversation

@ahamedfaisal-dot

Copy link
Copy Markdown

Overview

This PR introduces two new, highly stable scripts (MHS35-fixed-install.sh and MHS35-fixed-restore.sh) designed to solve total graphical lockups and touch inversion issues specifically on Raspberry Pi OS Debian 12 (Bookworm).

The Problem

The legacy installation scripts forcefully install deprecated drivers (fbturbo and fbdev). Because Debian 12 transitions to a Wayland/KMS architecture, injecting these legacy drivers causes X11 to hang during shadow framebuffer synchronization, resulting in a permanent black screen with a blinking cursor. Furthermore, the libinput driver squashes touch coordinates on the MHS35, rendering xinput_calibrator useless and causing "Mis-click detected" errors upon rotation.

The Solution

These new scripts modernize the deployment by handing control back to the native Linux Kernel:

  1. Strips Legacy Drivers: Automatically purges 99-fbturbo.conf and 99-fbdev.conf to prevent X11 server crashes.
  2. Native Hardware Acceleration: Replaces the generic tft35a overlay with the native piscreen,rotate=270 DRM/KMS overlay in /boot/firmware/config.txt.
  3. Restores Touch Precision: Removes xserver-xorg-input-libinput and forces the installation of xserver-xorg-input-evdev to allow raw pixel-to-matrix hardware mapping.
  4. **Hardcoded

@RTnhN

RTnhN commented Aug 2, 2026

Copy link
Copy Markdown

I tested this with a MHS35 screen, and it worked great.

…locks and add comprehensive MHS35 documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants