Package Details: rtw88-dkms-git r536.ec2cee9-1

Git Clone URL: https://aur.archlinux.org/rtw88-dkms-git.git (read-only, click to copy)
Package Base: rtw88-dkms-git
Description: Driver for Realtek 802.11ac wireless chips
Upstream URL: https://github.com/lwfinger/rtw88
Keywords: realtek rtl8723cs rtl8723de rtl8723ds rtl8723du rtl8811au rtl8811cu rtl8812au rtl8812bu rtl8821au rtl8821ce rtl8821cs rtl8821cu rtl8822be rtl8822bs rtl8822bu rtl8822ce rtl8822cs rtl8822cu
Licenses: GPL2, custom
Submitter: librewish
Maintainer: xx777
Last Packager: xx777
Votes: 13
Popularity: 0.34
First Submitted: 2020-07-07 06:33 (UTC)
Last Updated: 2024-11-24 17:15 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Pinned Comments

xx777 commented on 2024-07-13 22:37 (UTC) (edited on 2024-08-31 06:34 (UTC) by xx777)

Reminders:

  1. If your wifi adapter is in CD-ROM mode, you need to use the command usb_modeswitch or eject to switch it to "Wifi Mode" first.

  2. Before installing this package, make sure your system has the corresponding kernel headers and the package base-devel installed.

  3. You have to manually blacklist or remove any conflicting drivers installed except the in-kernel rtw88 driver.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

xiota commented on 2024-07-13 22:09 (UTC)

This package should have provides/conflicts on rtw88-dkms (in case stable package ever created).

yataro commented on 2024-06-26 06:03 (UTC)

And, please, this one

No more .git in src directory

diff --git a/PKGBUILD b/PKGBUILD
index ad7468e..a82c018 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,8 +24,10 @@ pkgver() {
 }

 package() {
-  install -dm 755 "${pkgdir}/usr/src"
-  cp -dr --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
+  cd "${srcdir}/${_pkgname}"
+
+  install -dm755 "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
+  cp -dr * "${pkgdir}/usr/src/${_pkgname}-${pkgver}"

   # Set name and version
   sed -e "s/^PACKAGE_NAME=.*/PACKAGE_NAME=${_pkgname}/"     \
@@ -33,5 +35,5 @@ package() {
       -i "${pkgdir}/usr/src/${_pkgname}-${pkgver}"/dkms.conf

   # Blacklists conflicting modules
-  install -Dm644 ${pkgname}.conf "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"
+  install -Dm644 "../${pkgname}.conf" -t "${pkgdir}/usr/lib/modprobe.d"
 }

yataro commented on 2024-06-26 05:48 (UTC)

Can you apply this patch? I've removed unnecessary dependencies that are not used at all and are also included in base-devel. Replaced the sed command for dkms.conf, which doesn't work because there is no more rtlwifi-new. Updated blacklist .conf to add missing drivers. I've also updated the .install with a more human-friendly note, because this driver now supports so many devices that the command to load them all is hilariously long (28 modules). Your modprobe command will not load all specified drivers due to missing -a flag (all arguments after the first one were treated like an option, not another module).

By the way, upstream is testing a new driver for 8812au, it is not in the dkms.conf for this moment, but I think you will need to update the keywords with all the devices soon :D

diff --git a/PKGBUILD b/PKGBUILD
index 853bc12..ad7468e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,26 +5,21 @@

 pkgname=rtw88-dkms-git
 _pkgname=rtw88
-pkgver=r242.166b839
+pkgver=r421.4b98b72
 pkgrel=1
-pkgdesc='Newest Realtek rtlwifi codes'
+pkgdesc='Latest Realtek Wifi 5 drivers'
 arch=('any')
 url='https://github.com/lwfinger/rtw88'
 depends=('dkms')
-makedepends=('git' 'gcc' 'make')
-provides=('rtlwifi_new-dkms')
-conflicts=('rtlwifi_new-dkms')
-provides=('rtlwifi_new-dkms' 'rtlwifi_new-extended-dkms-git' 'rtlwifi_new-rtw88-dkms')
-conflicts=('rtlwifi_new-dkms' 'rtlwifi_new-extended-dkms-git' 'rtlwifi_new-rtw88-dkms')
-replaces=('rtlwifi_new-extended-dkms-git' 'rtlwifi_new-rtw88-dkms-git')
+makedepends=('git')
 install=${pkgname}.install
 source=("git+https://github.com/lwfinger/rtw88.git"
         "${pkgname}.conf")
 sha256sums=('SKIP'
-            '20c128b5d285b75dc06f4feee5acfbed1719fc39aef137cde65993baf79a0495')
+            '1323e5a73ca52212bd8158852f98eeab9b4cbb7fba106fb3b0e627ce05d89dde')

 pkgver() {
-  cd "${_pkgname}" || exit 1
+  cd "${_pkgname}"
   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
 }

@@ -33,11 +28,10 @@ package() {
   cp -dr --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/src/${_pkgname}-${pkgver}"

   # 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
+  sed -e "s/^PACKAGE_NAME=.*/PACKAGE_NAME=${_pkgname}/"     \
+      -e "s/^PACKAGE_VERSION=.*/PACKAGE_VERSION=${pkgver}/" \
+      -i "${pkgdir}/usr/src/${_pkgname}-${pkgver}"/dkms.conf

-  # Blacklists conflicting module
+  # Blacklists conflicting modules
   install -Dm644 ${pkgname}.conf "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"
 }
diff --git a/rtw88-dkms-git.conf b/rtw88-dkms-git.conf
index b8c3f93..47b83e4 100644
--- a/rtw88-dkms-git.conf
+++ b/rtw88-dkms-git.conf
@@ -2,13 +2,23 @@
 # Blacklist conflicting rtw88_* modules
 #

-blacklist rtw88_8723de
 blacklist rtw88_8723d
-blacklist rtw88_8821ce
+blacklist rtw88_8723de
+blacklist rtw88_8723ds
+blacklist rtw88_8723du
 blacklist rtw88_8821c
-blacklist rtw88_8822be
+blacklist rtw88_8821ce
+blacklist rtw88_8821cs
+blacklist rtw88_8821cu
 blacklist rtw88_8822b
-blacklist rtw88_8822ce
+blacklist rtw88_8822be
+blacklist rtw88_8822bs
+blacklist rtw88_8822bu
 blacklist rtw88_8822c
+blacklist rtw88_8822ce
+blacklist rtw88_8822cs
+blacklist rtw88_8822cu
 blacklist rtw88_core
 blacklist rtw88_pci
+blacklist rtw88_sdio
+blacklist rtw88_usb
diff --git a/rtw88-dkms-git.install b/rtw88-dkms-git.install
index bc2ae06..815aa47 100644
--- a/rtw88-dkms-git.install
+++ b/rtw88-dkms-git.install
@@ -1,21 +1,15 @@
 post_install() {
   cat<<EOF

-Unload and load kernel modules:
+  This package blacklists in-kernel rtw88_* modules in a .conf under
+  /etc/modprobe.d, but you should unload conflicting ones to use this driver
+  right now:

-  rmmod rtw88_{8{723de,723d,821ce,821c,822be,822b,822ce,822c},core,pci}
-  modprobe rtw_{8{723de,723d,821ce,821c,822be,822b,822ce,822c},core,pci}
+  # rmmod rtw88_...
+  And load the appropriate driver:
+  # modprobe rtw_...

-EOF
-}
-
-pre_remove() {
-  cat<<EOF
-
-Unload and load kernel modules:
-
-  rmmod rtw_{8{723de,723d,821ce,821c,822be,822b,822ce,822c},core,pci}
-  modprobe rtw88_{8{723de,723d,821ce,821c,822be,822b,822ce,822c},core,pci}
+  See also: https://github.com/lwfinger/rtw88#important-information

 EOF
 }

cl0ne commented on 2023-05-22 14:50 (UTC)

Note to those who still have broken module build due to missing generated/autoconf.h: you have to reinstall linux-headers package corresponding to your kernel.

cl0ne commented on 2023-05-22 14:46 (UTC)

Hi, @PRESFIL, can we do something like

find "${pkgdir}" \( -name .git -or -name .gitignore \) -exec rm -fr {} \;

in package() to get rid of that pesky .git in the package?

IsaacJReay commented on 2023-04-25 05:11 (UTC)

Hey, is there any chance we can have module blacklist code from your suggestion below directly into your package, like include it as a file and install directly into /etc/modprobe.d? Or is it not permitted by AUR guideline?

HornyApple commented on 2023-04-13 20:50 (UTC)

congrats - your package deletes at least one file from the linux-headers.

I think it was at this point:

:: Processing package changes...
(1/1) installing rtw88-dkms-git                          [##############################] 100%
Sign command: /usr/lib/modules/6.2.10-zen1-1-zen/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Creating symlink /var/lib/dkms/rtw88/r222.75e2c81/source -> /usr/src/rtw88-r222.75e2c81

Building module:
Cleaning build area.....(bad exit status: 2)

After that the file: /usr/lib/modules/6.2.10-zen1-1-zen/build/include/generated/autoconf.h disappeared.

Please fix that, it breaks dkms for everyone who uses your package.

akka44 commented on 2022-12-26 18:00 (UTC)

extremely shit can't even keep a straight connection if the router is just one room away, don't waste your time buy a wireless adapter and use it.

Spixmaster commented on 2022-05-29 07:02 (UTC)

For me, this package completely broke my system. Not even pacman worked. I had to boot from a boot stick and remove it.