From f42343b715b8719f0fdd8a95eb69145465800cd4 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sun, 5 Jan 2025 10:10:20 -0500 Subject: [PATCH] [BugFix] Ipod 6G Classic Shutdown Hang I think it comes down to lcd_target_enable_clocks(true) which turning on backlight or lcd_awake calls https://forums.rockbox.org/index.php/topic,55159.0.html Change-Id: Iab2a0abc0763e63213f01bda79dca5e39aa41fc4 --- firmware/backlight.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/backlight.c b/firmware/backlight.c index cc773e0a3b..7f6b81b82f 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c @@ -676,6 +676,9 @@ void backlight_thread(void) case SYS_POWEROFF: /* Lock backlight on poweroff so it doesn't */ locked = true; /* go off before power is actually cut. */ #if !defined(BOOTLOADER) +#if defined(HAVE_LCD_SLEEP) && defined(IPOD_6G) /* bugfix ipod 6G crashes if screen off at shutdown */ + lcd_awake(); +#endif if (!global_settings.show_shutdown_message) break; #endif