View previous topic :: View next topic |
Author |
Message |
cessman4life Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Marvel/movie_x-men_cyclops.gif)
Joined: 14 Apr 2005 Posts: 141
|
Posted: Thu Jan 05, 2012 4:59 pm Post subject: Disabling Wireless-N |
|
|
I was having problems connecting wirelessly with my laptop where there was either no connection or it was just ridiculously slow. By disabling wireless-N and leaving modes B/G enabled I have it working like a champ. The problem is I have to disable wireless-N everytime the machine reboots. Is there a startup script I can run to have it disabled on boot? I found out how to disable the driver from another post https://forums.gentoo.org/viewtopic-t-881681-start-0.html:
Code: |
rmmod iwlagn
modprobe iwlagn 11n_disable=1
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Logicien Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/42705619553e95f9decf93.jpg)
Joined: 16 Sep 2005 Posts: 1555 Location: Montréal
|
Posted: Thu Jan 05, 2012 5:54 pm Post subject: |
|
|
Hello,
you can, as example, create /etc/modprobe.d/iwlagn.conf and write in
Code: | options iwlagn 11n_disable=1 |
Then the option should be activated any time the module iwlagn is loaded. You can verify if the parameter is at 1 by
Code: | cat /sys/module/iwlagn/parameters/11n_disable |
Note, if the iwlagn is compiled hard in the kernel, you need to pass at boot time to the kernel the parameter
Code: | iwlagn.11n_disable=1 |
If it is compiled as a module and you use an initrd, it can be needed to integrate the /etc/modprobe.d/iwlagn.conf file in the initrd if the module is loaded before the real root filesystem is accessed by the kernel.
Personnaly, I put all my modules parameters in /etc/modprobe.d/modprobe.conf who do not exist by default after Gentoo installation. I check if every module option I change from default already exist and his value with the command
It is important that the same option with a different value do not overwrite my change. If it is, the files in /etc/modprobe.d/ need to be edited to remove the opposite option from the one I add. I have been force to use this option with one AGN wireless AP (Access Point). The bandwidth speed increased a lot after that. Most of the time for me, this option do not change anything else than disable 11n functionality. _________________ Paul |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cessman4life Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Marvel/movie_x-men_cyclops.gif)
Joined: 14 Apr 2005 Posts: 141
|
Posted: Thu Jan 12, 2012 6:26 am Post subject: |
|
|
I tried that and
Code: | cat /sys/module/iwlagn/parameters/11n_disable |
returns
instead of 1
When I reboot the wireless does not connect so I assume N is still enabled. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cach0rr0 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/14936637654ee19d6630f96.gif)
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Thu Jan 12, 2012 6:54 am Post subject: |
|
|
you might have to do the module parameter bit in /etc/conf.d/modules in order for it to persist on reboot
not sure if that (old?) path still works now that everything is baselayout-2/openrc _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|