Page 1 of 1

[SOLVED] Change Default Loaded Drivers

Posted: Mon Feb 25, 2013 2:04 pm
by gurran
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.

Re: Change Default Loaded Drivers

Posted: Mon Feb 25, 2013 2:19 pm
by flyboy1565
Just to get some info to see if I could help, please post what system your using.

Sent from my ADR6350 using Tapatalk 2

Re: Change Default Loaded Drivers

Posted: Mon Feb 25, 2013 3:39 pm
by gurran
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.

Re: Change Default Loaded Drivers

Posted: Mon Feb 25, 2013 4:59 pm
by AlbertP
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.

Re: Change Default Loaded Drivers

Posted: Mon Feb 25, 2013 5:46 pm
by gurran
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.

Re: Change Default Loaded Drivers

Posted: Tue Feb 26, 2013 8:57 am
by AlbertP
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?

Re: Change Default Loaded Drivers

Posted: Wed Feb 27, 2013 1:46 pm
by gurran
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.

Re: Change Default Loaded Drivers

Posted: Wed Feb 27, 2013 1:49 pm
by AlbertP
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.

Re: Change Default Loaded Drivers

Posted: Fri Mar 01, 2013 1:34 am
by gurran
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...

Re: Change Default Loaded Drivers

Posted: Fri Mar 01, 2013 10:01 am
by AlbertP
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.

Re: Change Default Loaded Drivers

Posted: Fri Mar 01, 2013 8:01 pm
by gurran
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.

Re: [SOLVED] Change Default Loaded Drivers

Posted: Sat Mar 02, 2013 11:02 am
by AlbertP
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.

Re: [SOLVED] Change Default Loaded Drivers

Posted: Sat Mar 02, 2013 8:19 pm
by gurran
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.