Monday, 15 May 2017

Interim RTL8723BS wifi packages for mainline kernel v4.11 and v4.12-rc1



While the RTL8723BS wifi module is now in the first v4.12 release candidate to get wifi working it is necessary to build it as an external module and load the firmware. As an interim I've build two packages 'rtl8723bs_4.11.0-041100_amd64.deb' and 'rtl8723bs_4.12.0-041200rc1_amd64.deb' from the v4.12 source (applying the necessary patches) which may be useful to anyone as an alternative to building for themselves until the v4.12 kernel matures. They can be downloaded and applied to the appropriate kernel using the 'dpkg -i' command.

39 comments:

  1. Thanks man and great work you have done !!!!

    ReplyDelete
  2. I have Ubuntu Mate on my Chuwi Hi12 and have downloaded and installed the latest 4.12 kernel from your archive. I installed this wifi driver as well but Ubuntu still fails to recognize my wifi adapter in the Chuwi Hi 12. Any tips?

    ReplyDelete
    Replies
    1. Do you need to change SDIO from ACPI to PCI in the BIOS on a Chuwi Hi12 to get wifi working?

      Delete
    2. I have done that but still no luck

      Delete
    3. Does 'dmesg' show anything and what happens if you manually load the module?

      Delete
    4. So, I have noticed this before as well. I get a modprobe error: FATAL: Module r8723bs not found in directory /lib/modules/4.12.0-041200rc1-lowlatency

      I am new to linux and i have no idea how to fix this.

      Delete
    5. Also, 'dmesg' shows a long list of things, not sure what i am looking for. I have no idea what you mean by manually loading the module. Sorry for being such an amateur, and thank you for your help, I jus wish i could get the wifi working..haha

      Delete
    6. Ah, don't use the 'lowlatency' kernel but use the 'generic' one otherwise the package dependency is not met.

      Delete
    7. Thanks so much! Installed the generic and booted to the grub menu to select it. Wifi and bluetooth started working. Using the wifi on my chuwi hi 12 to post this comment while jamming out to some tunes using my bluetooth earbuds! Thanks for you help, keep up the great work!

      Delete
  3. Would also like to know whether the Chuwi Hi12 goes?

    ReplyDelete
    Replies
    1. Try changing SDIO from ACPI to PCI in the BIOS.

      Delete
    2. Have done that. Still no luck :(

      Delete
  4. Hello Ian, i have 4.10.0.20 generic, Which package do I use?

    ReplyDelete
    Replies
    1. Neither of the packages will work unless you upgrade your kernel to v4.11 or v4.12-rc1.

      Delete
  5. I solved my issue, installed from a ubuntu minimal version 17.04, downloaded the kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.12-rc1/

    Linux-headers-4.12.0-041200rc1_4.12.0-041200rc1.201705131731_all.deb

    Linux-headers-4.12.0-041200rc1-generic_4.12.0-041200rc1.201705131731_amd64.deb

    Linux-image-4.12.0-041200rc1-generic_4.12.0-041200rc1.201705131731_amd64.deb

    I installed it with the command: sudo dpkg -i linux - *. Deb
    Update the grub: sudo update-grub

    Then I installed the driver: sudo dpkg -i rtl8723bs_4.12.0-041200rc1_amd64.deb

    And restart

    Everything is working ok

    Many thanks Ian .. !!!!

    ReplyDelete
    Replies
    1. Debian problem with my netbook, i test with Ubuntu.

      Delete
  6. Good evening and thanks for your huge support. I own an Acer s1002 124h and I followed, in the recent past, a github's thread about Linux for the Acer switch 10 (my device is a variant). I wrote there as Lucacer. I have been silently following and appreciating your work for 3 months or so and I wonder if the behaviour of my device with suspend (even with pm-suspend) is common to everybody or related to the video card of my device. I mean,I just can get a dark screen, but the light is still on (I.e. the screen is still being powered) and the cpu still runs very fast. I don't get if it's my device only or if it's the same for everybody.

    I have tested all of your solutions till 4.11 kernel (not yet 4.12rc1).

    Thanks a lot.

    Luca

    ReplyDelete
    Replies
    1. BTW, the video card is by Intel and it's the 'usual' 64 bit system with 32 bit uefi with a z3735 Atom CPU with 2 Gigabytes

      Delete
    2. Suspend has been problematic on a lot of devices and new patches are coming through that might fix it in later kernels.

      Delete
    3. I have not understand why "32 uefi" exist, bios for 32 and uefi for 64, this is complicate for intel ?

      :D

      Delete
    4. Manufacturers used the 32-bit bootloader as they installed 32-bit Windows to ensure Microsoft compliance and pricing. The complication for Linux users is that most distros have or are in the process of dropping 32-bit support resulting in the need to install 64-bit Linux.

      Delete
  7. Kernel V4.12 RC1 brings following things on my TreckStor Wintron 8.0 Tablet with Lubuntu 16.04
    - No more dual batery display (Intel SR1 removed), so a good improvement
    - Screen almost all time boot in sync (horisontal sync), but as I further mention if it will not crash on boot.
    - other issues like touchpad un-clik, right audio sent also on left speaker(Ok on audio jack), no bluetooth with last patch scripts, and sometime wi-fi connected but no Internet access... remain same.
    But unfortunately most of time the screen crash on boot in the middle of Plymouth display (probably when brightness change), so I can't access the system, only over network access. Created scripts for display brightness and screen rotation will output error "Can't Open Display" (As I try to use them maybe will reinitialize the display or brightness of it).
    Not knowing other solution for display fix, and probably further using release candidates and final kernel V4.12 screen will continue to crash on boot, maybe display driver will be fixed in V4.13 even I hope early.

    ReplyDelete
  8. Hi!
    I tried both of these packages with related kernels, but all they give me errors. I used 'dpkg -i *.dev'
    Dpkg tell me some of postproccesing errors and something about errors in lines.
    Also lspci, lshw, lsusb do not show me network adapters or something, but my module is definetely 8752bs. And as I considered it works via sdi0 in pci mode. Can yyou help me what can I do? I am a little amateur and I have no choice but linux to make my device work at this moment. Thank you.

    ReplyDelete
    Replies
    1. Please post the actual error messages you get so a diagnosis can be attempted.

      Delete
    2. Sure.
      // setting up rtl8723bs (4.12.0-041200rc1) ...
      // /var/lib/dpkg/info/rtl8723bs.postinst: line9: /bin/systemctl: No such file or directory
      # dpkg: error processing package rtl8723bs (--install):
      # subprocess installed post-installation script returned error exit status 127
      # Errors were encountered while prossing: rtl8723bs

      Same with 4.11 version.
      "apt-get -f install" tell that it is not fully installed, same line 9, same status 127. And also
      # E: Sub-process /usr/bin/dpkg returned an error code (1)

      And thats it. I don't know what to do, win10 does not even start an installation page.
      In bios sdio in pci-mode.
      Thank you.

      Delete
    3. What OS or distro are you running the packages on? I included bluetooth as a systemd service so if you don't have systemd (as seems evident from the error message) then it will fail. Ooops. I guess if you are on Ubuntu 14.04 then you can write your own upstart job if bluetooth is required from boot (or look at /etc/rc.local) however wifi should work despite the error message (note: assumed as untested).

      Delete
    4. Yes, I am running 14.04.5 with 4.12 kernel. So should I run late distro?

      Delete
    5. You could try (as in test) this version 'https://goo.gl/GnlQR4' by downloading and then first 'sudo dpkg -i rtl8723bs_4.12.0-041200rc1_amd64.deb' followed by 'sudo modprobe r8723bs' which should now install and start wifi on non-systemd systems running the v4.12-rc1 kernel.

      Delete
  9. I haven't tried the new stuff yet but, when you face issues with dpkg -i, you may try to use gdebi, which can fix most of dependencies related issues.

    Luca

    ReplyDelete
    Replies
    1. In this instance 'dpkg -i' is sufficient as the only dependency is the kernel version.

      Delete
  10. Hello.

    The module not load, install no problem. I use debian multiarch because my Denver have Uefi 32 with Atom Intel inside. I use Pci, acpi freeze. I use cinnamon and lightdm. I have install with in usb in intenso. I have only problem with realtek drivers. I use Apt local with all deb in dvd amd64.

    Else you have a solution for me ...

    ReplyDelete
    Replies
    1. If you are using Debian then almost certainly you will not have the correct kernel (either v4.11 or v4.12-rc1) as required by the packages.

      Delete
    2. I have use this kernel in this post for replace, the wlan is not detect ... i go test with a ubuntu minimal. I hate Uefi32 ... i have not problem with Uefi 64 or bios (legacy) ... buy a netbook is not good idea ... Intel no probleme, drivers Realteak are not detected.

      Delete
  11. Hello,

    I am using a Beelink Z83 and Ubuntu all flavours are freezing. I have done the cstate alterations 1 and 2 and it's still freezing. Any ideas?

    ReplyDelete
    Replies
    1. Thermal throttling? Are your CPU temperatures okay?

      Delete
  12. Last fix in place !!!

    The daily build have getting the last fix (ioctl_cfg80211.c from Ian MORRISON) for our rtl8723bs.
    You can istall the "cod/tip/daily/2017-05-21 mainline build" and its booting and the wifi its working out of the box if having the firmware installed. The kernel its little buggy with lockings and new intresting errors in the bootlog and nasty locks, but its the wifi, bluetooth and SD-card is working.
    Now its only time befor a good RC its comming thats working well and then the 4.12 and all its in place for our minis !!!

    ReplyDelete
    Replies
    1. Ubuntu's build of v4.12-rc2 is now out and I've created a package for the required firmware at http://linuxiumcomau.blogspot.com.au/2017/05/mainline-kernel-v412-rc2-now-with.html

      Delete