This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#4962 - Backlight in plugins
|
DetailsSets the backlight to be always on while plugin is running.
Changes made to: bubbles, clock, cube, demystify, dice, dict, euroconverter, flipit, jackpot, jewels, jpeg, logo, mandelbrot, minesweeper, mosaique, nim, pong, rockblox, sliding puzzle, snake2, snake, snow, sokoban, solitaire, star, stats, stopwatch, sudoku, vu_meter, wormlet, bounce, calculator, calender, chessclock, rockdoom |
This task depends upon
cube, clock, star, vu_meter, wormlet, calculator, flippit, mandelbrot, slidingpuzzle, sokoban, stopwatch
(they quit immediately or on first button press)
I'm trying to find out why, but i'm not really sure whats causing it.
+ /* Set backlight timeout back to user setting */
+ rb->backlight_set_timeout (rb->global_settings->backlight_timeout);
return PLUGIN_USB_CONNECTED;
should be:
+ {
+ /* Set backlight timeout back to user setting */
+ rb->backlight_set_timeout (rb->global_settings->backlight_timeout);
return PLUGIN_USB_CONNECTED;
+ }
Here's the updated patch
(All plugins work now AFAIK)
Third time lucky?
(my) clock plugin actually has a backlight option in the menus. Off, RB (rockbox timeout), and ON. No need to patch it. :)
Zakk
Also, not everyone will want the backlight constantly enabled in all the plugins. An alternative approach could be to add a global option "Backlight in plugins (e.g. on/off/rb timeout)", which could be implemented in plugin.c - before and after the plugin is run.