rtl8821ce doesn't work on Fedora 29
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 39
  1. #1
    Join Date
    Feb 2019
    Location
    Mexico
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy rtl8821ce doesn't work on Fedora 29

    Hi everyone!

    I bought a laptop (Hp Pavilion 15-cw0009la) a few days ago and I installed Fedora 29, but some problems have attacked my comfort.
    First, I had to deal with the annoying automatic rotation issue and I had success with it.

    As you may already know rtl8821ce driver does not work as well as we wanted it to do on Linux, as a matter of fact, it does not work at all!
    Well, when I go to Wi-Fi settings it seems I have none wireless adapter.
    I have read several post on the same problem and I tried to solve mine with those solutions, but some commands threw me error and I was not able to solve the issue.
    I am a novice user on Linux.
    Can you help me please?

  2. #2
    Join Date
    May 2018
    Location
    UK
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rtl8821ce doesn't work on Fedora 29

    First off Bluetooth support has recently been added to the kernel for this chip - but due to a bug is only recognised on a cold boot from power off and not from a warm reboot - a fix is already in for upcoming kernels and may be backported. Hopefully mainline kernel support for the wifi side of the chip should follow at some point but for now...

    I have this chip in an HP laptop as well and the following designed for Archlinux and Ubuntu also works fine for Fedora - https://github.com/tomaspinho/rtl8821ce

    The following will install required build packages, download the driver source, build for your kernel and install with dkms (dynamic kernel module support).
    Code:
    sudo dnf -y upgrade
    sudo dnf install -y make git kernel-headers kernel-devel elfutils-libelf-devel
    sudo dnf install -y dkms
    Reboot now unless sure running kernel matches latest installed.
    Then
    Code:
    git clone https://github.com/tomaspinho/rtl8821ce
    cd rtl8821ce
    chmod +x dkms-install.sh
    chmod +x dkms-remove.sh
    sudo ./dkms-install.sh
    You will need to turn of secure boot if on as the kernel module compiled will not be signed for secure boot. By using dkms, a new module will be recompiled automatically every time a new kernel is installed. The wifi driver itself works fine with both cold and warm boots.
    Last edited by hogweed; 20th March 2019 at 07:20 PM.

  3. #3
    Join Date
    Feb 2019
    Location
    Mexico
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rtl8821ce doesn't work on Fedora 29

    Thanks.
    I had a problem with the last command:

    About to run dkms install steps...
    Error! DKMS tree already contains: rtl8821ce-v5.2.5_1.26055.20180108
    You cannot add the same module/version combo more than once.
    Error! echo
    Your kernel headers for kernel 4.20.10-200.fc29.x86_64 cannot be found at
    /lib/modules/4.20.10-200.fc29.x86_64/build or /lib/modules/4.20.10-200.fc29.x86_64/source.
    Error! echo
    Your kernel headers for kernel 4.20.10-200.fc29.x86_64 cannot be found at
    /lib/modules/4.20.10-200.fc29.x86_64/build or /lib/modules/4.20.10-200.fc29.x86_64/source.
    Finished running dkms install steps.

  4. #4
    Join Date
    May 2018
    Location
    UK
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rtl8821ce doesn't work on Fedora 29

    The dkms error suggests you have already tried to install the driver. It should be safe to "sudo rm -rf /var/lib/dkms/rtl8821ce" if things have got screwed up and then rerun dkms-install.sh but I'm not sure why you are getting the kernel headers error. Could you provide the output of " sudo dnf list kernel* "

  5. #5
    Join Date
    Feb 2019
    Location
    Mexico
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rtl8821ce doesn't work on Fedora 29

    Yeah, I have tried to install the driver several times.

    Output:
    Oracle Linux / R 2.4 kB/s | 6.9 kB 00:02
    No se pudo sincronizar la caché para el repositorio 'virtualbox'
    Ignoring repositories: virtualbox
    Última comprobación de caducidad de metadatos hecha hace 1:08:30, el dom 24 feb 2019 16:37:34 CST.
    Paquetes instalados
    kernel.x86_64 4.20.10-200.fc29 @updates
    kernel-core.x86_64 4.20.10-200.fc29 @updates
    kernel-debug-devel.x86_64
    4.20.10-200.fc29 @updates
    kernel-devel.x86_64 4.20.10-200.fc29 @updates
    kernel-headers.x86_64 4.20.10-200.fc29 @updates
    kernel-modules.x86_64 4.20.10-200.fc29 @updates
    Paquetes disponibles
    kernel-cross-headers.x86_64
    4.20.10-200.fc29 updates
    kernel-debug.x86_64 4.20.10-200.fc29 updates
    kernel-debug-core.x86_64
    4.20.10-200.fc29 updates
    kernel-debug-modules.x86_64
    4.20.10-200.fc29 updates
    kernel-debug-modules-extra.x86_64
    4.20.10-200.fc29 updates
    kernel-modules-extra.x86_64
    4.20.10-200.fc29 updates
    kernel-rpm-macros.noarch
    118-1.fc29 fedora
    kernel-tools.x86_64 4.20.10-200.fc29 updates
    kernel-tools-libs.i686 4.18.10-300.fc29 fedora
    kernel-tools-libs.x86_64
    4.20.10-200.fc29 updates
    kernel-tools-libs-devel.i686
    4.18.10-300.fc29 fedora
    kernel-tools-libs-devel.x86_64
    4.20.10-200.fc29 updates
    kernelshark.x86_64 2.7-3.fc29 fedora

  6. #6
    Join Date
    May 2018
    Location
    UK
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rtl8821ce doesn't work on Fedora 29

    If you still having problems, just to rule out some possibilities.

    Try
    Code:
    sudo dnf --refresh upgrade
    sudo reboot now
    After reboot
    Code:
    sudo rm -rf /var/lib/dkms/rtl8821ce
    cd rtl8821ce
    sudo ./dkms-install.sh

  7. #7
    Join Date
    May 2018
    Location
    UK
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rtl8821ce doesn't work on Fedora 29

    Okay, looking at that dnf output, could you try " sudo dnf install kernel-modules-extra " and then retry ?
    Last edited by hogweed; 25th February 2019 at 02:50 AM.

  8. #8
    Join Date
    Feb 2019
    Location
    Mexico
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rtl8821ce doesn't work on Fedora 29

    I am still having problems with kernel.

    About to run dkms install steps...

    Creating symlink /var/lib/dkms/rtl8821ce/v5.2.5_1.26055.20180108/source ->
    /usr/src/rtl8821ce-v5.2.5_1.26055.20180108

    DKMS: add completed.
    Error! echo
    Your kernel headers for kernel 4.20.10-200.fc29.x86_64 cannot be found at
    /lib/modules/4.20.10-200.fc29.x86_64/build or /lib/modules/4.20.10-200.fc29.x86_64/source.
    Error! echo
    Your kernel headers for kernel 4.20.10-200.fc29.x86_64 cannot be found at
    /lib/modules/4.20.10-200.fc29.x86_64/build or /lib/modules/4.20.10-200.fc29.x86_64/source.
    Finished running dkms install steps.

  9. #9
    Join Date
    May 2018
    Location
    UK
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rtl8821ce doesn't work on Fedora 29

    Well I just tried it on another laptop and it built okay for me. The only other thing that looks strange is that you have kernel-debug-devel installed - EDIT: I just tried on a fresh VM and dkms installed kernel-debug-devel - - not sure why. It might be worth trying "sudo dnf remove kernel-debug-devel " and then " sudo dnf reinstall kernel-devel kernel-headers " before attempting a build.
    Last edited by hogweed; 25th February 2019 at 05:05 PM.

  10. #10
    Join Date
    May 2018
    Location
    UK
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rtl8821ce doesn't work on Fedora 29

    [EDIT: See post below this one before trying this as I think I've figured out the problem]

    I wonder if you are missing a more basic dependency. Let's try to build something else which will pull in its own dependencies. I have wireguard installed on the systems where I've built the wifi driver and it may have installed something else needed. You could try installing wireguard (it won't be doing anything uness you configure it - just want to see if it builds).

    $ sudo dnf copr enable jdoss/wireguard
    $ sudo dnf install wireguard-dkms wireguard-tools

    Did that work? If so now retry building the wifi driver.
    Last edited by hogweed; 25th February 2019 at 05:09 PM.

  11. #11
    Join Date
    May 2018
    Location
    UK
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rtl8821ce doesn't work on Fedora 29

    Done a bit more digging and it appears the problem depends on what order certain packages are installed and has been a long standing issue with dkms pulling in kernel-debug-devel if kernel-devel has not been installed first ( https://bugzilla.redhat.com/show_bug.cgi?id=1228897 ). You then don't have the correct development build environment because you are not running a debug kernel.

    So to repeat try " sudo dnf remove kernel-debug-devel " followed by " sudo dnf reinstall kernel-devel kernel-headers "
    Last edited by hogweed; 25th February 2019 at 09:22 PM.

  12. #12
    Join Date
    Feb 2019
    Location
    Mexico
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rtl8821ce doesn't work on Fedora 29

    Wireguard was installed successfully but I am still having problems with dkms-install.sh:

    About to run dkms install steps...

    Creating symlink /var/lib/dkms/rtl8821ce/v5.2.5_1.26055.20180108/source ->
    /usr/src/rtl8821ce-v5.2.5_1.26055.20180108

    DKMS: add completed.
    Error! echo
    Your kernel headers for kernel 4.20.10-200.fc29.x86_64 cannot be found at
    /lib/modules/4.20.10-200.fc29.x86_64/build or /lib/modules/4.20.10-200.fc29.x86_64/source.
    Error! echo
    Your kernel headers for kernel 4.20.10-200.fc29.x86_64 cannot be found at
    /lib/modules/4.20.10-200.fc29.x86_64/build or /lib/modules/4.20.10-200.fc29.x86_64/source.
    Finished running dkms install steps.

    I went into /lib/modules/4.20.10-200.fc29.x86_64/build or /lib/modules/4.20.10-200.fc29.x86_64/source and /lib/modules/4.20.10-200.fc29.x86_64/build or /lib/modules/4.20.10-200.fc29.x86_64/build and both of them are empty I do not if that has anything to do with the problem.

  13. #13
    Join Date
    May 2018
    Location
    UK
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rtl8821ce doesn't work on Fedora 29

    I'll have a think. I'm still tending to think that kernel-debug-devel screwed things up but, since your initial post, I have successfully installed rtl8821ce on three different systems including a new install vm after removing kernel-debug-devel when installed by dkms. Maybe we're missing something obvious but I'm not seeing it at the moment. These directories are not empty for me.

  14. #14
    Join Date
    Jan 2010
    Posts
    7,379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rtl8821ce doesn't work on Fedora 29

    rpm -qa |grep kernel
    If the latest numbers don't match, there's your problem. Also after installing a new kernel, you have to reboot.

    http://srobb.net/rhkerndev.html

    Although that deals more with the days when there were more 32 bit machines around and people getting PAE kernels, the last sentence is the key. You should have kernel-devel and kernel-header packages matching the version you see when you run uname -r which is usually the cause of an error message like that (can't find the source, etc.)

  15. #15
    Join Date
    Feb 2019
    Location
    Mexico
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rtl8821ce doesn't work on Fedora 29

    Thank you a lot .

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. [SOLVED]
    Will rtl8821ce wireless driver be mainlined?
    By taztcs in forum Hardware & Laptops
    Replies: 4
    Last Post: 26th November 2018, 06:10 PM
  2. wifi issue realtek rtl8821ce HP Pavilion
    By bobatlcpmbdx in forum Hardware & Laptops
    Replies: 1
    Last Post: 5th September 2018, 10:32 PM
  3. Fedora 12 Kde doesn't work
    By decodedthought in forum Hardware & Laptops
    Replies: 15
    Last Post: 15th June 2010, 09:21 AM
  4. Mic doesn't work in Fedora 10
    By Wrenthir in forum Using Fedora
    Replies: 2
    Last Post: 22nd December 2008, 06:48 PM
  5. DVD rom doesn't work with fedora
    By solomon in forum Hardware & Laptops
    Replies: 0
    Last Post: 7th December 2008, 02:07 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •