Wednesday, August 24, 2011

Fixing the Full Screen Flash Stutter (720p and 1080p)

Assuming your computer can handle the fact that Adobe Flash can be processor intense (especially watching the 720p and 1080p videos on Youtube or Hulu), you really don't want the videos stuttering when you watch them in full screen when you know your computer can handle it. This has been bothering me for a while so I decided to track down a working fix to share with everyone. This fix isn't hard to implement but I'll provide some screenshots for clarity:

Open terminal and type:

$ sudo gedit /etc/init.d/ondemand

When gedit opens, paste the following block of information at the very bottom:

for CPU_THRESHOLD in /sys/devices/system/cpu/cpu*/cpufreq/ondemand/up_threshold
do
[ -f $CPU_THRESHOLD ] || continue
echo -n 30 > $CPU_THRESHOLD
done

See the image below for the exact placement of the code, notice that it is placed below the "esac" that is already present.


adobe flash fix, hq movies, 720p, 1080p


If you're having problems exiting flash, you can try changing the niceness value to something lower. The original value is echo -n 40, I was able to keep HQ video playback and better system stability at echo -n 30 so changed that to the default value above.

After you're done editing that file, save it and we'll finish up the rest of the steps in terminal:

$ sudo mkdir /etc/adobe
$ echo “OverrideGPUValidation=true” > ~/mms.cfg
$ sudo mv ~/mms.cfg /etc/adobe/

Now reboot and you *should* be able to watch full screen videos now lag and stutter free. Enjoy!

Friday, August 19, 2011

Updating to Kernel 3.0.0-x in Linux Mint 11

With Kernel 3.0 comes quite a few bug fixes over 2.6 and it's going to take a while before Linux Mint allows you to upgrade to it.  So naturally you might be interested in upgrading to it.  Luckily it's not too terribly difficult to do.

To upgrade to kernel 3.0 you're going to either want to disable 3D acceleration -OR- download and install the latest version of your video card drivers from the appropriate website (NVIDIA and AMD/ATI for example) BEFORE you start.

Once you're ready to get started open up terminal and type the following commands:

$ sudo add-apt-repository ppa:xorg-edgers/ppa
$ sudo apt-get update
$ sudo apt-get install linux-headers-3.0 linux-headers-3.0-generic linux-image-3.0-generic --fix-missing

Now you'll see an error that gets spit out depending on which version of the kernel is available and you'll have to go back and fix the final part of the command.  The error will look something like this:

Note, selecting 'linux-headers-3.0.0-8-generic' instead of 'linux-headers-3.0'
Note, selecting 'linux-image-3.0.0-8-generic' instead of 'linux-image-3.0'
Note, selecting 'linux-image-3.0.0-8-generic' instead of 'linux-image-3.0'
Package linux-headers is a virtual package provided by:
  linux-headers-3.0.0-8 3.0.0-8.10
  linux-headers-3.0.0-8-generic 3.0.0-8.10
  linux-headers-2.6.38-10-virtual 2.6.38-10.46
  linux-headers-2.6.38-10-server 2.6.38-10.46
  linux-headers-2.6.38-10-generic 2.6.38-10.46
  linux-headers-2.6.38-10 2.6.38-10.46
  linux-headers-2.6.38-8-virtual 2.6.38-8.42
  linux-headers-2.6.38-8-server 2.6.38-8.42
  linux-headers-2.6.38-8-generic 2.6.38-8.42
  linux-headers-2.6.38-8 2.6.38-8.42
You should explicitly select one to install.

E: Package 'linux-headers' has no installation candidate
E: Package 'linux-headers' has no installation candidate
E: Unable to locate package 3.0-generic
E: Couldn't find any package by regex '3.0-generic'

In all of those it states that the latest version of the kernel is 3.0.0-8.  So now we want to go back to the final command and edit that part for each instance where the 3.0 occurred like so:

$ sudo apt-get install linux-headers-3.0.0-8 linux-headers-3.0.0-8-generic linux-image-3.0.0-8-generic --fix-missing


Now reboot and you'll see that kernel available in your GRUB or LILO menu.  If your system fails to boot with this kernel, select "Previous Kernel" and then open terminal up again and type the following command:


$ sudo nautilus



Navigate to the folder /boot and delete all the files that have the new kernel's numbers in it.  It should be:

abi-3.0.0-x-generic
config-3.0.0-x-generic
initrd.img-3.0.0-x-generic
System.map-3.0.0-x-generic
vmcoreinfo-3.0.0-x-generic
vmlinuz-3.0.0-x-generic

Once they're deleted, type in terminal:

$ sudo update-grub

Your grub should now have the 3.0.0-x instance removed from the list.