Sunday, August 09, 2009

realtek r8168 driver ubuntu 9.04

Painfully slow using the r8169 driver. I only got 3.5MB/sec then slowed to 500KB/sec. Vista on the dual boot on the same machine, got 40MB/sec transfer speeds for 1-2GB files.

Go here:
http://www.jamesonwilliams.com/hardy-r8168

and download his handy dandy script. Or you can compile it yourself. But for ubuntu 9.04, make the mods to his script:

make sure you download ver 8.012 or 8.009. At the time writing this, 8.013 does not work for Ubuntu 9.04, at least for me. I got ver 8.012 or 8.011.

ok, so first go and download r8168_scripts.tar.bz2 from the url above.
2. download r8168-8.012.00.tar.bz2 or older.
3. put the newer r8168-8.0xx.00.tar.bz2 into the extracted r8168_scripts folder.
3. modifiy the line 76, to show the newer tar file, like so:
WAS: VERSION=r8168-8.009.00
IS: VERSION=r8168-8.012.00

4. modify lines 71 thru 73 for correct blacklisting:

echo "Blacklisting r8169 in /etc/modprobe.d/blacklist.conf..." if [[ $(grep -c "blacklist r8169" /etc/modprobe.d/blacklist.conf) -lt 1 ]]; then echo -e "\nblacklist r8169\n" >> /etc/modprobe.d/blacklist.conf

5. install:
# sudo bash
# cd r8168_scripts
# ./switchmods

6. reboot.

Now I'm getting approx 15MB/sec, better than 500k/sec!



No comments: