{"id":23817819,"url":"https://github.com/lsongdev/rtl8821cu","last_synced_at":"2026-05-19T15:03:25.997Z","repository":{"id":68774095,"uuid":"232009739","full_name":"lsongdev/rtl8821cu","owner":"lsongdev","description":"Realtek 802.11ac USB WLAN driver","archived":false,"fork":false,"pushed_at":"2020-01-10T04:48:58.000Z","size":3665,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T20:59:41.502Z","etag":null,"topics":["driver","hardware","modeswitch","networking","raspberry-pi","wifi"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lsongdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"song940","patreon":"song940","open_collective":"song940","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://git.io/fjRcB"}},"created_at":"2020-01-06T02:35:35.000Z","updated_at":"2022-12-06T03:22:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"7bdfbb7f-405c-4f29-b7eb-df6af6bacd49","html_url":"https://github.com/lsongdev/rtl8821cu","commit_stats":null,"previous_names":["lsongdev/rtl8821cu"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lsongdev/rtl8821cu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Frtl8821cu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Frtl8821cu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Frtl8821cu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Frtl8821cu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsongdev","download_url":"https://codeload.github.com/lsongdev/rtl8821cu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Frtl8821cu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263858150,"owners_count":23520881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["driver","hardware","modeswitch","networking","raspberry-pi","wifi"],"created_at":"2025-01-02T05:48:49.786Z","updated_at":"2026-05-19T15:03:22.085Z","avatar_url":"https://github.com/lsongdev.png","language":"C","funding_links":["https://github.com/sponsors/song940","https://patreon.com/song940","https://opencollective.com/song940","https://git.io/fjRcB"],"categories":[],"sub_categories":[],"readme":"# rtl8821cu\n\nWifi driver for rtl8811cu/rtl8821cu\n\n### Install\n```\nsudo ./dkms-install.sh\n```\n### Remove\n```\nsudo ./dkms-remove.sh\n```\n\n## Build and install without DKMS\n\n```\n~$ sudo apt install bc linux-headers-$(uname -r)\n```\n\nUse following commands in source directory:\n\n```\nmake\nsudo make install\nsudo modprobe 8821cu\n```\n\n## Raspberry Pi\n\nTo build this driver on Raspberry Pi you need to set correct platform in Makefile.\nChange\n\n```\nCONFIG_PLATFORM_I386_PC = y\nCONFIG_PLATFORM_ARM_RPI = n\nCONFIG_PLATFORM_ARM_RPI3 = n\n```\nto\n```\nCONFIG_PLATFORM_I386_PC = n\nCONFIG_PLATFORM_ARM_RPI = y\nCONFIG_PLATFORM_ARM_RPI3 = n\n```\nFor the Raspberry Pi 3 you need to change it to\n```\nCONFIG_PLATFORM_I386_PC = n\nCONFIG_PLATFORM_ARM_RPI = n\nCONFIG_PLATFORM_ARM_RPI3 = y\n```\n\n### Plug your USB-wifi-adapter into your PC\nIf wifi can be detected, congratulations.\nIf not, maybe you need to switch your device usb mode by the following steps in terminal:\n1. find your usb-wifi-adapter device ID, like \"0bda:1a2b\", by type:\n```\nlsusb\n```\n2. switch the mode by type: (the device ID must be yours.)\n\nNeed install `usb_modeswitch` (debian: `sudo apt install usb_modeswitch`)\n```\nsudo usb_modeswitch -KW -v 0bda -p 1a2b\n```\n\nIt should work.\n\n### Modeswitch\n\nJust modify the file */lib/udev/rules.d/40-usb_modeswitch.rules* appending before the line *LABEL=\"modeswitch_rules_end\"* with:\n```\n# Realtek 8811CU/8821CU Wifi AC USB\nATTR{idVendor}==\"0bda\", ATTR{idProduct}==\"1a2b\", RUN+=\"usb_modeswitch -K -v 0bda -p 1a2b\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Frtl8821cu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsongdev%2Frtl8821cu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Frtl8821cu/lists"}