Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-23-2021, 06:43 PM
|
#1
|
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,151
Rep:
|
What exactly is DKMS?
I installed Ubuntu 20.04 on a new HP laptop. HP uses Realtek rtl8821ce wifi card.
That does not work out of the box in Linux.
I bought a usb wifi, got the new laptop connected to the net.
I installed gcc.
I read I need to install DKMS.
During the installation, I got a purple bash type window.
It asked me for a password. 2 times. Said, I would need it on boot or the 3rd party modules would not work.
Then I installed the Ubuntu deb package for the Realtek rtl8821ce wifi card
On reboot, the first time, I did see a screen mentioning manage MOK, but I went with the first option, which was .... I can't remember.
I was not asked for a password.
The Realtek wifi still does not work.
But, subsequent boots do not show any mention of MOK manager, it just goes to grub straight away.
I will try to reinstall from scatch.
Should I disable "Secure boot" in the BIOS?
|
|
|
03-23-2021, 08:08 PM
|
#3
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
A search engine is your friend. It finds many answers much faster than a post in a forum.
The password request while installing dkms was asking for the users password. To install software you need root priviledges and many packages and installation tools now prompt you for that password so they can use sudo to complete the install.
dkms is the tool that builds kernel modules during install as explained here.
There should have been no need to install dkms from a thirdparty source since almost all distros that use it include it in the initial install. I know that Ubuntu 20.04 has it so your install may have damaged the original version in the distro.
You need to search for the rtl8821 driver fixes. The one included as a deb may not be up to date with the latest chipsets used and there are several posts on how to fix that. Several on this linuxquestions site.
I searched for "rtl8821ce driver" in these forums (search link at the top) and found 25 threads on the subject.
Last edited by computersavvy; 03-23-2021 at 08:13 PM.
|
|
1 members found this post helpful.
|
03-23-2021, 11:06 PM
|
#4
|
Member
Registered: Aug 2007
Posts: 483
Rep: 
|
From your description you appear to be missing all of the steps to create your own keys and then sign your newly compiled Realtek kernel module with them.
Quote:
On reboot, the first time, I did see a screen mentioning manage MOK, but I went with the first option, which was .... I can't remember.
|
Adding your own keys to the MOK list only makes sense if you have first generated your own keys with openssl tools.
The following guide explains how to do this for Ubuntu.
https://ubuntu.com/blog/how-to-sign-...or-secure-boot
Quote:
During the installation, I got a purple bash type window.
It asked me for a password. 2 times. Said, I would need it on boot or the 3rd party modules would not work.
|
This was likely part of the MOK enrolment phase. If you first didn't generate a key pair you don't have anything to enroll. The "3rd party modules" refer to kernel modules from external sources such as the Realtek module you are trying to compile.
Quote:
The Realtek wifi still does not work.
|
This is to be expected as you didn't generate a key pair, sign your module with it and then add it to the MOK list.
Quote:
I searched for "rtl8821ce driver" in these forums (search link at the top) and found 25 threads on the subject.
|
The OP needs help in how to sign their own kernel modules and add their own keys to UEFI. You didn't mention this at all in your post or perhaps even realize their problem.
Last edited by tofino_surfer; 03-23-2021 at 11:08 PM.
|
|
|
03-23-2021, 11:22 PM
|
#5
|
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,151
Original Poster
Rep:
|
@computersavvy: You were right:
Quote:
You need to search for the rtl8821 driver fixes
|
I found what looks like a promising solution on GeeksforGeeks.org (I get a lot of tips there for Python, they are good!)
I'll try it when I get home tonight. They recommend
The password I was talking about above was not my sudo password, just a password that DKMS asked for on install.
I think I got that step wrong on reboot, I was never asked again for that password, and the Realtek wifi won't work, like they said.
Anyway, I will start from scratch, reinstall everything.
|
|
|
03-24-2021, 05:09 AM
|
#6
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,843
|
Quote:
Should I disable "Secure boot" in the BIOS?
|
Unless you won't to go through the steps of signing the driver to work with secure boot as tofino_surfer has suggested then yes you want to disable secure boot for the wifi module to work.
|
|
|
03-24-2021, 06:47 AM
|
#7
|
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,151
Original Poster
Rep:
|
I have some pics to show you, perhaps you will better understand the password I am talking about.
I did a complete reinstall, this time with a usb wifi dongle plugged in. Please see the first pic.
The first pic is the Ubuntu 20.04 installer. I clicked, "Install third party software for graphics and wifi hardware ...."
If you click that, you need a password.
After the installation completes, on reboot, I got a "Perform MOK management" screen.
I tried the second choice "enroll MOK"
The Realtek rtl28821ce on the HP laptop still does not work!
Any tips please?
|
|
|
03-24-2021, 01:50 PM
|
#8
|
Member
Registered: Aug 2007
Posts: 483
Rep: 
|
You obviously didn't read the guide I linked.
Quote:
After the installation completes, on reboot, I got a "Perform MOK management" screen.
I tried the second choice "enroll MOK"
|
This only makes sense if you actually generated a public/private key pair using an x.509 certificate with openssl. Did you do this first ?
Quote:
The Realtek rtl28821ce on the HP laptop still does not work!
|
No kidding. No need for screaming. You obviously didn't do any of the steps in the guide I linked.
Tips ? The guide I linked https://ubuntu.com/blog/how-to-sign-...or-secure-boot
explains exactly what you need to do. If you had even read it you wouldn't have made this post. You were told what the problem was and given a guide on how to solve it and you are simply repeating the complaining in your first post.
By the way there is no need to use the installer to do this. All of the steps can be performed manually on a regular installation as the guide shows. Except for the wifi not working there is probably nothing else wrong with your installation.
Last edited by tofino_surfer; 03-24-2021 at 01:56 PM.
|
|
1 members found this post helpful.
|
03-24-2021, 02:33 PM
|
#9
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,843
|
Why not disable secure boot and be done with it?
|
|
|
03-24-2021, 02:53 PM
|
#10
|
Member
Registered: Aug 2007
Posts: 483
Rep: 
|
Quote:
Why not disable secure boot and be done with it?
|
This assumes that they are able to disable secure boot. Unfortunately there are many Windows 10 laptops that are installed either with Secure Boot locked down or where Windows won't run if Secure Boot is disabled. Since many new Ubuntu users will want to dual boot with Windows this would cause a problem. Ubuntu along with Fedora and several others are the few Linux distros that can handle SB. It is a valuable skill to be able to sign your own modules and add your own MOK to the accepted key list.
|
|
1 members found this post helpful.
|
03-24-2021, 03:08 PM
|
#11
|
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,151
Original Poster
Rep:
|
Thank you all for your advice! I appreciate it, as I really am not so savvy as far as this stuff is concerned.
This morning, around 4am (I'm an early riser) I fixed it.
If you have this trouble you can try this:
1. Get the computer with the wifi problem connected to the net somehow. I bought a usb wifi dongle, 75 Yuan, about US$11.
2. Go to here
3. Follow the instructions, then reboot
Done, solved, thank you to geeksforgeeks.org
|
|
|
03-24-2021, 04:31 PM
|
#12
|
Member
Registered: Aug 2007
Posts: 483
Rep: 
|
Quote:
1. Get the computer with the wifi problem connected to the net somehow. I bought a usb wifi dongle, 75 Yuan, about US$11.
|
You were lucky that this worked. Most usb wifi dongles use Realtek chips. It could have failed to run the same way the built-in one failed.
The standard advice given in this guide is to use an ethernet cable and plug your computer directly into the modem.
|
|
|
All times are GMT -5. The time now is 07:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|