psubuntu logo
It is currently Tue Sep 07, 2010 1:38 pm
Register


Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2, 3  Next
Author Message
Offline
 Post subject: PS3 Ubuntu 9.04 FBSet=No More Black Bars!! *UPDATED*
PostPosted: Fri Jul 24, 2009 3:52 am 
 WWW  YIM  Profile

Joined: Fri Jul 24, 2009 2:32 am
Posts: 15
I'm writing this as kind of an update (or whatever you'd like to call it) on Swift's PSUbuntu Black Bar tutorial. I'm not sure of which version of Ubuntu (or Kubuntu or Xubuntu) he was using when he did the tutorial, but obviously, this one is for those who've recently upgraded to Ubuntu 9.04 Jaunty Jackelope (or for those who've had 9.04 for a while, but just cant seem to get rid of those stubborn black borders!). The way I did it seemed a little easier than the way Swift explained it, although, giving credit where credit is (most certainly) due, the end result, is the same. By the way, this is my first post, and it may not work for everybody, but I had a brain fart in the middle of using Swift's tutorial, and amazingly it worked. If this method only works for one person, that's good enough for me (although maybe not for the mods. :mrgreen: ) Also, a quick note, I use the sudo command before everything because sometimes when I used the fbset commands, it would deny permission, so to save time I just throw a quick sudo in front of everything. Let's begin, shall we?

First and foremost, let's get the program we need, FBSet. Sets the framebuffer. FB... Get it?? Good.

Lets open up a terminal. In it, we will type the following:
Code:
sudo apt-get install fbset


You may want to restart your system after you install FBSet, just to be on the safe side. Now, let's open our terminal back up and type:
Code:
sudo fbset


This will tell us what resolution we are running right now. My video mode was set at "4" for 1080i, and my resolution was 1688x964. I'm lucky enough to have a display on my tv that tells me what resolution it runs at when I start my PS3. Every time I turn it on, a little box comes up dead center of the screen that reads "HDMI-1 1920x1080i." So, let's make it 1920x1080. By the way, you can change any of these according to what resolution your screen runs at. I am not familiar with 720p or 1080p models, so check the manual that came with the tv, or that nifty little box that shows up when you turn your PS3 on, if your tv has one.

Let's go ahead and change this beast to full screen. This is where Swift and I start to change directions a little. We're going to go ahead and edit the kboot.conf and change it to fullscreen in the terminal. Hopefully, you still have your terminal open, if not open it back up and type:
Code:
sudo nano -w /etc/kboot.conf


Check your "default=" line. It should be "default=linux," but if you have changed it prior to this, use the line that is your default. Use your arrow keys and scroll down to the linux line (assuming linux is your default) and scroll to the end of the line. Find "video=ps3fb:mode:#". Again, mine was 4, because I'm running 1080i. If you have a 720p tv, it will be 3, or if you are using a 1080p tv, it will be 5. Now, just add 128 to whatever number is at the end of your line. Mine was 4. 4+128=132. So, my line will now read "video=ps3fb:mode:132". Now, go ahead and press CTRL+X to save, Y to confirm, and finally, press ENTER to finalize the save.

Quick tip here, if you don't already, I suggest putting a desktop shortcut to your terminal program on your desktop so you don't have to deal with finding the menu buttons once you restart, because after you reboot, you will have some serious overscan to deal with. I would put it right in the middle of the desktop for now so you can just click on it to open it right back up.

Now, let's give it a reboot.
Code:
sudo reboot


Alright, now we're faced with our old nemesis OVERSCAN MAN!! Let's open our terminal up so we may thwart his tomfoolery!! In the terminal, type:
Code:
sudo fbset


Now, you should notice that fbset is displaying in a higher resolution than it was before. You sly dog, you. Again, your dimensions will most likely be different than mine, so I'm just going from what worked with mine. If you remember, at the beginning mine was originally displaying at 1688x964. Now, its pumping the full 1920x1080. But for whatever reason, my tv runs at 1920x1080, but when you change the framebuffer to run at 1920x1080, it hangs all outside the screen. Whatever. Not for long.

This is where I had that brain fart. All I did here was break out the trusty cell phone calculator, and did a little math. First, I subtracted the original Xres from the current Xres. (1920-1688=232) Then, divide that in half. (116) Now, subtract the original Yres from the current Yres. (1080-964=116) Divide that in half, also. (58) Now, add your results to THE ORIGINAL resolutions. As I said, mine were originally 1688x964. Add the 116 to 1688, and I got my new Xres, 1804. Add the 58 to the 964, and I got my new Yres, 1022. Remember, my values will most likely not work for you, so do your own math, and maybe it will work for you!

Now, we can basically follow Swift's tutorial the rest of the way.

Now, we'll make our FBSet commands run right after the fullscreen command and before the desktop boots.
Code:
sudo nano -w /etc/init.d/fbset.sh


Insert YOUR resolutions into the command file and make it look like this. We're going to go ahead and set our virtual resolutions here just to prevent any problems. (Be sure to set virtual resolutions to the same as your default resolutions.) I have used my resolutions here, so be sure to replace them with your own.
Code:
#!/bin/sh -e
fbset -a -xres 1804 -yres 1022 -vxres 1804 -vyres 1022
exit 0


Now, CTRL+X, press Y to confirm, and ENTER to save.

Next, we make that file executable.
Code:
sudo chmod 755 /etc/init.d/fbset.sh


Now, let's create a link to that file in rc2.d so it will run right before the GDM starts.
Code:
sudo ln -s /etc/init.d/fbset.sh /etc/rc2.d/S26fbset


Let's give it a reboot!
Code:
sudo reboot


Now, hopefully, when your Ubuntu boots up, your tv won't catch fire, and maybe even it will be displaying correctly!!

If this works for anybody, please leave some comments letting others know it works. If not, DEFINITELY leave comments so others know that it doesn't work. Either way it goes, it's a little faster, and seems a little less tedious than Swift's method.

You may also notice that the end half is almost (and I use the term "almost" very loosely) identical to Swift's tutorial. That is because the only differences between his and mine is the method that we changed the framebuffer settings, but his method for applying and saving the changes were perfect, so I basically just copied and pasted the last few steps. I must give thanks to Swift, without his tutorial, I never even would've tried this, and I would still be looking at this tiny screen with those wretched black bars. Feel free to leave some constructive criticism, if there are any holes in my method, they need to be filled, so any help filling them will be appreciated!! (But probably not rewarded. lol)

GOOD LUCK ALL!!!


*UPDATE*
Alright, as I said in the comment below, there were still some very tiny black borders, so if yours still has the borders around it, we can edit the fbset.sh to update your resolution.

Unlike in Swift's tutorial, we CAN increase resolution, we aren't limited to strictly decreasing and having to reset if we go to far.

Ok, well let's get on to removing those little black bars.

Open your terminal, or if you still have your terminal open type:
Code:
sudo nano -w /etc/init.d/fbset.sh


This will bring up the file where you set your resolution settings. It will look like this (Again, I will be using my resolution here, you'll use your own.):
Code:
#!/bin/sh -e
fbset -a -xres 1804 -yres 1022 -vxres 1804 -vyres 1022
exit 0


Now, I recommend using 4 pixel increments. You'll probably get your Xres right before you get your Yres. Just add 4 pixels to each of your resolutions, CTRL+X, Y, then ENTER. Then;
Code:
sudo reboot


Repeat until black bars are completely gone. I only had to do this twice before my Xres was set perfectly. Then, I only had to add 2 to my Yres, and the screen is perfect.

This should get you fixed up. Comment!!!


Last edited by metalmilitia419 on Sat Jul 25, 2009 12:31 am, edited 2 times in total.

Top
 

Offline
 Post subject: Re: PS3 Ubuntu 9.04 FBSet=No More Black Bars!!
PostPosted: Fri Jul 24, 2009 8:17 am 
 WWW  YIM  Profile

Joined: Fri Jul 24, 2009 2:32 am
Posts: 15
OK, I just put my glasses on and looked VERY closely at my tv, and it seems that there is still a teeny tiny black border, but it's so minute that if you're sitting over a foot away from it, you'll probably never notice it. Although, I'm sure there will be villagers with burning torches after me because there are still those itsy bitsy black bars around it, so I'm going to try to edit my fbset.sh and see if I can't just add a few pixels and save it and maybe that'll work. I'll let you know if/how it works. Also, I've got a buddy that's about to try this, but first he's going to have to get rid of that god-awful Yellow Dog he's got on there now, and get with the program. (Get with the OS??) Anyways.... I SHALL RETURN!


Top
 

Offline
 Post subject: Re: PS3 Ubuntu 9.04 FBSet=No More Black Bars!! *UPDATED*
PostPosted: Fri Oct 16, 2009 4:28 pm 
 Profile

Joined: Fri Oct 16, 2009 4:18 pm
Posts: 3
I was following your tutorial to the letter, up until I got to the point that said "sudo fbset" to find out your video mode. The readout I get is:

mode "1124x644-60"
# D: 74.178 Mhz, H: 44.957 kHz, V: 59.942 Hz
geometry 1124 644 1124 644 32
timings 13481 298 148 57 44 80 5
bcast time
rgba 8/16, 8/8, 8/0, 8/24
endmode


The first thing I noticed is that it does not supply me with the variables you mentioned in your post, where 4 = 1080i et al.
Regardless, I continued to the next code of " sudo nano -w /etc/kboot.conf"

This is the output:

message=/etc/kboot.msg
default=linux
timeout=100
linux='/boot/vmlinux initrd=/boot/initrd.img root=UUID=bcf12c4f-889c-4bbf-a2b3-$-a2b3-19d8f77fc048 quiet'
old=' /boot/vmlinux.old initrd=/boot/initrd.img.old root=UUID=bcf12c4f-889c-4bbf$c-4bbf-a2b3-19d8f77fc048 quiet'

Nowhere does it say "video=ps3fb:mode:#". Did I do something wrong or miss something? I'm very new to linux and would like this resolved so that I can enjoy the full 1080 of linux-side PS3!


Top
 

Offline
 Post subject: Re: PS3 Ubuntu 9.04 FBSet=No More Black Bars!! *UPDATED*
PostPosted: Fri Oct 16, 2009 4:44 pm 
 Profile

Joined: Wed Jan 14, 2009 8:57 pm
Posts: 450
Location: The Netherlands
You can add it after "quiet" and before the " ' ".

_________________
Image


Top
 

Offline
 Post subject: Re: PS3 Ubuntu 9.04 FBSet=No More Black Bars!! *UPDATED*
PostPosted: Sat Oct 17, 2009 2:07 am 
 Profile

Joined: Fri Oct 16, 2009 4:18 pm
Posts: 3
Ahhh thank ya!


Top
 

Offline
 Post subject: Re: PS3 Ubuntu 9.04 FBSet=No More Black Bars!! *UPDATED*
PostPosted: Fri Oct 30, 2009 8:57 am 
 Profile

Joined: Thu Mar 26, 2009 8:15 pm
Posts: 29
pre-boot fbset commands aren't working on Karmic for some reason


Top
 

Offline
 Post subject: Re: PS3 Ubuntu 9.04 FBSet=No More Black Bars!! *UPDATED*
PostPosted: Fri Oct 30, 2009 11:31 am 
 Profile

Joined: Wed Jan 14, 2009 8:57 pm
Posts: 450
Location: The Netherlands
Just a little addition to the guide, SwiftBiscuit meant that you cannot increase the resolution if you go to far without rebooting, try it for yourself.

_________________
Image


Top
 

Offline
 Post subject: Re: PS3 Ubuntu 9.04 FBSet=No More Black Bars!! *UPDATED*
PostPosted: Sat Oct 31, 2009 6:40 am 
 Profile

Joined: Thu Mar 26, 2009 8:15 pm
Posts: 29
I found a workaround for Xubuntu 9.10 for this. After editing kboot.conf

sudo nano -w /etc/rc.local

And add this lines:

sudo fbset -a -xres XXXX -yres XXX -vxres XXXX -vyres XXX
sudo /etc/init.d/gdm stop
sudo fbset -a -xres XXXX -yres XXX
sudo /etc/init.d/gdm start

sudo mkswap /dev/ps3vram
sudo swapon -p1 /dev/ps3vram

This way you get to set resolution and vram swap all at once. 8-)


Top
 

Offline
 Post subject: Re: PS3 Ubuntu 9.04 FBSet=No More Black Bars!! *UPDATED*
PostPosted: Thu Nov 05, 2009 11:03 pm 
 Profile

Joined: Mon Nov 02, 2009 12:54 am
Posts: 9
Hello, hope someone gets to read and reply to this. I am running Ubuntu 9.04. I was trying to edit the kboot.conf file and I added my screen res. at the end of the file. something like this:

message=/etc/kboot.msg
default=linux
timeout=100
linux='/boot/vmlinux initrd=/boot/initrd.img root=UUID=bcf12c4f-889c-4bbf-a2b3-$-a2b3-19d8f77fc048 quiet'
old=' /boot/vmlinux.old initrd=/boot/initrd.img.old root=UUID=bcf12c4f-889c-4bbf$c-4bbf-a2b3-19d8f77fc048 quiet'
linux='video=ps3fb:mode:131'

Now when I try to boot I get an error. I tried to edit kboot.conf at the kboot prompt but it won't let me save, saying it is red only. As near as I can figure I should have put my video=....... on the end of the linux='/boot line after quiet. Let me know if I am on track. Thanks


Top
 

Offline
 Post subject: Re: PS3 Ubuntu 9.04 FBSet=No More Black Bars!! *UPDATED*
PostPosted: Fri Nov 06, 2009 6:38 am 
 Profile

Joined: Wed Jan 14, 2009 8:57 pm
Posts: 450
Location: The Netherlands
I think you forgot the ' at the end,

The easiest method is to download petitboot:
http://www.kernel.org/pub/linux/kernel/ ... 01-cui.bld

rename the WHOLE file to otheros.bld and run "install other os" again.

Then start up the OtherOS and you will see something like kboot, but with a gui.

you can edit a line by pressing e, you will still have to manually edit and save when you booted.

_________________
Image


Top
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2, 3  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group  
Design By Poker Bandits