Forum: PS3 Technical Development - Topics relating to Playstation 3 Technical development ONLY! Read and discuss the latest Cobra USB updates, tutorials and explanations or find out about bluray drive bypass firmwares plus much more.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: A few linux Tweaks for AsbestOS
  

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
  1. #1 A few linux Tweaks for AsbestOS 
    mjgdroid is offline Member
    Join Date
    Nov 2010
    Posts
    76
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    First we are going to start by making a swap file, this will create a useble virtual memory to speed up the ps3. We are also going to use the ps3, 256 ram afterwards to help increase our speed, because the AsbestOS does not utilize this part of the PS3 yet. If you are runing Kaosh, or The kmeaw's Ubuntu images.

    So lets begin: first we need to start up terminal, or type cntrl+alt+ f5/f4/f3 wich ever you prefer.

    Then type the following: This may take some time...

    Code:
    sudo dd if=/dev/zero of=/mnt/1500Mb.swap bs=1M count=1500
    This will create a swap file of 1500 Mega bytes or 1.5 gb.

    Next type:

    Code:
    sudo mkswap /mnt/1500Mb.swap
    This added the swap file to the running system, now lets make this happen on startup.

    Type the following:

    Code:
    sudo nano -w /etc/fstab
    Now add this line to the bottom:

    Code:
    /mnt/1500Mb.swap  none  swap  sw  0 0

    We also need to change the swappiness by typing :

    Code:
    vm.swappiness=100
    You can change 100 to any number 100 is 100%, Next we have make this happen on startup so type:
    Code:
    sudo nano -w /etc/sysctl.conf
    Then add this line:

    Code:
    vm.swappiness=100
    Ok now lets add the PS3vram to swap and make it run at startup

    Type:

    Code:
    sudo gedit /etc/modules
    add "ps3vram" at the end of the file

    save the file and get back to the terminal type:

    Code:
    sudo gedit /etc/rc.local
    scroll untill you see these lines of code:

    exit 0

    Before exit 0 add the following:

    Code:
    mkswap -f /dev/ps3vram
    swapon -p 1 /dev/ps3vram
    save and exit.

    Now if we haven't done so already and our screen still isnt working correctly lets fix this.


    The first order of business is installing fbset...


    Code:
    sudo apt-get install fbset

    Fbset will not work properly while you are still in an X environment. You may want to print all of these instructions out, or write them down on a notebook.

    Next we kill our X server, the safest way of doing this is by pressing ctrl+alt+f1
    That will drop you to a terminal. Then we log in, and enter this.


    Code:
    sudo /etc/init.d/gdm stop

    Next we are going to change our video mode to FULL screen where we get our overscan issues. We will do this using the ps3-video-mode command.

    I use 720p so for me the command for fullscreen is:


    Code:
    ps3-video-mode -v 131
    If you are using 1080i it will be:


    Code:
    ps3-video-mode -v 132

    or for 1080p..



    Code:
    ps3-video-mode -v 133

    Now you will notice that half your command prompt and the text is off to the side of the screen... don't panic we will take care of that. We are going to begin scaling the resolution down with fbset until it properly fit's our screen. The hardest part about doing this is that you may not always be able to see what you are typing until your screen settings become more sane. First a little bit about fbset terminology..

    -a *makes the settings system wide and applies to all screens*

    -xres *sets the horizontal resolution*

    -yres *sets the vertical resolution*

    -vxres *sets the virtual horizontal resolution*

    -vyres *sets the virtual vertical resolution*

    So.. for me when I used ps3-video-mode -v 132 to set my screen to full resolution it set it to a resolution of 1920x1080, but with the overscan issue. You might have to adjust pixels.
    Code:
    fbset -a -xres 1920 -yres 1080 -vxres 1920 -vyres 1080
    Now to make the settings stick everytime you boot, edit your kboot.conf file.


    Code:
    sudo nano -w /etc/kboot.conf

    Find this line on the end of your boot string..

    Code:
    video=ps3fb:mode:3'
    Then change it too the full screen resolution you want to boot with..

    Code:
    video=ps3fb:mode:132'
    Now save your kboot.conf *if you are using nano just hit ctrl+x then press Y*

    Next we make sure that our fbset command runs right after the fullscreen command we just entered into our kboot.


    Code:
    sudo nano -w /etc/init.d/fbset.sh

    Insert your correct fbset resolutions and mode command into this file and make it look like this... my resolutions are used here as an example.


    Code:
    #!/bin/sh -e
    fbset -a -xres 1920 -yres 1080 -vxres 1920 -vyres 1080
    exit 0

    Then save the file. *if you are using nano just hit ctrl+x then press Y*

    Next we make that file executable like so..


    Code:
    sudo chmod 755 /etc/init.d/fbset.sh

    Now we create a link to that file in rc2.d so it runs right before gdm starts..

    Code:
    sudo ln -s /etc/init.d/fbset.sh /etc/rc2.d/S26fbset

    Next we type these magic words..


    Code:
    sudo reboot

    Upon rebooting x should start and when gdm loads, no more black borders.

    *note* please do not try and use my values, they will most likely be different for everyone.

    *note* I have tried to keep this as new user friendly as possible, however sometimes I assume a certain amount of linux experience. If any of this confuses you or you are unsure please ask your questions in this thread and I will reply as soon as I can.


    We are also going to add this to rc.local to make sure the fbset has been added to the running system and changes the resolution. To do this type in the terminal:

    Code:
    sudo nano -w /etc/rc.local
    now add these lines below were you input the ps3vram from before like this:



    Code:
    mkswap -f /dev/ps3vram
    swapon -p 1 /dev/ps3vram
    
    sudo fbset -a -xres 1920 -yres 1080 -vxres 1920 -vyres 1080
    sudo /etc/init.d/gdm stop
    sudo fbset -a -xres 1920 -yres 1080
    sudo /etc/init.d/gdm start
    sudo ps3videomode -v 132
    sudo /etc/init.d/gdm stop
    sudo ps3videomode -v 132
    sudo /etc/init.d/gdm start
    sudo sysctl vm.swappiness=100
    save and exit and now reboot, and enjoy asbestos with ps3vram and full screen. I have 2 computers running ubuntu and after these tweaks I honestly dont see much difference in speed from my ps3 to my pc.
    my pc is not junk either dual core 4ghz 4 gb ddrram 500+ gb hdd
    Last edited by mjgdroid; 03-04-2011 at 01:12 PM.
    Reply With Quote  

  2. #2  
    mjgdroid is offline Member
    Join Date
    Nov 2010
    Posts
    76
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Aslo to see your swap in action type:

    Code:
    swapon -s
    will show your new 1500Mb.swap file and the ps3vram partition like so

    /mnt/1500Mb.swap file 15339960 used 0 -1
    /dev/ps3vram partition 251900 30684
    Reply With Quote  

  3. #3  
    VriskaBlack's Avatar
    VriskaBlack is offline !DOUBLE PSYCHIC REACHAROUND!
    Join Date
    Aug 2010
    Posts
    277
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    24
    Likes Received
    28
    This seems pretty awesome. So is a swapfile similar to a pagefile on Windows?
    Reply With Quote  

  4. #4  
    mjgdroid is offline Member
    Join Date
    Nov 2010
    Posts
    76
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Dunno what a pagefile is I guessed I am gonna see if a pagefile is free. Virtual memory then this is just just like a page file
    Reply With Quote  

  5. #5  
    giyotin is offline Registered User
    Join Date
    Sep 2010
    Posts
    9
    Downloads
    1
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    [lang=de]sudo problem for me
    im not joining sudo[/lang]
    Reply With Quote  

  6. #6  
    xPreatorianx is offline Sleeping for real this time!
    Join Date
    Aug 2010
    Posts
    1,790
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    349
    Likes Received
    338
    A pagefile is basically virtual memory that sits on the harddrive. The OS swaps the memory back and forth between the pagefile and the actual memory.

    Quote Originally Posted by giyotin View Post
    [lang=de]sudo problem for me
    im not joining sudo[/lang]
    No idea what that means. Could you please elaborate?

    If you are talking about not wanting to use sudo it's required for some commands so you have to use it to elevate your account to root privileges.

    Thanks for the tweaks btw I plan on installing linux here very soon.
    Reply With Quote  

  7. #7  
    Pahnda is offline Registered User
    Join Date
    Nov 2010
    Posts
    16
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    can't do the first step because it says not enoug space left on device.
    i use Kaosh 3.0 on internal hdd
    Reply With Quote  

  8. #8  
    Pahnda is offline Registered User
    Join Date
    Nov 2010
    Posts
    16
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    can't do the first step because it says not enoug space left on device.
    i use Kaosh 3.0 on internal hdd
    Reply With Quote  

  9. #9  
    mjgdroid is offline Member
    Join Date
    Nov 2010
    Posts
    76
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Quote Originally Posted by Pahnda View Post
    can't do the first step because it says not enoug space left on device.
    i use Kaosh 3.0 on internal hdd
    If your using kaosh change the first value to like 150, 500 Max. Kaos is only 3 gb I didnt think about that. were as kmeas is 10 gigs i made a big swap file, so ya just change the number to lower 150 = 150 megs 500 = 500 Megabytes
    Reply With Quote  

  10. #10  
    tuner2000i is offline Registered User
    Join Date
    Feb 2011
    Posts
    2
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    hello. i am trying to follow your tuturial right now. i have asbestos 1.5 and kmeaw's ubuntu. the vm.swappiness command does not work for me...it says it does not exit and i also don't have the /etc/kboot.conf file

    i can create the file..but what to write in it?

    please help... i am not the best with linux...and i did not have a ps3 when otheros did still exist
    Reply With Quote  

Page 1 of 2 1 2 LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •