This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#6688 - Gigabeat F/X Display 90 rotate patch
Attached to Project:
Rockbox
Opened by takka (takka) - Friday, 23 February 2007, 11:27 GMT+2
Last edited by Paul Louden (Llorean) - Friday, 19 October 2007, 09:20 GMT+2
Opened by takka (takka) - Friday, 23 February 2007, 11:27 GMT+2
Last edited by Paul Louden (Llorean) - Friday, 19 October 2007, 09:20 GMT+2
|
DetailsGigabeat F/X Display 90 rotate patch
It rotates with the display by the key input 90 degrees. It comes to be able to use WPS of 320x240. |
This task depends upon
Closed by Paul Louden (Llorean)
Friday, 19 October 2007, 09:20 GMT+2
Reason for closing: Rejected
Additional comments about closing: Choosing an alternate build as the method for screen rotation is not a desired feature in SVN Rockbox.
It seems this task is not interested in working toward runtime Rotation, or even boot-time Rotation with a single build.
Friday, 19 October 2007, 09:20 GMT+2
Reason for closing: Rejected
Additional comments about closing: Choosing an alternate build as the method for screen rotation is not a desired feature in SVN Rockbox.
It seems this task is not interested in working toward runtime Rotation, or even boot-time Rotation with a single build.
Could the screen be rotated on the fly ? It would be nice to have portrait orientation in the menus and landscape in some plugins...
I think that a big patch is needed because it should have two images.
Also just realized I patched an older build. 20070215. I'll try using a more up-to-date source. You should probably delete both of these posts. Sorry.
rockbox files & original boot loader
http://rockbox.jpn.org/wiki/?plugin=attach&refer=Gigabeat&openfile=rockbox-exp2_9_71_4_gb.zip
font files
http://rockbox.jpn.org/wiki/?plugin=attach&refer=Gigabeat&openfile=rockbox-exp2_9_71_4_fonts.zip
copy all file to gigabeat.
copy /.rockbox/fonts/*.* to /.rockbox_1/fonts/
push "UP button" when booting, starts in landscape screen mode.
Please rewrite the cfg file when you use WPS for iPod5G.
Example
wps: /.rockbox/wps/Blue5g.wps
font: /.rockbox/fonts/nimbus-14.fnt
foreground color: FFFFFF
background color: 000066
backdrop: /.rockbox/backdrops/Blue5g.bmp
to
wps: /.rockbox_1/wps/Blue5g.wps
font: /.rockbox_1/fonts/nimbus-14.fnt
foreground color: FFFFFF
background color: 000066
backdrop: /.rockbox_1/backdrops/Blue5g.bmp
1)normal build.
2)copy rockbox.gigabeat and /.rockbox to other folder.
3)make clean.
3)patch and rewite "/.rockbox" to "/.rockbox" in all source.
4)build.
5)rename rockbox.gigabeat to rockbox_1.gigabeat
6)rename /.rockbox to /.rockbox_1
3)patch and rewite "/.rockbox" to "/.rockbox" in all source.
a little more details here please.
diff --strip-trailing-cr -ru rockbox_old/apps/settings.h rockbox/apps/settings.h
--- rockbox_old/apps/settings.h 2007-02-20 11:13:25.301776900 +0900
+++ rockbox/apps/settings.h 2007-02-22 16:47:50.711757800 +0900
@@ -47,8 +47,8 @@
#define ROCKBOX_DIR "."
#define ROCKBOX_DIR_LEN 1
#else
-#define ROCKBOX_DIR "/.rockbox"
-#define ROCKBOX_DIR_LEN 9
+#define ROCKBOX_DIR "/.rockbox_1"
+#define ROCKBOX_DIR_LEN 11
#endif
I've been using your patch to just load Rockbox with the screen rotated. (I sincerely thank you for this patch.)
If I want to have the option to load in either screen orientation, do I:
1. Make a normal build and extract it to my Gigabeat.
2. Then patch and simply rename the .rockbox file and /.rockbox folder to gigabeat.rockbox_1 and /.rockbox_1 respectively in the zip and then extract that to my Gigabeat? Once I do this, I reboot and hold the up arrow to load the with the screen rotated?
Or do I actually have to update the patch file to reflect the _1 file and folder? Does this patch work with the official bootloader or is there an unofficial bootloader that we need to get?
Thanks for the help.
Thanks for the help.
Thanks
/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c
I'm pretty sure it has to do with the fact that we don't use DMA anymore so some of the variables need changing. I noticed the original patch has replaced the variables of LCD_WIDTH to R_LCD_WIDTH in the appropriate functions (it is easy to notice which ones if you try to apply and look at the .rej and compare it to the actual code).
Just trying to share what I've found so far, and hoping someone can lend a hand
I was wondering does this patch automatically make the player go 320x240 or is there an option so you can switch rotations at will?
To answer your question about the operation of the screen rotation: Applying this patch and compiling a build makes a build that is orientated 320x240, which you can just load with the regular bootloader as usual.
For things to work like they do in my build for the gigabeat you need to do this:
1. patch the bootloader (see MadCow's post above) and compile a bootloader
2. patch and compile w/o the screen rotation patch
3. patch screen rotation, compile separate build
4. rename the following in the screen rotation build
- .rockbox folder to --> .rockbox_1
- rockbox.gigabeat (inside .rockbox_1) to --> rocbox_1.gigabeat
You would now have a gigabeat that can switch screen rotation. You choose rotation on boot, keypress or no keypress (keypress for 320x240). If you are using the gigabeat fast restart patch aka resume, you will need to 'reboot' in order to change rotations.
- rockbox.gigabeat (inside .rockbox_1) to --> rockbox_1.gigabeat