SPE Scaler Tool

Post your guides and how-to articles here. Add your comments and questions to a guide, but don't post a new thread to ask a question.

Re: SPE Scaler Tool

Postby allanl1234 on Mon Jul 20, 2009 12:05 am

Would it be possible to add 5x scaling?

That would make 320x200 (eg. unscaled dosbox and scummvm) fit nicely on 1920x1080.
allanl1234
New Visitor
New Visitor
 
Posts: 6
Joined: Mon Jul 20, 2009 12:00 am

Re: SPE Scaler Tool

Postby Arakageeta on Mon Jul 20, 2009 1:19 am

I am having trouble running fscaler on my system. I have a newer model PS3 running Ubuntu on a 1080p screen in bordered mode. fscaler segfaults with the following stack trace:
Code: Select all
#0  0x0ff26df8 in syscall () from /lib/libc.so.6
#1  0x0ffd9560 in _base_spe_context_run () from /usr/lib/libspe2.so.2
#2  0x0ffceb34 in spe_context_run () from /usr/lib/libspe2.so.2
#3  0x1000311c in spe_run_thread (arg=<value optimized out>) at ppe/my_ppe_lib.c:319
#4  0x0fe0ae94 in start_thread () from /lib/libpthread.so.0
#5  0x0ff2aee0 in clone () from /lib/libc.so.6
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Not very much to go on. Here's the complementary strace results (from the opening of the frame buffer, onward):
Code: Select all
open("/dev/fb0", O_RDWR)                = 4
ioctl(4, FBIOGET_VBLANK, 0xff83ec5c)    = 0
ioctl(4, TUNIOCSETFREQ, 0xff83ec48)     = 0
mmap(NULL, 6539776, PROT_WRITE, MAP_SHARED, 4, 0) = 0xf6c29000
ioctl(4, TUNIOCGETFREQ, 0)              = 0
sched_yield()                           = 0
sched_yield( <unfinished ...>
+++ killed by SIGSEGV +++

Any ideas? This happens when I run both 2.6.28-6 and 2.6.30-1 kernels (if that matters).
Arakageeta
New Visitor
New Visitor
 
Posts: 4
Joined: Tue May 26, 2009 4:49 pm

Re: SPE Scaler Tool

Postby billb on Tue Jul 21, 2009 1:06 pm

I just installed YDL 6.2 recently which has a 2.6.29 kernel and gcc 4.1 ... both scaler and fscaler are still working OK.

Is scaler segfaulting also, or just fscaler? Sorry, but I probably won't be able to help with this -- perhaps the author of fscaler will jump in on this one.
http://www.ps3bodega.com (my blog) | http://www.yellowdog-board.com (Fixstars YDL community board)
User avatar
billb
Site Admin
Site Admin
 
Posts: 1298
Joined: Thu Jun 26, 2008 1:33 pm
Location: Southeast NC, USA

Re: SPE Scaler Tool

Postby illcoyote on Wed Aug 05, 2009 8:14 pm

#!/bin/sh
scaler -s 3 -t 3000 & quake2.sh
killall scaler

Ok, so I did everything else, downloaded the scaler, did the bin thing, now i'm stuck at this part. You gave an example but.. I have no idea where to put that in lol am I supoposed to type that in a terminal window? Alseo, is the "#" character included? Or just atftr e that? Or am I supposed to make some sort of file, write that script in, and save it as who knows what and open it who knows how? Completely noob here!

Also, since -t 3000 is 3,000 seconds of duration I'm guessing, that means that the scaler will only last as for many seconds as you put in? How do you stop it like if you're done playing the roms? Does it stop by itself? again, how do u open/turn on the scaler thing? I noticed it does zoom in if in just double click the 'scaler' file that comes in the download (after doing th whole bin, etc. thing) but then how do u edit it? If that's even in the right direction... I use ydl 6.2
illcoyote
New Visitor
New Visitor
 
Posts: 1
Joined: Wed Aug 05, 2009 2:30 am

Re: SPE Scaler Tool

Postby Kilonga on Mon Oct 26, 2009 3:51 pm

All errors reported are due to improperly aligned DMA transfers. The problem I am having is that no matter what I try I cannot reproduce the errors. So please when reporting the errors show the output of running the fbset command. And also report what video mode you are running under (you can also copy the contents of your /etc/yaboot.conf file).


Thanks!

I have gotten the 1.5 and 2.5 scaling to work. I also added near5 to the the valid options. I have sent a Beta to billb for him to help me test it and will make v 0.5 available pretty soon.
Kilonga
New Visitor
New Visitor
 
Posts: 23
Joined: Thu Oct 30, 2008 9:35 pm

Re: SPE Scaler Tool

Postby billb on Mon Oct 26, 2009 6:06 pm

Kilonga wrote:I have gotten the 1.5 and 2.5 scaling to work. I also added near5 to the the valid options. I have sent a Beta to billb for him to help me test it and will make v 0.5 available pretty soon.


Great! :mrgreen: Thank you so much for continuing work on this project!
http://www.ps3bodega.com (my blog) | http://www.yellowdog-board.com (Fixstars YDL community board)
User avatar
billb
Site Admin
Site Admin
 
Posts: 1298
Joined: Thu Jun 26, 2008 1:33 pm
Location: Southeast NC, USA

Re: SPE Scaler Tool

Postby Kilonga on Sat Oct 31, 2009 8:39 pm

I am happy to report that I was able to replicate the problems that some users were experiencing and that (so far) I have fixed them. The new version now supports the near5 ( x 5 scaling) and half (x 0.5 scaling) flags and is a little faster than previous versions. I have personally tested the new version using 3 different resolutions with borders and borderless and it has not failed again. The program now also has some debugging info that is printed out whenever a DMA transfer "looks" misaligned but it is disabled by default because it slows down the scaler. So if you have any problems with the latest version I encourage you to set the variable MFC_DEBUG to 1 in the overlay/overlays.h file and re-compile and use that fscaler executable to then report whatever output it produces.

Enjoy!
Kilonga
New Visitor
New Visitor
 
Posts: 23
Joined: Thu Oct 30, 2008 9:35 pm

Re: SPE Scaler Tool

Postby billb on Mon Nov 02, 2009 4:50 am

Got it -- tested OK -- updated RPM. Will upload tomorrow. Thanks!
http://www.ps3bodega.com (my blog) | http://www.yellowdog-board.com (Fixstars YDL community board)
User avatar
billb
Site Admin
Site Admin
 
Posts: 1298
Joined: Thu Jun 26, 2008 1:33 pm
Location: Southeast NC, USA

fscaler 0.5

Postby billb on Tue Nov 03, 2009 3:09 am

I'm planning to add this to the YDL 6.2 version of the ps3bodega repo, but since that isn't up yet I'll provide links to the latest version of fscaler here:

RPM (if you just want to use fscaler, this is all you need to install):
http://pleasantfiction.ipower.com/ps3li ... dg.ppc.rpm

SRPM (if you want to rebuild the RPM):
http://pleasantfiction.ipower.com/ps3li ... dg.src.rpm

Source archive (if you want to compile it yourself / for another distro):
http://pleasantfiction.ipower.com/ps3li ... .5.tar.bz2

This version adds near5 scaling (5x) on the first and/or second pass, and half scaling on the second pass only. So now we have non-integer scaling! :D For example, use near3 or scale3x on the first pass, and half on the second pass for 1.5x. Or near5 and half for 2.5x.

Thanks to kilonga for continuing work on this project!
http://www.ps3bodega.com (my blog) | http://www.yellowdog-board.com (Fixstars YDL community board)
User avatar
billb
Site Admin
Site Admin
 
Posts: 1298
Joined: Thu Jun 26, 2008 1:33 pm
Location: Southeast NC, USA

scalergui 0.1

Postby billb on Wed Nov 04, 2009 12:53 am

Here's an RPM for scalergui 0.1 with added support for fscaler 0.5 (adds near5 and half):
http://pleasantfiction.ipower.com/ps3li ... noarch.rpm

Here's the (very small) patch for scalergui 0.1 which adds the new modes (already applied in the above RPM):
http://pleasantfiction.ipower.com/ps3li ... ller.patch

SRPM for rebuilding:
http://pleasantfiction.ipower.com/ps3li ... dg.src.rpm
http://www.ps3bodega.com (my blog) | http://www.yellowdog-board.com (Fixstars YDL community board)
User avatar
billb
Site Admin
Site Admin
 
Posts: 1298
Joined: Thu Jun 26, 2008 1:33 pm
Location: Southeast NC, USA

Previous

Return to Guides & How-To Articles

Who is online

Users browsing this forum: No registered users and 1 guest