how to switch between rt2800pci and rt2860sta
You need to have both modules available in order to be able to switch. Check this in a terminal by typing:
lspci -k|grep -i network --after-context 3
03:00.0 Network controller: RaLink RT2860
Subsystem: Foxconn International, Inc. Device e002
Kernel driver in use: rt2800pci
Kernel modules: rt2800pci, rt2860sta
Here, rt2800pci and rt2860sta are both available, while rt2800pci is in use.
Make a file that allows you to easily switch between the two driver modules. For this open a terminal and then open nano by typing:
sudo nano /etc/modprobe.
Write this two lines in nano:
blacklist rt2800pci
#install rt2860sta /bin/false
Save this (ctrl+O; return; ctrl+X).
If you now shut down and boot your system will then use the rt2860sta.
If, on the other hand, you want to make sure that the rt2860sta does _not_ get used, comment out the other line
sudo nano /etc/modprobe.
#blacklist rt2800pci
install rt2860sta /bin/false
(Don't forget to save.)
If you now shut down and boot your system will then use the rt2800pci.
The "#" makes everything behind it a comment. It is ignored.
Why not just write blacklist rt2860sta?
A blacklisted module can still be pulled into use under certain circumstances. With the install rt2860sta /bin/false line we can prevent the rt2860sta from ever loading. Such stronger means have so far not turned out to be necessary with the other module.
What does this install line do?
It tells the system that whenever rt2860sta is to be loaded, the command /bin/false is to be executed instead.
What does /bin/false do?
false is a command on your system. So you can find out what it does by typing man false in a terminal.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Wolfgang Kufner
- Solved:
- Last query:
- Last reply: