Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

backlight: Fix dimmed display doesn't go to sleep

Firmware didn't start sleep countdown if
1. Display was already dimmed
2. Fade out timer was set

You can reproduce this by:
1. Set fade out timer. For example, 500ms
2. Wait till display will be dimmed and go to sleep
3. Switch hold ON or plug headphones

Change-Id: I27ca857aa8db4551bd9caad4815cd73a64bf6185

authored by

Petr Mikhalicin and committed by
Solomon Peachy
246bf4af ad10ed80

+2 -1
+2 -1
firmware/backlight.c
··· 387 387 388 388 static void backlight_setup_fade_down(void) 389 389 { 390 - if (bl_fade_out_step > 0) 390 + /* Start fading display if it's not dimmed yet */ 391 + if (bl_fade_out_step > 0 && bl_dim_current > 0) 391 392 { 392 393 backlight_dim(0); 393 394 }