Saturday, August 19, 2006

Getting Sound blaster live to work with skype in Linux

Ok, from my last blog, I have gotten WarCraft III to run in linux & everything was fine. However, during some intensive game play, with some prolonged sound of the battle horn or repeated sounds from a spinning crusher machines, these sound will hang my 8 years old Yamaha YMF724 sound card.

As from my other ealier posts, RealPlayer cannot work with my nVidia HD audio chip using the ALSA driver. And that still does not work with the latest 10.0.8 version of RealPlayer released in Aug 2006 still. Quite a major disappointment I must say.

So, I have gotten a second hand SB Live 5.1 sound card, thinking that it should be old enough for RealPlayer to recognised it & play correctly without hanging my desktop again. So it did. But I was met with another more silly problem that the SB Live 5.1 simply won't record my voice in Skype. And that works flawlessly with both my onboard nVidia sound or the Yamaha YMF724 PCI card.

After some major search on the net, the solution was simply adding 'AC97' in the "Volume Control" tap & make sure it's not muted. Now, everthing goes. No more hanging of WC3 during intensive game play or with prolonged sound of battle horn or repeated sounds. And skype works also.

But to think even the most established sound card manufacturers hardware has such nifty gritty glitches with linux. I am really disappointed.

Saturday, August 12, 2006

Playing WarCraft III in Linux(wine)

Ok, I kinda missed all the good times I had with Warcraft III's tower defence game. After I wiped out my Windows installation. I can't really play any PC game per say.

Today, my hands gotten itchy & so I installed wine & trying to play WC3 in wine.

The documentation can be found here:

http://wiki.archlinux.org/index.php/Warcraft3

Installing wine by

yum install wine

is pretty straight forward.

Installing WC3 under wine has gotten a little tricky.

First of all, the command line as stated in the link above no longer work in FC5. The reason is because, FC5 uses a new mounting method. For all CD mounted, in will display the mount as the lable of the disc itself. In this case, Warcraf III disc is mounted as 'Warcraft III' & you can imagine, doing a 'wine /media/Warcraft III/install.exe' will result in error cos, command line does not recognise a space between 'Warcraft' & 'III'. After searching on the web for a long time with no avail, I launched 'wine file' & sure enough, I can install warcraft3 in 'wine file' just by double-clicking on the file browser.

Next up, patching the file according to the instructions in the above link can be done in 'wine file' again, much the same way. The problem follows next is with doing the 'no-cd' patch. Now, as mentioned in the link above, this is not piracy. This is necessary simply because detecting the original CD simply won't work in wine. So, I downloaded the 'no-cd' patch & I was met with another problem. Where did wine put all the files? After some long & tiring search. I finally figured out that, wine will be installed under

/home/username/.wine

directory.

And all files, should be installed under

/home/username/.wine/drive_c

which will appears to be under C: drive in wine.

All drives appeared in wine will be listed under

/home/username/.wine/dosdevices

So, finally, I located the Warcraft III programs are installed in

/home/username/.wine/drive_c/Program Files/Warcraft III

and that is where the 'no-cd' patched war3.exe files should be unzipped to.

Ok, that should have worked for most installation. But the complication of the nvidia graphic driver need to be highlighted here. First & foremost, the closed-source nVidia linux driver must be used to get the game working.

First problem is that, the game won't start with my main pc with a nVidia 6150 onboard graphic card. The error returns simply says a violation has occured as the game driver accessed an area of the main memory which is not 'writeable'. nVidia 6150 onboard graphic card shared the main memory as graphic memory. So, this should explain why the game would not start when it sees a violation. I am not sure, if this problem should be fixed with a newer version of wine or with a newer nVidia driver. Hopefully, it will be fixed eventually.

So, I tried the same installation on another linux pc with a 6600LE card installed. Sure enough, WC3 fires up flawlessly on first attempt & it even works flawless playing online connecting to battlenet's server. As that second pc is dual-booting with windows & it has a nVidia 6150 3d card onboard anyway, I moved the 6600LE card to my main pc, which has only Fedora Core 5.

So, I tried the same thing again on my main pc, expecting WC3 to work with the addition of the 6600LE card. Unfortunately, it somehow retained the old settings telling wine that it's accessing the main memory again & crashed, despite the nVidia driver already reflected the 6600LE card is in operation. I tried uninstalling & reinstalling nVidia driver & uninstalling & reinstalling wine. All don't work. Miraculously, I edited my /etc/X11/xorg.conf

and changed the lines from

Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "nVidia Corporation C51 PCI Express Bridge" <-- This is the old lable for the nVidia 6150 card

to

Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "nVidia Corporation NV43 [GeForce 6600 PCIe]" <-- Copied from the seocnd pc.

Then, I reinstalled wine, warcraft 3 & all.

Eventually, it all pays off. And here you see WC3 is installed successfully.



So, I played couple rounds of Tower Defence online & finally completed a 42 levels tower defence in 3rd position. All remaining 5 players simply failed to complete the game.

So finally, I am back with some gaming fun in Linux

It's good game after all.

Sunday, August 06, 2006

nVidia driver bug for 6150 onboard VGA card

Almost 9 months after the release of nVidia 6150 chipset, it's linux driver is still far from bug free. From time to time, I will encounter a stange issue at X, where the mouse pointer becomes invisible. The mouse is obviously still workin & it's movement can still be seen when it moves over menu or items on the desktop. It's just invisble.

A search on the net found this bug 182517 filed at redhat. The problem traced back to the nVidia driver. The proble is still unsolved even with nVidia graphic driver release 1.0-8762.

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=182517

The problem can be patched by adding

Option "HWCursor" "off"

to the VGA driver section at /etc/X11/xorg.conf

Hopefully, it will be resolved in the next nVidia driver release.

My xorg.conf looks like this now:

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "nVidia Corporation C51 PCI Express Bridge"
Option "HWCursor" "off"