UNR 9.04 and slow flash video (YouTube)

Discussion in 'Linux' started by spankbot, May 3, 2009.

  1. spankbot

    spankbot

    Joined:
    Apr 11, 2009
    Messages:
    4
    Likes Received:
    0
    I have the D150 version...

    YouTube videos were very jerky after a fresh install of UNR 9.04 for me. It seems like the Ubuntu supplied flash player is slow on these little machines. Installing the Adobe supplied player improved things greatly for me... Here's what I did.

    I first un-installed the the Ubuntu supplied flash stuff - these three packages need to be removed...

    swfdec-mozilla
    flashplugin-installer
    flashplugin-nonfree

    Then go to the Adobe site and download the .dep for Linux and install it. (sudo dpkg -i <package name>.deb).

    (This last step may not be necessary) Once the Adobe package is installed, create a directory called "plugins" in $HOME/.mozilla/ and copy /usr/lib/adobe-flashplugin/libflashplayer.so there. Obviously, because it's UNIX, pay attention to permissions. You need to make sure you own ~/.mozilla/plugins and it's contents.

    Once all that is done, restart Firefox, and check about:plugins page to make sure it sees libflashplayer.so

    Also, in general it's much smarter to stick with the software provided by Ubuntu and thats maintained by the package management system, so do this at your own risk.

    HD content from Youtube and sites like Vimeo still sucks. How do those video's run in XP? Is this a hardware limitation or just immature Linux drivers?
     
    spankbot, May 3, 2009
    #1
  2. spankbot

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    add enable_mtrr_cleanup mtrr_spare_reg_nr=1 to your defoptions line in grub to fix this.
     
    Sarvatt, May 3, 2009
    #2
  3. spankbot

    lotus49

    Joined:
    Jun 29, 2008
    Messages:
    343
    Likes Received:
    0
    Location:
    Yorkshire
    Curiously, I have this problem with Sickboy's kernel but not with the stock 9.04 kernel (although this isn't the UNR version).

    Unfortunately, Sarvatt's suggestion made no discernible difference on my computer.
     
    lotus49, May 5, 2009
    #3
  4. spankbot

    mzc

    Joined:
    Sep 10, 2008
    Messages:
    106
    Likes Received:
    0
    Sarvatt's suggestion is also posted in the ubuntu community AAO site. Looking deeper in launchpad, if I read it right, there will be no official fix on this.. It seems that jaunty is really just a maintenance release to 8.10...and.. Karmic is now the focus as this may be in direct collision to the upcoming Windows 7.

    :) just a thought :lol:
     
    mzc, May 6, 2009
    #4
  5. spankbot

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    if you want to tell if it's doing anything outside of just observing, do a cat /proc/mtrr. if it doesn't look like this you need the cleanup or else you'll get bad SD flash performance like you describe.

    reg00: base=0x000000000 ( 0MB), size= 1024MB, count=1: write-back
    reg01: base=0x040000000 ( 1024MB), size= 512MB, count=1: write-back
    reg02: base=0x05f500000 ( 1525MB), size= 1MB, count=1: uncachable
    reg03: base=0x05f600000 ( 1526MB), size= 2MB, count=1: uncachable
    reg04: base=0x05f800000 ( 1528MB), size= 8MB, count=1: uncachable
    reg05: base=0x060000000 ( 1536MB), size= 256MB, count=1: write-combining

    acer's bios has all mtrrs used and none of them for video ram. last I checked sickboy's kernel didn't include mtrr cleanup support so the boot options would have no effect anyway. Here is the stock mtrr setup without cleanup and 1 spare reg enabled for reference.


    [ 0.000000] reg 0, base: 4194176KB, range: 128KB, type WP
    [ 0.000000] reg 1, base: 4194048KB, range: 128KB, type UC
    [ 0.000000] reg 2, base: 0GB, range: 1GB, type WB
    [ 0.000000] reg 3, base: 1GB, range: 512MB, type WB
    [ 0.000000] reg 4, base: 1528MB, range: 8MB, type UC
    [ 0.000000] reg 5, base: 1526MB, range: 2MB, type UC
    [ 0.000000] reg 6, base: 1525MB, range: 1MB, type UC
    [ 0.000000] reg 7, base: 0GB, range: 128KB, type UC
    [ 0.000000] WARNING: BIOS bug: VAR MTRR 7 contains strange UC entry under 1M, check with your system vendor!

    you'd really need more info on your setup to know why it does or doesn't give slowdowns, exa/uxa/kms or not/tiling enabled or not/driver versions for instance.. If you want the very latest drivers available there is always this PPA that I post them to. EXA/XAA were removed from more recent drivers and UXA has stablized a crazy amount compared to ubuntu's stock ones.

    https://launchpad.net/~xorg-edgers/+archive/ppa


    BTW- HD youtube videos are pretty much unplayable even on XP, you're looking at the limitations on our slow cpus there :)
     
    Sarvatt, May 6, 2009
    #5
  6. spankbot

    jdeluca

    Joined:
    Dec 31, 2008
    Messages:
    11
    Likes Received:
    0
    @sarvatt

    can you explain in more detail for a relative noob where and how I must modify Grub to remove video choppiness?

    This is my result from a cat /proc/mtrr in terminal so I know I've got an issue per your instructions. Thanks for the clarification.

    reg00: base=0x0fffe0000 ( 4095MB), size= 128KB, count=1: write-protect
    reg01: base=0x0fffc0000 ( 4095MB), size= 128KB, count=1: uncachable
    reg02: base=0x000000000 ( 0MB), size= 1024MB, count=1: write-back
    reg03: base=0x040000000 ( 1024MB), size= 512MB, count=1: write-back
    reg04: base=0x05f800000 ( 1528MB), size= 8MB, count=1: uncachable
    reg05: base=0x05f600000 ( 1526MB), size= 2MB, count=1: uncachable
    reg06: base=0x05f500000 ( 1525MB), size= 1MB, count=1: uncachable
    reg07: base=0x000000000 ( 0MB), size= 128KB, count=1: uncachable
     
    jdeluca, May 8, 2009
    #6
  7. spankbot

    adjektiivi

    Joined:
    Mar 22, 2009
    Messages:
    43
    Likes Received:
    0
    Location:
    Finland
    are you installed
    Code:
    sudo apt-get install ubuntu-restricted-extras
     
    adjektiivi, May 8, 2009
    #7
  8. spankbot

    jdeluca

    Joined:
    Dec 31, 2008
    Messages:
    11
    Likes Received:
    0
    I have installed those packages yes.

    Same results more or or less on cat /proc/mtrr
     
    jdeluca, May 11, 2009
    #8
  9. spankbot

    jdeluca

    Joined:
    Dec 31, 2008
    Messages:
    11
    Likes Received:
    0
    im guessing I would add the above mentioned line into the menu.lst file located at /boot/grub...is that correct?

    If so where exactly do I add it? My hunch said somewhere around here:

    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet splash

    Thanks for any clarification!
     
    jdeluca, May 11, 2009
    #9
  10. spankbot

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    # defoptions=quiet splash enable_mtrr_cleanup mtrr_spare_reg_nr=1
     
    Sarvatt, May 14, 2009
    #10
  11. spankbot

    jdeluca

    Joined:
    Dec 31, 2008
    Messages:
    11
    Likes Received:
    0
    Thanks Sarvatt!
     
    jdeluca, May 14, 2009
    #11
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.