Nixpkgs: Updated Realtek wifi codes (rtlwifi_new-extended)

Created on 26 Jul 2019  ·  8Comments  ·  Source: NixOS/nixpkgs

Project description
The extended branch of the rtlwifi_new project contains a lot of new kernel modules for realtek wifi cards released after 2018!

Metadata

packaging request

All 8 comments

(linuxPackages.rtlwifi_new.overrideAttrs (oldAttrs: rec {
      src = fetchFromGitHub {
    owner = "lwfinger";
    repo = "rtlwifi_new";
    rev = "83fc4fc1245e672e9dc9240c668175ae09b753d5";
    sha256 = "09pnv2scamlnb80kpj4kfizhb18fs4gp58ld4pxy0png7fcwssvz";
  };
    }))

I tried to override src attribute to point to a commit in extended branch. I can see it build the driver I want in logs, but the build outputs don't get copied to kernel module dir.

  boot.kernelPackages = pkgs.linuxPackages_latest;
  boot.extraModulePackages = with config.boot.kernelPackages;[ (rtlwifi_new.overrideAttrs (oldAttrs: rec {
      src = pkgs.fetchFromGitHub {
    "owner" = "lwfinger";
    "repo" = "rtlwifi_new";
    "rev" = "e3260995279100d7ec9addc407922ce895a93cea";
    "sha256" = "19hhjzjlwpg3bk4fr3sl0lbrwnn24ccxxfmrrbh0zkhh4ppds05k";
  };
    })) ];

  #optionally set any extra config for your drivers
  boot.extraModprobeConfig = ''
    options rtl8723de ant_sel=2
  '';

Solved it. The override I made in general packages list didn't apply to kernel packages. Also I was using linuxPackages_latest kernel and the override was for the default kernel.
As the wiki says, you need to be careful when using a different kernel.

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

Well, guess what, the repo was deleted. I was using the repo with my overlay to get the driver for rtl8723de, but now I don't know if it'll work without it. If I don't report in 30 minutes, this means my Wi-Fi card is dead :heart_eyes:

Drivers got upstreamed in 5.8 kernel. WiFi now works out of the box.

On Wed, 19 Aug, 2020, 02:26 Vika, notifications@github.com wrote:

Well, guess what, the repo was deleted. I was using the repo with my
overlay to get the driver for rtl8723de, but now I don't know if it'll work
without it. If I don't report in 30 minutes, this means my Wi-Fi card is
dead 😍


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/issues/65435#issuecomment-675716083,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHCHNPKGTDDPPLVJJXCACRDSBLTINANCNFSM4IHGZIHA
.

Great! I need to test it right away! if it works, then I guess the issue can be closed.

Ouch, 5.8 isn't packaged yet

I think I will keep this packaging request open, as for now not all drivers got upstreamed to rtw88!

Was this page helpful?
0 / 5 - 0 ratings