[SOLVED] Change Default Loaded Drivers

Questions about WIFI networks and devices
Forum rules
Before you post please read this

[SOLVED] Change Default Loaded Drivers

Postby gurran on Mon Feb 25, 2013 2:04 pm

I intstalled compat wireless drivers and now it tries to load ssb and mac80211 instead of b43legacy. I searched on how to run a script as root regardless of user on boot, but could not find anything. Any help is appriciated.
Last edited by gurran on Fri Mar 01, 2013 9:07 pm, edited 1 time in total.
Desktop:
  • 4GB Ram
  • AMD Phenom 9750 Quad-Core Processor
  • 500GB SATA HDD with Windows 7 64-bit
  • 160GB SATA HDD with Linux Mint Petra KDE Edition
  • Rosewill 3.5" Card Reader with 3 Powered USB Ports
gurran
Level 1
Level 1
 
Posts: 19
Joined: Sat Feb 02, 2013 9:30 pm

Linux Mint is funded by ads and donations.
 

Re: Change Default Loaded Drivers

Postby flyboy1565 on Mon Feb 25, 2013 2:19 pm

Just to get some info to see if I could help, please post what system your using.

Sent from my ADR6350 using Tapatalk 2
flyboy1565
Level 3
Level 3
 
Posts: 101
Joined: Sat Feb 16, 2013 2:07 am

Re: Change Default Loaded Drivers

Postby gurran on Mon Feb 25, 2013 3:39 pm

The information is in my sig. I am on my laptop. If I can't change the default loaded drivers I have a script that I can run that unloads all wifi drivers and loads the b43legacy drivers, so if you can tell me how to run it as root on startup no matter what user I log in as I could do that.
Desktop:
  • 4GB Ram
  • AMD Phenom 9750 Quad-Core Processor
  • 500GB SATA HDD with Windows 7 64-bit
  • 160GB SATA HDD with Linux Mint Petra KDE Edition
  • Rosewill 3.5" Card Reader with 3 Powered USB Ports
gurran
Level 1
Level 1
 
Posts: 19
Joined: Sat Feb 02, 2013 9:30 pm

Re: Change Default Loaded Drivers

Postby AlbertP on Mon Feb 25, 2013 4:59 pm

ssb and mac80211 are not a problem, b43legacy requires them.

Probably you just need to install the b43legacy firmware, please connect to wired network and install firmware-b43legacy-installer from the Software Manager then.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6504
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: Change Default Loaded Drivers

Postby gurran on Mon Feb 25, 2013 5:46 pm

I have the firmware installed, after I installed compat wireless drivers, it stopped loading b43legacy on login. I have to use "sudo modprobe b43legacy" type password then it works fine. Although I unload ssb and mac80211 before I load b43legacy and it works. How do I get it to load the b43legacy drivers at login without me having to type my password after I have already logged in?

NOTE: The script I use to unload all wireless drivers and load the b43legacy drivers is the script that comes in the compat wireless drivers script folder that is ran when you use "make wlunload" that I modified to load the b43legacy drivers at the end.
Desktop:
  • 4GB Ram
  • AMD Phenom 9750 Quad-Core Processor
  • 500GB SATA HDD with Windows 7 64-bit
  • 160GB SATA HDD with Linux Mint Petra KDE Edition
  • Rosewill 3.5" Card Reader with 3 Powered USB Ports
gurran
Level 1
Level 1
 
Posts: 19
Joined: Sat Feb 02, 2013 9:30 pm

Re: Change Default Loaded Drivers

Postby AlbertP on Tue Feb 26, 2013 8:57 am

Does it also work correctly if you modprobe b43legacy without unloading anything else first? In that case you can add b43legacy to the /etc/modules file to have it automatically loaded on boot.
Could you also run lspci -k and post the lines about your wifi card?
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6504
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: Change Default Loaded Drivers

Postby gurran on Wed Feb 27, 2013 1:46 pm

First, yes it does. Second, here is the output:
Code: Select all
00:00.0 Host bridge: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
        Subsystem: Gateway 2000 Device 0500
        Kernel driver in use: agpgart-intel
00:00.1 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
        Subsystem: Gateway 2000 Device 0500
00:00.3 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02)
        Subsystem: Gateway 2000 Device 0500
00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
        Subsystem: Gateway 2000 Device 0500
        Kernel driver in use: i915
        Kernel modules: intelfb, i915
00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
        Subsystem: Gateway 2000 Device 0500
        Kernel modules: i915
00:1d.0 USB controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03)
        Subsystem: Gateway 2000 Device 0500
        Kernel driver in use: uhci_hcd
00:1d.1 USB controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03)
        Subsystem: Gateway 2000 Device 0500
        Kernel driver in use: uhci_hcd
00:1d.2 USB controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03)
        Subsystem: Gateway 2000 Device 0500
        Kernel driver in use: uhci_hcd
00:1d.7 USB controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03)
        Subsystem: Gateway 2000 Device 0500
        Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83)
        Kernel modules: shpchp
00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 03)
        Kernel modules: iTCO_wdt, intel-rng
00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 03)
        Subsystem: Gateway 2000 Device 0500
        Kernel driver in use: ata_piix
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 03)
        Subsystem: Gateway 2000 Device 0500
        Kernel modules: i2c-i801
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)
        Subsystem: Gateway 2000 Device 0500
        Kernel driver in use: snd_intel8x0
        Kernel modules: snd-intel8x0
00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03)
        Subsystem: Askey Computer Corp. Device 1050
        Kernel modules: snd-intel8x0m
02:04.0 Network controller: Broadcom Corporation BCM4306 802.11a/b/g (rev 02)
        Subsystem: Broadcom Corporation Device 0421
        Kernel driver in use: b43-pci-bridge
        Kernel modules: ssb
02:05.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac)
        Subsystem: Gateway 2000 Device 0500
        Kernel driver in use: yenta_cardbus
        Kernel modules: yenta_socket
02:05.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac)
        Subsystem: Gateway 2000 Device 0500
        Kernel driver in use: yenta_cardbus
        Kernel modules: yenta_socket
02:05.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 04)
        Subsystem: Gateway 2000 Device 0500
        Kernel driver in use: firewire_ohci
        Kernel modules: firewire-ohci
02:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VE (MOB) Ethernet Controller (rev 83)
        Subsystem: Gateway 2000 Device 0500
        Kernel driver in use: e100
        Kernel modules: e100

Third, I already tried putting it in /etc/modules and it still does not load it.
Desktop:
  • 4GB Ram
  • AMD Phenom 9750 Quad-Core Processor
  • 500GB SATA HDD with Windows 7 64-bit
  • 160GB SATA HDD with Linux Mint Petra KDE Edition
  • Rosewill 3.5" Card Reader with 3 Powered USB Ports
gurran
Level 1
Level 1
 
Posts: 19
Joined: Sat Feb 02, 2013 9:30 pm

Re: Change Default Loaded Drivers

Postby AlbertP on Wed Feb 27, 2013 1:49 pm

In that case you can put the commands you are using into the /etc/rc.local file before the "exit 0" line. Please remove sudo, su and things like that; /etc/rc.local is run as root anyway.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6504
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: Change Default Loaded Drivers

Postby gurran on Fri Mar 01, 2013 1:34 am

It did not work, I had to run modprobe b43legacy.

EDIT:
For some reason it gave an error... After the reboot it said:
Code: Select all
FATAL: Error inserting b43legacy (/lib/modules/3.2.0-37-generic/updates/drivers/net/wireless/b43legacy/b43legacy.ko): Invalid argument


Which I do not understand because before reboot it worked fine...
Desktop:
  • 4GB Ram
  • AMD Phenom 9750 Quad-Core Processor
  • 500GB SATA HDD with Windows 7 64-bit
  • 160GB SATA HDD with Linux Mint Petra KDE Edition
  • Rosewill 3.5" Card Reader with 3 Powered USB Ports
gurran
Level 1
Level 1
 
Posts: 19
Joined: Sat Feb 02, 2013 9:30 pm

Re: Change Default Loaded Drivers

Postby AlbertP on Fri Mar 01, 2013 10:01 am

Did you install any other wifi driver in the past? The Broadcom STA driver (which does not support the legacy chips) perhaps? If so, please remove the bcmwl-kernel-source package using Software or Package Manager.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6504
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: Change Default Loaded Drivers

Postby gurran on Fri Mar 01, 2013 8:01 pm

No, I have not installed anything else. I rebuilt and installed compat wireless drivers and modprobe b43legacy worked. I will be rebooting in a little bit to see if it loads on boot.

UPDATE:
Ok, I rebooted and got the invalid argument thing again so I got curious and used my unload wifi and load b43legacy script and no error! So I thought it worked if I didn't unload mac80211 and ssb, but I was wrong. So I will add that to rc.local, reboot, and report back here.

UPDATE:
Adding
Code: Select all
modprobe -r ssb
modprobe -r mac80211

before
Code: Select all
modprobe b43legacy
exit 0

worked.


Thank you for all of your help. I greatly appreciate it.
Desktop:
  • 4GB Ram
  • AMD Phenom 9750 Quad-Core Processor
  • 500GB SATA HDD with Windows 7 64-bit
  • 160GB SATA HDD with Linux Mint Petra KDE Edition
  • Rosewill 3.5" Card Reader with 3 Powered USB Ports
gurran
Level 1
Level 1
 
Posts: 19
Joined: Sat Feb 02, 2013 9:30 pm

Re: [SOLVED] Change Default Loaded Drivers

Postby AlbertP on Sat Mar 02, 2013 11:02 am

Probably you need to run this to fix it:
Code: Select all
sudo update-initramfs -u

Then you probably don't get the invalid argument anymore after a reboot.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6504
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: [SOLVED] Change Default Loaded Drivers

Postby gurran on Sat Mar 02, 2013 8:19 pm

AlbertP wrote:Probably you need to run this to fix it:
Code: Select all
sudo update-initramfs -u

Then you probably don't get the invalid argument anymore after a reboot.


As long as I unload ssb and mac80211 I don't get the invalid argument.
Desktop:
  • 4GB Ram
  • AMD Phenom 9750 Quad-Core Processor
  • 500GB SATA HDD with Windows 7 64-bit
  • 160GB SATA HDD with Linux Mint Petra KDE Edition
  • Rosewill 3.5" Card Reader with 3 Powered USB Ports
gurran
Level 1
Level 1
 
Posts: 19
Joined: Sat Feb 02, 2013 9:30 pm

Linux Mint is funded by ads and donations.
 

Return to Wireless

Who is online

Users browsing this forum: No registered users and 14 guests