First of all, thank you for the sharing.
2017-12-12 5:36 GMT+08:00 Daniel Wörner <
danwpr...@gmail.com>:
>
> That makes sense, thanks Michael! In fact there were already two files in
> init.d: 00banner and 90userinit. So the file started with 00 runs first and
> the 90 last, am I right?
> And does the function I made in the 50wifi script make a difference or I
> could just have written the commands right into the file? i.e:
>
> /system/etc/init.d/50wifi
I guess /system/etc/init.d/* is a CM(LineageOS) only extension.
Android(-x86) doesn't have the dir and won't exec such scripts.
It's better to modify the init.sh for your model
and come out an official patch for android-x86.
You can see examples in function init_hal_bluetooth().
> rmmod rtl8723be
> rmmod wl
> modprobe rtl8723be ant_sel=1 fwlps=0
>
> And thinking more about it, as init.sh has some interesting functions for
> detecting specific hardware and tweaking the system for whatever it finds,
> it would be even better to make one function there so everyone who installs
> android-x86 in a computer with rtl8723be or rtl8723ae has it working out of
> the box, but I still don't have the knowledge to make such script (I just
> know how to tell the system to do it, whether it has the rtl card or not).
> As far as I know and tested, rtl8723be doesn't work out of the box on
> android-x86 6 and 7.1 rc1, nor wi-fi neither bluetooth. And I checked
> init.sh and there are no indications to look for any wireless interface.
> Going back to the script, I would gladly help making it with proper
> directions. What I know is that in PhoenixOS they made a function for
> detecting a couple wireless interfaces (not mine, certainly). That added to
> watching how init.sh is written, I can add the function to the file, but
> can't make it so it detects whether the system has the rtl8723be or not. Oh,
> I forgot: In the link I provided previously, which leads to Arch Linux's
> wiki regarding wireless configuration, it states that both rtl8723be and
> rtl8723ae may have the same problems, so if a script is made for this, it
> would not cover just one model.
FYI, my notebook, ASUS X556UB also uses rtl8723be.
It works well in both Linux (Fedora) and Android-x86.
Both wifi and bluetooth work.
Therefore I don't think a workaround for all rtl8723be devices
is appropriate. It's better to limit the workaround to some
models which have the issues.
> I have another question: Is it possible to manually change modules? I mean,
> replace rtl8723 files or the entire rtl_something folder with another
> version of the same modules or I'll screw my system? I would replace them
> for the modules provided in this page:
>
>
https://github.com/lwfinger/rtlwifi_new/tree/master/rtl8723be
Yes, it's possible, if you know how to build
an external module with our kernel.
(not too difficult, you could google it)
> This is what I still can't try on Arch Linux but will as soon as I can
> access github's page (for some strange reason, github and some other sites
> are unaccesible from my home). This might fix wi-fi and bluetooth as well,
> so if it works on arch linux maybe it works on android too...
--
Chih-Wei
Android-x86 project
http://www.android-x86.org