Results 1 to 1 of 1

Thread: HOWTO: Fix network-related freezing errors

  1. #1
    Join Date
    Mar 2008
    Location
    Oregon, USA
    Beans
    165

    Post HOWTO: Fix network-related freezing errors with some RealTek wifi adapters

    Introduction
    I've noticed quite a few users who are having Ubuntu, or any other Linux distribution lock up whenever they shutdown, stand-by, disconnect from their wireless internet, or even on the login screen. This could be due to conflicting wireless adapter/card drivers. In other words, there's 2 drivers/modules trying to access the same hardware. So whenever something causes the networking system to be turned off (be it shutdown, stand-by or manually disabling it), the system freezes. This guide will aim to fix this issue by removing the extra module and blacklisting it.

    Disclaimer: As far as I know, the only conflicting wireless modules are the RT2860s for use on some Realtek/Ralink wireless cards. This might work for other models, but I cannot guarantee it. If you run into a problem along the way, I will try my best to solve it, but this is ultimately your responsibility. If something goes wrong, see the "Part Two: Recovery" section at the end of this guide to reverse the process.

    Part One - Removal
    Step 1 - Identify your wifi adapter module
    Open up a terminal window. By default the key combination is CTRL+ALT+T. Enter this command to list the modules/drivers in use for your hardware and highlight the ones with "rt" in the name:
    Code:
    lsmod | grep rt
    If it shows something along the lines of "rt2860", your good. We've found the culprit. If not, please either turn back and seek help elsewhere or continue carefully and at your own risk.

    Step 2 - Modprobe
    Modprobe, basically, is a simple tool included in the Linux kernel that is used to add or remove a module. We need to remove the extra wifi adapter module so our troubles will go away, so we'll go ahead and enter these commands to remove both wifi drivers, then add only one back in.
    To remove the first module:
    Code:
    sudo modprobe -rf rt2800pci
    And to remove the second one:
    Code:
    sudo modprobe -rf rt2800sta
    Then finally add just one back in:
    Code:
    sudo modprobe rt2860sta
    Step 3 - Backup Blacklist
    Before we blacklist the offending module, I recommend backing up the blacklist file at /etc/modprobe.d/blacklist.conf. To do this, we'll make a copy of the file and put it in the home folder.
    Code:
    sudo cp /etc/modprobe.d/blacklist.conf ~
    Make sure you include that last tilde (~).

    Step 4 - Blacklist
    Now it's time to get rid of this module once and for all. Enter the following command into the terminal:
    Code:
    blacklist rt2800pci | sudo tee -a /etc/modprobe.d/blacklist.conf
    Step 5 - Restart
    You can do this right? If not do this
    Code:
    sudo reboot
    And that's it! Hopefully the problem is gone. Thanks for reading this guide. If you have any problems after restarting, or you need to reverse the process, see below.

    Part Two - Recovery
    Did I screw your computer up? Damn. Here, just follow these instructions.

    Step 1 - Un-blacklist
    Just take that backup of the blacklist file in you home directory and replace it with the new one with this command:
    Code:
    sudo mv ~/blacklist.conf /etc/modprobe.d/
    Step 2 - Un-modprobe
    Use this command to add the module back in:
    Code:
    sudo modprobe rt2800pci
    I hope this helped. Any improvements, suggestions, or questions are welcome. Either reply to this thread or PM me.

    Credit for commands goes to Linuxexperte and her life saving post: https://bugs.launchpad.net/ubuntu/+s...0/comments/103
    Last edited by rectec794613; September 2nd, 2011 at 08:45 PM.
    System specs: CPU - AMD Phenom II X4 830 @ 3.2GHz | GPU - AMD Radeon HD 7850 | MB - MSI 760GM-P23 | RAM - 4GB DDR3 1366 MHz | OS - Arch, Windows 7

Tags for this Thread

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
  •