MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.28k stars 19.23k forks source link

[BUG] TwoTrees BLU-5 Bluer Plus Marlin Menu Problems #25475

Closed helakejr closed 1 year ago

helakejr commented 1 year ago

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

In Marlin 2.1.2 built for the TwoTrees BLU-5 Bluer Plus 3D Printer on the Marlin E/X/Y/Z Offset Menu selected from the main menu. After using the Z+ or Z- the back icon displayed at the Bottom/Right Corner of the screen gets jumbled. The jumbled Icon still works and returns to prior screen.

In Marlin Bugfix 2.1.x I found the that the Marlin E/X/Y/Z Offset Menu bug is still present. I also found that all menus now display one too many lines causing the last line to over-write the ICONS in the last row. You are not able to select any icons (forward, backward or return to previous menu), the last menu item is always selected. Menus are now unusable. Bugfix2 1 x PXL_20230306_203353465 Bugfix2 1 x PXL_20230306_203340752 Marlin2 1 2 PXL_20230305_233100675 Bugfix2 1 x PXL_20230306_203647492 Bugfix2 1 x PXL_20230306_203712549 Marlin2 1 2 PXL_20230305_153241138

Bug Timeline

New, Marlin 2.1.2

Expected behavior

Marlin 2.1.2: I expect using the Z+/Z- options not to scramble the Return to Prior screen ICON.

Marlin 2.1x: I expect using the Z+/Z- options not to scramble the Return to Prior screen ICON. And I expect all menus to not have an option on the last line of the display so that the three ICONS can be used (Forward, Backward, Return to Prior Menu).

Actual behavior

Marlin 2.1.2:

  1. From main menu, select Z offset option (click on Z)
  2. In the offset adjustment menu, select the Z+ and Z- options

Steps to Reproduce

Marlin 2.1.2:

  1. From main menu, select Z offset option (click on Z)
  2. In the offset adjustment menu, select the Z+ and Z- options
  3. Verify the "Return to Prior Menu" ICON is NO longer displayed correctly

Marlin 2.1.x 2023/03/06:

  1. Repeat Marlin 2.1.2 steps 1-3
  2. Select any menu option from the main menu
  3. Verify the screen, displays on too many lines overwriting Option ICONS on the last line of display.
  4. Verify ICONs are inoperable. Pressing any ICON selects last line of menu display.
  5. Verify only way to return to prior menu is to select the 1st line.

Version of Marlin Firmware

Marlin Bugfix 2.1.x, Marlin 2.1.2

Printer model

TwoTrees BLU-5 Bluer Plus

Electronics

Stock

Add-ons

None

Bed Leveling

ABL 3-point

Your Slicer

Cura

Host Software

SD Card (headless)

Don't forget to include

Additional information & file uploads

Marlin-bugfix-2.1.x.TT_BlueR-Plus.zip Marlin-2.1.2.TT_BlueR-Plus.zip

bustamantemarlon commented 1 year ago

I have the same issue on the same printer on Marlin 2.1.2. Not sure if it's related but my touch screen also seems really sensitive and would randomly click into menus without any user interaction. Stock firmware doesn't randomly change menus.

thisiskeithb commented 1 year ago

Not sure if it's related but my touch screen also seems really sensitive and would randomly click into menus without any user interaction.

Enable ENCODER_NOISE_FILTER.

helakejr commented 1 year ago

Thank you I'll check it out.

On Tue, Mar 7, 2023, 10:06 PM Keith Bennett @.***> wrote:

Not sure if it's related but my touch screen also seems really sensitive and would randomly click into menus without any user interaction.

Enable ENCODER_NOISE_FILTER.

— Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/25475#issuecomment-1459500423, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFXOLVAJ7KMBL6MBD3I72LW3AHVLANCNFSM6AAAAAAVRVN66Q . You are receiving this because you authored the thread.Message ID: @.***>

bustamantemarlon commented 1 year ago

Enable ENCODER_NOISE_FILTER.

Thank you for the suggestion. Unfortunately, this did not work for me. I even bumped up the sample to 15 with no change.

helakejr commented 1 year ago

I discovered the Marlin 2.1.x bugfix code that broke the menus. In Marlin\src\inc\Conditionals_LCD.h

#if ANY(HAS_UI_320x240, HAS_UI_480x320, HAS_UI_480x272)
  #if ENABLED(TFT_COLOR_UI_PORTRAIT)
    #define LCD_HEIGHT TERN(TOUCH_SCREEN, 8, 9) // Fewer lines with touch buttons onscreen
  #else
    #define LCD_HEIGHT TERN(TOUCH_SCREEN, 6, 7) // Fewer lines with touch buttons onscreen
  #endif

was:

#if ANY(HAS_UI_320x240, HAS_UI_480x320, HAS_UI_480x272)
  #define LCD_HEIGHT TERN(TOUCH_SCREEN, 6, 7)   // Fewer lines with touch buttons onscreen

Unfortunately the MKS_ROBIN_TFT43 touchscreen will not calibrate when set to "TFT_COLOR_UI_LANDSCAPE".

Work around is to comment out new code.

helakejr commented 1 year ago

The 2.1.x bugfix issue #25281 code change broke the Two Trees BLU-5 Bluer Plus mks tft43 menus.

helakejr commented 1 year ago

Still an issue with the back screen Icon getting scrambled when Z+ or Z- used.

On Sun, May 14, 2023, 6:56 PM github-actions[bot] @.***> wrote:

This issue has had no activity in the last 60 days. Please add a reply if you want to keep this issue active, otherwise it will be automatically closed within 10 days.

— Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/25475#issuecomment-1547085572, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFXOLRPBHS2MRK4CDUDKADXGGEONANCNFSM6AAAAAAVRVN66Q . You are receiving this because you authored the thread.Message ID: @.***>

helakejr commented 1 year ago

Additional Detail:

helakejr commented 1 year ago

Finally able to determine a fix for this issue. Here is a draft revised: Marlin-2.1.2.TT_BlueR-Plus\Marlin\src\lcd\tft\ui_480x320.cpp file for my fix. ui_480x320.cpp.txt

thinkyhead commented 1 year ago

It is always preferable if patches are sent using a Pull Request instead of attaching a file to a bug report. I apologize on behalf of GitHub that it's not easy to submit Pull Requests, but it really is the only guaranteed way that we get fixes into the codebase in a timely fashion. We attend to Pull Requests on a daily basis but it often takes us a long time to get around to reviewing issues. Nevertheless, I happen to be looking through Issues a bit today and just encountered this one by chance.

The patch may be straightforward, but since it is out of date with the current codebase it's a minor hassle for one of our volunteers to check out 2.1.2, compare the attached file, gather the changed lines, find the equivalent code in the current codebase, apply the solution to the current code, and then make a PR on your behalf. That said, I do appreciate that you took the initiative to figure out a solution.

You solution may not get patched into a 2.1.2 release, but —assuming it is well-crafted and without side-effects— it will be included in 2.1.3. That update won't be released for at least a couple of weeks. But once the patch is applied, you'll be able to test it by using the bugfix-2.1.x branch.

Thanks again. I'll let you know when the patch has been prepared and posted as a Pull Request for your additional review.

thinkyhead commented 1 year ago

I've posted a PR for you to review over at #25942 so please give it a look and a thorough test to make sure it's all copacetic. It might also be good to have the author of the recent TFT code cleanup look at these changes to make sure they comport with his updates. We can continue the conversation over there, so I will go ahead and close this issue now.

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.