In my notebook wireless card RTL8723BE don’t works correctly. This wireless card has three antenna connections and if wrong antenna is chosen the sensitivity is very low and wireless works only if signal is very strong.
I found a workaround, using these command as root in konsole I choose right antenna connection:
Let me check if I understand. In my system I don’t have /etc/rc.d/rc.local then I’ve to make a file with my two commands inside, I call it “rc.local” and i save it in /etc/rc.d/. Is it correct?
rc.local don’t works.
I’ve a script that works if executed in konsole as root.
I saved as rc.local and checked permission: it’s still executable and give read and write permission to all but after boot settings are wrong. The same script executed in konsole set correctly antenna.
I (double) checked and removing all unnecessary now it works.
Probably the main difference was “sudo modprobe -r rtl8723be” in script executed in konsole and “modprobe -r rtl8723be” in rc.local.
After reading some documentation I think I found something useful. Unloading and re-loading the module with the option works but is not as fast as load the module with the right option just once, so putting a configuration file into /etc/modprobe.d/ could be a better solution. The name of the file is at your wish (but must end with .conf) and content is just the following line:
options rtl8723be antsel=1
In this case every time you load the module (and not just at start) the option will be apply. For mode info just type man modprobe.d.