You are not logged in.

#1 2020-06-07 21:52:40

dasilvaca
Member
Registered: 2020-05-14
Posts: 13

[SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

Hi, this is not the first time I install Arch Linux, but it's the first time in this device. With the particular problem that, this doesn't allow any ethernet connection. By the way, I tried whit an official archiso image (5.5 kernel version), and it only list lo device (that I don't know what it does, actually). I already listed devices on the image, and the network card is RTL8821CE, I already unlock it using rfkill.

What to do now?

Processor: AMD A9 9425

Last edited by dasilvaca (2020-08-03 17:51:51)

Offline

#2 2020-06-08 11:21:01

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

You probably need an out-of-tree driver for that card.

RTL 88xxx has many variants several of which have aur packages.

post lspci -knn .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2020-06-08 12:43:22

ElisardoNieves
Member
From: Galicia, España
Registered: 2020-02-19
Posts: 22

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

Hello,

I have the same laptop with Arch Linux installed. So that the installation did not give problems I used an RJ45 to USB adapter. I also installed the linux-firmware package. Once you have Arch linux installed the Wifi will work without problem.

The Lenovo S145 is an almost perfect laptop for Arch linux: Suspend works without configuration, the AMD graphic does not give problems, the backlight works with a small configuration, etc.

I only found three problems: Hibernate doesn't work, Fn + F6 doesn't work, Fn + F8 is not well mapped. If you need any more help with the installation and configuration let me know.

If you can solve any of the three problems mentioned above, I would be grateful if you let me know.

Offline

#4 2020-06-08 17:13:19

dasilvaca
Member
Registered: 2020-05-14
Posts: 13

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

Hi, thanks for answer.

ElisardoNieves wrote:

  I used an RJ45 to USB adapter.

I don't have access to an adapter for now,

Lone_Wolf wrote:

post lspci -knn .

My [bold] lspci -knn [/bold] is the following:

 00:00.0 "0600" "1022" "1576" "17aa" "3817"

00:00.2 "0806" "1022" "1577" "1022" "1577"

00:01.0 "0300" "1002" "98e4" -rda "17aa" "3f1a"

00:01.1 "0403" "1002" "1503" "17aa" "3810"

00:02.0 "0600" "1022" "157b" "" ""

00:02.1 "0604" "1022" "157c" "" ""

00:02.3 "0604" "1022" "157c" "" ""

00:03. "0600" "1022" "157b" "" ""

00:08. "1080" "1022" "1578" "17aa" "3815"

00:09.0 "0600" "1022" "157d" "" ""

00:09.2 "0403" "1022" "157a" "17aa" "3813"

00:10.0 "OCO3" "1022" "7914" -r20 -30 "17aa" "3812"

00:11.8 "0106" "1022" "7901" -r4b-p01 "17aa" "380b'

00:12.0 "Oc03" "1022" "7908" -r49 -20 "17aa" "3819"

00:14.0 "Oc05" "1022" "790b" -r4b "17aa" "3821"

00:14.3 "0601" "1022" "790e" -r11 "17aa" "3820"

00:18.0 "0600" "1022" "15b0" "" ""

00:18.1 "O600" "1022" "15b1" "" ""

00:18.2 "0600" "1022" "15b2" "" ""

00: 18.3 "0600" "1022" "15b3" "" ""

00:18.4 "0600" "1022" "15b4" "" ""

00:18.5 "0600" "1022" "15b5" "" ""

02:00.0 "0280" "10ec" "c821" "a7aa" "c024"

Offline

#5 2020-06-08 17:32:36

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

The lspci -knn output looks strange was expecting it to be similar to the following:

Realtek Semiconductor Co., Ltd. Device [10ec:c821]
    Subsystem: Lenovo Device [17aa:c024]

Edit:
You could try the following DKMS packages from AUR
https://aur.archlinux.org/packages/rtlw … tw88-dkms/
https://aur.archlinux.org/packages/rtl8821ce-dkms-git/

The issue would be how to build the packages without network access.

Last edited by loqs (2020-06-08 17:43:35)

Offline

#6 2020-06-08 17:41:29

dasilvaca
Member
Registered: 2020-05-14
Posts: 13

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

loqs wrote:

The lspci -knn output looks strange

Sorry, I wrotte

 lspci -knm 

,
the correct output is:

02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8B21CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
Subsystem: Lenovo RTL8821CE 802.11ac PCIe Wireless Network Adapter [17aa:c024]
Kernel modules: wl

Last edited by dasilvaca (2020-06-08 17:41:53)

Offline

#7 2020-06-08 17:51:52

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

Is tethering the system to a phone an option to install the system?  The installation media does not contain the tools needed to build packages or support DKMS modules.
If there is no option to connect that system to a network you would need to build the package on a different system then copy the built package across.
You would also need to supply all the packages dependencies as well.

Offline

#8 2020-06-08 18:05:49

dasilvaca
Member
Registered: 2020-05-14
Posts: 13

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

loqs wrote:

build the package on a different system then copy the built package across.

So, how can I do it? I just know how to clone and install packages using

 git clone

and

makepkg -si

I have a machine already running Arch, so what to do now?

Offline

#9 2020-06-08 18:58:28

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

If you can update the installation media to 2020.06.01 which uses 5.6.15 which is the current kernel in core so should match the version on the other Arch machine.

The following is a shortened approach that just copies the kernel module across.

Install rtl8821ce-dkms-git on that other machine.
Copy /usr/lib/modules/5.6.15-arch1-1/updates/dkms/8821ce.ko.xz to a USB drive
Boot the installation media
rmmod wl
Mount the USB drive
mkdir /usr/lib/modules/5.6.15-arch1-1/updates
copy 8821ce.ko.xz to /usr/lib/modules/5.6.15-arch1-1/updates
depmod
modprobe 8821ce

Check if the interface is listed by `ip l`

Edit:
I suggested rtl8821ce-dkms-git over rtlwifi_new-rtw88-dkms as it did not need changes to the PKGBUILD to work.
If you want to try rtlwifi_new-rtw88-dkms apply the git diff,  build the package,  the modules should be found in the same directory /usr/lib/modules/5.6.15-arch1-1/updates/

git diff for rtlwifi_new-rtw88-dkms

diff --git a/PKGBUILD b/PKGBUILD
index dc15652..d9d9cae 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,22 +4,20 @@
 # Contributor: feanor1397 <feanor1397@gmail.com>
 
 pkgname=rtlwifi_new-rtw88-dkms
-_pkgname=rtlwifi_new
+_pkgname=rtlwifi-new
 pkgver=r328.6dcff1c
 pkgrel=1
 pkgdesc='Newest Realtek rtlwifi codes, rtw88 branch'
-arch=('i686' 'x86_64')
+arch=('any')
 url='https://github.com/lwfinger/rtlwifi_new'
+license=('GPL2')
 depends=('dkms')
 makedepends=('git')
 provides=('rtlwifi_new-dkms' 'rtlwifi_new-extended-dkms-git')
 conflicts=('rtlwifi_new-dkms' 'rtlwifi_new-extended-dkms-git')
 replaces=('rtlwifi_new-extended-dkms-git')
-install=${pkgname}.install
-source=("git+https://github.com/lwfinger/rtlwifi_new.git#branch=rtw88" 
-	"dkms.conf")
-sha256sums=('SKIP'
-            '7152228ef9162a1a5599aab63556ff958c2447b1e2c8f896c29883694a9a5934')
+source=("$_pkgname::git+https://github.com/lwfinger/rtlwifi_new.git#branch=rtw88")
+sha256sums=('SKIP')
 
 pkgver() {
 	cd "${_pkgname}"
@@ -28,15 +26,5 @@ pkgver() {
 
 package() {
 	install -dm 755 "${pkgdir}/usr/src"
-	cp -dr --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
-	
-	#fix wrong dkms config
-	cp  "${srcdir}"/dkms.conf "${pkgdir}"/usr/src/${_pkgname}-${pkgver}/dkms.conf
-	
-	# Set name and version
-	sed -e "s/0.6/${pkgver}/" \
-		-i "${pkgdir}"/usr/src/${_pkgname}-${pkgver}/dkms.conf
-	sed -e "s/rtlwifi-new/${_pkgname}/" \
-                -i "${pkgdir}"/usr/src/${_pkgname}-${pkgver}/dkms.conf	
-
+	cp -dr --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/src/${_pkgname}-0.6"
 }
diff --git a/dkms.conf b/dkms.conf
deleted file mode 100644
index 50a7fa6..0000000
--- a/dkms.conf
+++ /dev/null
@@ -1,13 +0,0 @@
-PACKAGE_NAME="rtlwifi-new"
-PACKAGE_VERSION=0.6
-MAKE="make -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build"
-CLEAN="make -C $kernel_source_dir clean"
-BUILT_MODULE_NAME[0]="rtw88"
-BUILT_MODULE_NAME[1]="rtwpci"
-BUILT_MODULE_LOCATION[3]="rtw88"
-BUILT_MODULE_LOCATION[4]="rtwpci"
-DEST_MODULE_LOCATION[0]="/updates"
-DEST_MODULE_LOCATION[1]="/updates"
-EMAKE_INITRD=no
-AUTOINSTALL=yes
-
diff --git a/rtlwifi_new-rtw88-dkms.install b/rtlwifi_new-rtw88-dkms.install
deleted file mode 100644
index 0b1a570..0000000
--- a/rtlwifi_new-rtw88-dkms.install
+++ /dev/null
@@ -1,17 +0,0 @@
-post_install() {
-	dkms build -m rtlwifi_new -v ${1%%-*}
-	dkms install -m rtlwifi_new -v ${1%%-*}
-	local version=${1%%-*}
-}
-
-pre_upgrade() {
-	pre_remove $2
-}
-
-post_upgrade() {
-	post_install $1
-}
-
-pre_remove() {
-	dkms remove -m rtlwifi_new -v ${1%%-*} --all
-}

Last edited by loqs (2020-06-08 21:54:38)

Offline

#10 2020-06-09 14:58:05

dasilvaca
Member
Registered: 2020-05-14
Posts: 13

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

So, I already have the last arch boot image, now I'm going to copy the installed package "rtlwifi_new-rtw88-dkms" into another drive. I'll upload ASAP.

Offline

#11 2020-06-09 15:02:31

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

No

Install rtl8821ce-dkms-git on the machine with the arch installation.
Copy /usr/lib/modules/5.6.15-arch1-1/updates/dkms/8821ce.ko.xz to a USB drive
Boot the installation media
rmmod wl
Mount the USB drive
mkdir /usr/lib/modules/5.6.15-arch1-1/updates
copy 8821ce.ko.xz to /usr/lib/modules/5.6.15-arch1-1/updates
depmod
modprobe 8821ce

Offline

#12 2020-06-14 23:05:42

dasilvaca
Member
Registered: 2020-05-14
Posts: 13

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

So, firstable I make and format each partition I will use for my Arch installation, then I must have to do what you told me. Right?

Offline

#13 2020-06-14 23:23:09

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

Offline

#14 2020-06-15 01:47:51

dasilvaca
Member
Registered: 2020-05-14
Posts: 13

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

I got an error because I'm running into arch 5.7.2(machine running) not into 5.6.15 (image). What to do?

Offline

#15 2020-06-15 01:58:35

dasilvaca
Member
Registered: 2020-05-14
Posts: 13

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

It literally says

[    720.426110]8821ce: version magic '5.7.2-arch1-1 SMP preempt mod_unload ' should be '5.6.15-arch1-1 SMP preempt mod_unload'
modprobe: ERROR: could not insert '8821ce': Exec format error 

Offline

#16 2020-06-15 02:08:13

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

Downgrade the kernel on the other system?

Offline

#17 2020-08-03 17:45:03

dasilvaca
Member
Registered: 2020-05-14
Posts: 13

Re: [SOLVED]Lenovo Ideapad S145 Arch Linux Installation (WiFi trobleshoot)

Thanks! I did it and fortunately it worked.

Offline

Board footer

Powered by FluxBB