Skip to content
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

[Feature Request] Longer ABR time #63

Open
SirioSechi opened this issue Aug 3, 2023 · 3 comments
Open

[Feature Request] Longer ABR time #63

SirioSechi opened this issue Aug 3, 2023 · 3 comments

Comments

@SirioSechi
Copy link

Hi
Currently in the menu ABR (settings for the time of the backlignt) is OFF; 1; 2; 3; 4; 5.
My proposition is to give more time until 10 seconds, such: OFF; 2; 4; 6; 8; 10.

Thank you.

@SirioSechi SirioSechi changed the title Request:: Longer ABR time [Feature Request] Longer ABR time Aug 4, 2023
@Tunas1337
Copy link
Contributor

@SirioSechi This is now possible with a uvmod-kitchen patch: https://github.com/amnemonic/Quansheng_UV-K5_Firmware/blob/main/uvmod_kitchen/mod_double_abr_values.py

@tywtyw2002
Copy link

The backlight is controlled by following code.

// Enable backlight function.
  uVar1 = ABR_time;
  if (uVar1 != 0) {
    set_bit(&GPIO_PORTB,6);
    uVar1 = ABR_time;
    screen_timer = uVar1 * 2 + 1; //tick seems 0.5s
  }
// turn off backlight, in somewhere of main loop.
      timeleft = screen_timer?;
      screen_timer = timeleft -1;
      if ((timeleft !=0) && screen_timer == 0 ) {
        clear_bit(&GPIO_PORTB,6);
      }

Another possible solution for backlight control is to mask out the turn off code section and create a separate function to handle the backlight's shutdown. In this case, we could get more control for backlight.
Such as

  • never turn off backlight when charging
  • one key switch backlight auto turn off /never turn off.

@SirioSechi
Copy link
Author

Is it possible to integrate it by default in all new versions? I think it is a useful improvement.

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

No branches or pull requests

3 participants