iPod 6G: Disable usage of deep standby mode on LCD type 2 and 3

This caused the devices to crash a few seconds after sending the command. A small power consumption increase is possible when the screen is off with this patch, but Rockbox doesn't crash anymore. Type 0 and 1 are not affected as they use a completely different sequence.

Tested on iPod 6G LCD type 1 and LCD type 2. Type 0 is similar to Type 1, Type 3 is similar to Type 2, so it should cover all available LCD types.

Change-Id: I3e8a653ca22bf59e3db38e1d26e747b358e62cb2
This commit is contained in:
Vencislav Atanasov 2025-07-22 21:19:46 +02:00 committed by Solomon Peachy
parent 5fa3b1ada3
commit 68a5524a48

View file

@ -57,8 +57,13 @@ static const uint16_t lcd_deepstandby_seq_23[] =
MREG16(1), 0x100, 0x0700,
/* Deep Standby Mode */
/* Sending this on type 2 or 3 LCD causes Rockbox to crash after a few seconds
Disabling it until the root cause is found, it's probably a busy wait somewhere
or a mutex that's not being unlocked in a timely manner */
#if 0
MREG16(1), 0x100, 0x0704,
SLEEP16(5),
#endif
END
};
#endif /* HAVE_LCD_SLEEP || HAVE_LCD_SHUTDOWN */