This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8523 - Disable WPS updating when the backlight is off.
Attached to Project:
Rockbox
Opened by Magnus Holmgren (learman) - Sunday, 27 January 2008, 23:01 GMT+1
Opened by Magnus Holmgren (learman) - Sunday, 27 January 2008, 23:01 GMT+1
|
DetailsThis is a proof-of-concept patch to stop the WPS from updating the screen if the backlight is off. For now, it is only enabled for the Sansa e200, as I have one and the e200 screen cannot usually be read with the backlight off.
The reason for doing it is that it can increase the runtime a little, depending on the WPS used, though we are probably not talking about very big differences. Should this be applied at all? If so, how? I.e., should it only be enabled for targets where it makes sense, or should an option be added for all targets? The patch also includes some minor code policing changes. |
This task depends upon
2) several targets have a display that is perfectly readable without backlight
3) why mix functional code with code policing in one patch?
Also, battery benchmarks collected as a part of the PortalPlayer power optimization tests suggests there is a (small but noticeable) difference on some targets. As for boosting, when playing Vorbis files (q 4.5), with some sound processing, I get 40-50 % boost ratios on my e200.
2) I'm well aware of that, which is why the patch only does it for the e200 for now.
3) Yeah, I probably should remove it. But it stared me in the face when I was editing that function... :)
FS#8379Frank Gevaerts said that showing the wps or the main menu makes a 15% difference in runtime. This makes me think, that updating the screen permanently or not makes indeed a difference.doesnt patch together with
FS#8385(viewport-wps).needs manually modification for viewports, but works then.
now regarding the general idea:
i understood that this patch stops updating the wps, so graphics are not drawn any more.
so far so good, but is the lcd also completely turned off? or is this handled by any other power saving patch?
I simply added
/* Define this if the screen is unreadable without backlight */
#define NEED_BACKLIGHT
into their config files.
I also put it into every other config-target, just commented out of course. I hope I didn't forget a target (I tripple checked it).
Feel free to add your player if you know that the screen is unreadable without backlight.
PS: I rather like that patch. It doesn't change much actually, but it potentially increases battery runtime.
It would be helpful if you could post the make error to www.pastebin.ca.
gui/gwps-common.c: In function `gui_wps_refresh':
gui/gwps-common.c:2030: error: too few arguments to function `is_remote_backlight_on'
make[1]: *** [/home/bpanesar/rockbox-r17647/rockbox-r17647/build/apps/gui/gwps-common.o] Error 1
make: *** [build] Error 2
patch 8523 is the only one I applied to the svn build mentioned so as to identify if there was another patch that was causing a problem.
Can anyone look into that issue?
The longer the backlight was off, the longer the alternating lines cycle through (at a fast rate). So I expect they are indeed "queued".