Showing posts with label nvidia. Show all posts
Showing posts with label nvidia. Show all posts

Saturday, April 21, 2012

HOWTO: Enable nVidia Graphics on OSX86

So I've been tooling around with OSX on my Sager laptop again and spent a short bit of time running around in circles trying to get my nVidia graphics enabled again. Getting this done with a modern OSX86 release is fairly easy if you know how (it doesn't even require installing a kext).

Simply open a terminal and run:

sudo nano /Library/Preferences/SystemConfiguration/com.apple.Boot.plist

Type your password and press enter. In the file that is opened simply add these lines. Above the line that reads this.

Press ctrl+x to close the file and press "y" followed by enter to save the changes. Reboot your Hackintosh and you should be good to go. I'll be enjoying the Diablo 3 beta on mine.


As a side note sorry for the lack of posts this month. My school semester is coming to an end and life has been crazy of the late - expect some good postings come May (including hopefully a HOWTO for running Diablo 3 on Linux).

~Jeff Hoogland

Saturday, September 25, 2010

nVidia - There is No Optimus Support for Linux

It is about the time of year when I start looking at new laptops. I am looking for something small, but powerful. I have been an nVidia faithful since I made the switch to Linux almost four years ago, as such I used to not even look at a system if it didn't have an nVidia graphics chip in it. While browsing I noticed that many of the laptops I was looking at had a new feature stamped on them called:

nVidia Optimus


What is nVidia optimus? It is a genius new method of obtaining a great battery life on a laptop with a power house graphics card. Essentially all laptops that are "optimus enabled" have two graphics chips in them - one nVidia and one Intel based. If you are familiar with hardware then you will know that Intel chips, while having worse 3D performance than nVidia, offer much lower power consumption. Optimus allows the system to switch seamlessly between the Intel chip and the nVidia chip when you go from normal desktop usage to intense 3D -

Well it does on Windows anyways.

I've been working with Linux long enough to know that just because it works on Windows does not mean it is going to work on my operating system of choice as well. Unfortunitly this is currently the case with the nVidia optimus technology. To quote an nVidia representative from their user forums:

"We have no plans to support Optimus on Linux at this time."

Guess what? That statement was seven months ago now (February of 2010) and nVidia has been quite on the situation since then. This is really a shame, nVidia has had a dominant hand in the Linux market because of their superior drivers for sometime now. I am going to be hard-pressed to continue to support a company that refuses to support their hardware on my platform of choice. Intel graphics chips might soon be the only choice for mobile Linux users if nVidia does not add optimus support to their Linux drivers soon, as more and more laptops are utilizing this new technology.

Now as with most things the commercial giants fail to pickup in the world of Linux, there is an FOSS project dedicated to dissecting the hybrid graphics systems and get them working with the FOS Nouveau project. The only problem is that if you want a quality level of 3D performance these projects are still a ways off from providing this.

I must say I am slightly torn, do I snatch up a single GPU nVidia system now - before I can no longer find them, do I wait and see if nVidia releases optimus technology for Linux, or should I just boycott the nVidia cooperation all together since they see Linux as a second class operating system?

~Jeff Hoogland

Tuesday, September 21, 2010

Are Your Desktop Effects Slowing You Down?

Whenever I perform a 3D benchmark in Linux one of the first questions I get asked about the results is:

Where your desktop effects turned off?

For those who are not aware, desktop effects are the "flash" that is enabled by default in many popular Linux distros (namely Ubuntu and it's derivatives) such as the wobbly windows, desktop cube, and sleek sliding effects. Something that has always been questioned is whether or not desktop effects slow down your 3D performance in other applications and if so, how much do they slow it down by?

The Test:
I am going to use Unigine Benchmarks on Pinguy OS (for Gnome) and Chakra (for KDE) with and without desktop effects enabled. Both systems are clean, fully up to date installs with the nVidia 260 beta driver installed. Gnome will be using Compiz for it's desktop effects and KDE will be using Kwin.

The Hardware:
I'm using my same gaming rig that I've used for all my other benchmarks: Processor - Intel p9700 2.8ghz Dual Core, RAM - 4gigs of DDR3 1066, Video Card: nVidia 260m with 1gig DDR3 dedicated memory.

The Results:
Lets dive into some graphs shall we?





Graphs can be hard to read exact numbers on, so here is the numerical breakdown of the results:

As you can see, desktop effect do indeed decrease your overall 3D performance. Compiz is far more detrimental to 3D scores than KDE's Kwin is. Across all three benchmarks having Compiz enabled on the system caused a 10.7% performance decrease, while Kwin only caused a 1% decrease.

So it appears that if you are going to be gaming on Ubuntu/Gnome it is worth taking the time to toggle Compiz off before loading up that game.

~Jeff Hoogland
Please note while these benchmark scores presented are accurate to the best of my abilities, they only represent my personal hardware and software configurations. Your results on your own system(s) may vary (and if they do, please share them!).

Tuesday, May 25, 2010

Starcraft 2 and a bit of Wine - Linux Performance

EDIT: If you stumbled upon this page looking for a HOWTO for getting Starcraft 2 working under Wine check here.

I mentioned earlier this month that I was enjoying the Starcraft 2 beta on Ubuntu 10.04 thanks to Wine software. In my previous posting I had simply stated that SC2 was "playable" under Wine. I have a fairly powerful gaming laptop that sports an nVidia 260m GTX and a 1680x1050 resolution panel. SC2 defaulted itself under Wine to "ultra" settings on my system - after playing one game at these settings (well it was really more like playing a slide-show). I promptly lowered the details and textures to low (while leaving the resolution the same).

With these settings I average around 40 FPS at the main menu and in game. At the high end I see just over 50 FPS while playing and at the low end it bottoms out around 20 FPS in combat. (For those wondering how I obtained these numbers press control+alt+f to put an FPS counter in the upper left hand corner of the screen while in SC2). These numbers come from the latest SC2 patch as of today (05/25/10).

Now for a bit of an ironic story regarding SC2. Late last night I dual booted my system with Windows 7 Ultimate again due to the need for an embedded youtube video to work in an Office 2007 power point presentation (it failed to work under Crossover and youtube plays poorly in VMs, thus native install was my only option left). Back on topic - since I had Windows installed anyways I figured I would copy over my SC2 files (god bless Blizzard and their portable installs) and see how comparable the performance was on the native operating system.

Needless to say it performs better, in fact the FPS I see under low settings on Wine is about equal to the same FPS I was seeing under high settings on Windows. That is about where the things that worked better under Windows ended for SC2 on my computer.

I would like to prefix my following statement with the fact that my network drivers are installed, working, and I had used several other applications online just fine.

When I joined my first SC2 game on Windows I had just selected my workers to start mining when the lag started, around two minutes later I was dropped from the game and it counted as a loss in my ladder league. I figured it was just something funky with my internet line, even though I had not had any issues in SC2 under Wine in the last three weeks, as such I promptly selected "find match" to start another game. Two minutes later I had "lost" another ladder game due to "connection" issues.

Fan-flipping-tastic.

Just out of curiosity I decided to boot in Linux to see if the issue existed there as well (I'm hoping the irony of rebooting into Linux to play a game isn't lost on anyone). Needless to say the problem was not present there, after sweeping two ladder games without any connection issues on Ubuntu I can indeed confirm that it was a "connection" issue with the SC2 was only happening under Windows.

Yes: I know this game is still in beta.
Yes: I know odds are this issue is limited to my system.

Is it still annoying? Yep. It is ridiculously ironic? You bet.

Anyone else have fun story they would like to share about an application working better under Wine than it does on Windows itself?

~Jeff Hoogland

Tuesday, April 20, 2010

Installing nVidia Driver in Ubuntu 10.04

So I have been playing with 10.04 since it came into the beta one stage on my sager laptop and I must say I am enjoying it very much! One change I made however was changing over to the 32bit version of the Ubuntu and as such I installed the PAE kernel modules so I could use my four full gigs of RAM on the system still. I had everything configured and all was going well until the fateful kernel update...

Upon upgrading to 2.6.32-21 I rebooted to that wonderus "Ubuntu is running in low graphics mode" message I have seen oh so many times before. I load up the system in 800x600 resolution and and try to reinstall the nVidia drivers from the hardware drivers menu - only to see nothing was offered. Not a problem, I download the .run file from nVidia and attempt to install it. Installer fails with a kernel module error. After having a thread go nowhere on the Ubuntu boards for a couple of days I was able to work out the solution on my own. The issue seems to come from a combination of the new open source nVidia driver 10.04 is using by default and the kernel change I recently went through. The following is what worked for me:

First:
Go download the nVidia drivers for your system and install the packages build-essential and linux-headers-`uname -r`

Next:
Drop down to a terminal login and kill your X server

Then:
Install your nVidia driver, but when you run the install add the launch argument -k $(uname -r) Example: sudo sh NVIDIA*.run -k $(uname -r)

Now:
We need to blacklist the FOSS nouveau driver, run sudo nano /etc/modprobe.d/blacklist.conf and add blacklist nouveau to any point in the file.

Finally:
Reboot the system and you should be good to go! Enjoy.

~Jeff Hoogland