Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: r8168 on Ubuntu 12.04

  1. #1
    Join Date
    Aug 2008
    Beans
    9

    r8168 on Ubuntu 12.04

    The old switchmod does not work in 12.04.

    Here is updated version: https://gist.github.com/2390823

    Or just tar on my dropbox: http://dl.dropbox.com/u/1901109/r816...od12.04.tar.gz including drivers r8168-8.028 that works fine for me.

    Steps:
    1. Download http://dl.dropbox.com/u/1901109/r816...od12.04.tar.gz
    2. tar -xzf r8168_switchmod12.04.tar.gz
    3. cd r8168_switchmod12.04
    4. sudo ./switchmods12.04

    List of available drivers: http://code.google.com/p/r8168/downloads/list
    Last edited by matera.ttp; April 15th, 2012 at 09:39 AM.

  2. #2
    Join Date
    Jul 2011
    Beans
    9

    Re: r8168 on Ubuntu 12.04

    nice one ! A big thank's to you for this amazing script.

    I would like to add that the driver, even if it's the incorrect one by default (r8169 instead of r8168 ), is functioning better than when I was on 11.10 (I'm not loosing the connection randomly with this one)

    I'm wondering if its the case for others people?

    Edit: After using the script with r8168-8.029, all is working great
    Last edited by underkz; May 1st, 2012 at 01:44 AM. Reason: add results

  3. #3
    Join Date
    Jul 2006
    Location
    Melbourne, Australia
    Beans
    121
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: r8168 on Ubuntu 12.04

    Thanks for this, seems to work perfectly

  4. #4
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,975
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: r8168 on Ubuntu 12.04

    Hi,

    you can also install this driver via dkms:

    Code:
    sudo apt-get install --reinstall linux-headers-$(uname -r) linux-headers-generic build-essential dkms
    wget http://media.cdn.ubuntu-de.org/forum/attachments/44/18/3005217-r8168-dkms-8.029.00.tar.gz
    sudo tar xvf 3005217-r8168-dkms-8.029.00.tar.gz -C /usr/src
    sudo dkms add -m r8168-dkms -v 8.029.00
    sudo dkms build -m r8168-dkms -v 8.029.00
    sudo dkms install -m r8168-dkms -v 8.029.00 
    echo "blacklist r8169" | sudo tee -a /etc/modprobe.d/blacklist.conf
    sudo modprobe -rfv r8169
    sudo modprobe -v r8168
    From here:
    http://forum.ubuntuusers.de/topic/la.../#post-3005217

    You should install the metapackage linux-headers-generic or linux-headers-generic-pae (or whatever kernel-architecture is in use) for that. Otherwise the driver r8169 occurs again with the new kernel image.

  5. #5
    Join Date
    Jan 2010
    Beans
    2

    Re: r8168 on Ubuntu 12.04

    Excellent!

    Much appreciated, it's always a hassle to upgrade and have no internet connection.

    Thanks once again.

    Mark.

  6. #6
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,975
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: r8168 on Ubuntu 12.04

    New driver version 31 available. I updated the link

  7. #7
    Join Date
    Aug 2010
    Beans
    13

    Re: r8168 on Ubuntu 12.04

    If you wanna go the dkms route (setup once ... automatically installed on every kernel upgrade) with the latest release (8.032.00 as of right now) follow the dkms steps (subsection with the title "Update – 2/22/2011"):

    http://djlab.com/2010/10/fixing-rtl8...debian-ubuntu/

    but with two changes in dkms.conf:

    1 - change the r8168 version strings (to your r8168 version)

    2 - change third line from:

    Code:
    MAKE[0]="make"
    to

    Code:
    MAKE[0]="'make'"
    I had to go thru quite a bit of trouble without this 2nd change cz dkms build would keep failing with the error message "No rule to make target `clean'" whatever ...

    I have done this procedure myself but haven't tested it yet (need to wait for next kernel upgrade)
    Last edited by Yudley; August 21st, 2012 at 03:08 AM.

  8. #8
    Join Date
    Jan 2013
    Beans
    1

    Re: r8168 on Ubuntu 12.04

    thank you sooooo much for your script it worked wonders after 6 hours trying to get decent internet on my brand new PC.

  9. #9
    Join Date
    Feb 2013
    Beans
    4

    Re: r8168 on Ubuntu 12.04

    I installed this driver with dkms,how can I uninstall this driver safely?

  10. #10
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,975
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: r8168 on Ubuntu 12.04

    Code:
    sudo modprobe -rfv r8168
    sudo dkms remove -m r8168-dkms -v 8.035.00 --all 
    sudo depmod -a
    sudo update-initramfs -u
    will uninstall it. Adjust the version number.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •