Package Details: rtw88-dkms-git r467.e0a167e-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: 12
Popularity: 0.57
First Submitted: 2020-07-07 06:33 (UTC)
Last Updated: 2024-07-21 23:13 (UTC)

Dependencies (4)

Required by (0)

Sources (3)

Pinned Comments

xx777 commented on 2024-07-13 22:37 (UTC) (edited on 2024-07-21 23: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.

  4. Currently RTL8812AU is supported but still under testing, please report here if you encounter any problems: https://github.com/morrownr/8812au-20210820/issues/27

  5. Currently RTL8811AU and RTL8821AU are supported but still under testing, please report here if you encounter any problems: https://github.com/morrownr/8821au-20210708/issues/133

Latest Comments

1 2 3 4 5 6 Next › Last »

xx777 commented on 2024-07-18 00:57 (UTC) (edited on 2024-07-18 00:59 (UTC) by xx777)

@xiota Sorry that I am not going to add provides/conflicts on rtw88-dkms. I think no one would create a package like rtw88-dkms as the stable version of rtw88 is just in the kernel. I am not pretty good at English, so please tell me if I misunderstand what you mean.

xiota commented on 2024-07-13 23:32 (UTC)

Setting provides/conflicts is standard practice for git and patched packages. It is in guidelines. Since stable package doesn't exist, you could bundle it with a future update, but many maintainers forget when they put it off for later. If you want to avoid unnecessary rebuilds, you could skip bumping pkgrel. The update would take effect when upstream pushes a new commit.

xx777 commented on 2024-07-13 22:37 (UTC) (edited on 2024-07-21 23: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.

  4. Currently RTL8812AU is supported but still under testing, please report here if you encounter any problems: https://github.com/morrownr/8812au-20210820/issues/27

  5. Currently RTL8811AU and RTL8821AU are supported but still under testing, please report here if you encounter any problems: https://github.com/morrownr/8821au-20210708/issues/133

xx777 commented on 2024-07-13 22:36 (UTC)

@xiota The package rtw88-dkms doesn't exist currently, do we really need to have provides/conflicts on it?

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?