This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#5474 - Brightness & Contrast for the X5
|
Details1. Adapted the HAVE_BACKLIGHT_BRIGHTNESS control of the H300 for the X5.
2. Added contrast control via VDV voltage of the LCD (same way that the OF does that). Also edited settings{.h,.c,_menu.c} as appropriate. comments for commiter: a. please get rid of lcd_default_contrast() and replace it by DEFAULT_CONTRAST_SETTING on other platforms as well. b. maybe it'd be wiser to #define HAVE_LCD_CONTRAST instead of checking !defined(LCD_COLOR) || defined(IAUDIO_X5). |
This task depends upon
---8<------8<------8<------8<------8<---
I have managed to get the contrast & brightness patch to work!! The problem is exactly as RaeNye said: the settings need to be reset & rebuilt.
I edited apps/settings.c and changed line 97 from
#define CONFIG_BLOCK_VERSION 44
to
#define CONFIG_BLOCK_VERSION 45
This forced the stored settings to be rebuilt & reloaded. The brightness & contrast changes perfectly now.
---8<------8<------8<------8<------8<---
- bumped CONFIG_BLOCK_VERSION
- resynced with current CVS
- tested compilation on h1xx, h3xx, ipod photo, archos player and x5
- apply with patch -p1
the relevant datasheet is the first link in
http://www.rockbox.org/twiki/bin/view/Main/IaudioX5HardwareComponents#LCD_Varitronix_COG_T180MLH
page 31 describes POWER_REG_5 (0x0e) and page 34 describes the relevant field (VDV).
The OF sets contrast in the same manner.