Skip to content

[BUG] SPEAKER issue with Creality DWIN interface - sound turns off #28080

@TheAndr0id

Description

@TheAndr0id

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

Yes, and the problem still exists.

Bug Description

The buzzer in the standard DWIN Display is capable of playing multiple tones. Unfortunately there are no markings on the surface of the buzzer, but in practice, mine played "Take On Me" well enough.
(some of the "notes" we a little painful, but it worked!)

But... When #SPEAKER is enabled the sound seems to work as usual, but after the print is complete the sound falls silent and requires a power cycle to return.

Bug Timeline

old

Expected behavior

Print completion shouldn't shut off the sound.

Actual behavior

Before and during the print (eg: selecting the "Tune" function) creates a sound as expected. Once the print complete dialog is displayed no further sounds are made.

If #SPEAKER is disabled, sounds play as usual and expected.

Steps to Reproduce

  1. Enable #SPEAKER in firmware.
  2. Print a job. (sound works)
  3. No more sound.

Version of Marlin Firmware

2.1.2.5

Printer model

Ender 3v2

Electronics

stock

LCD/Controller

DWIN (https://marlinfw.org/assets/images/hardware/controllers/T5UIC1_DWIN_back.jpg)

Other add-ons

No response

Bed Leveling

UBL Bilinear mesh

Your Slicer

Prusa Slicer

Host Software

None

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

One thing I did note was in the encoder.cpp file: (src/lcd/e3v2/common)

if (BUTTON_PRESSED(ENC)) {
    static millis_t next_click_update_ms;
    if (ELAPSED(now, next_click_update_ms)) {
      next_click_update_ms = millis() + 300;
      Encoder_tick();

Encoder_tick() utilizes the ui.sound_on flag that can be enabled to control sound from the LCD interface. I have not enabled this feature nor does the Creality DWIN interface seem to support it. Maybe something somewhere is toggling this flag to false?

void Encoder_tick() {
  TERN_(HAS_BEEPER, if (ui.sound_on) buzzer.click(10));
}

Configurations.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions