Hyprland: `m_sWLRRenderer was NULL!` error when installing Hyprland from Home Manager

Good morning.

As the title suggests, today I tried to switch from the NixOS Hyprland module to the Home Manager one, closely following the official instructions on the wiki. However, even if the NixOS module works flawlessly, after switching to the Home Manager one Hyprland started crashing at startup, reporting the m_sWLRRenderer was NULL! error that you can find in the log.

Reading from the threads in #40 and #913 I can understand that the problem may be caused by a graphic driver, but since the NixOS module-based installation works without any problem I don’t think that my system is missing any package…

Many thanks in advance for the help!

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

@Occhioverde I just had this same issue, and determined that the solution was this in my nixos (not home manager) configuration: https://github.com/hyprwm/Hyprland/blob/409ac12f236c06cbb28756239e1d1536078b33bb/nix/module.nix#L54

This is included in the nixos module (see above), but I don’t think this can be done at the home manager level.

@badele the flake package has an option for legacy renderer. You can use it with an override:

(inputs.hyprland.packages.${pkgs.system}.hyprland.override {legacyRenderer = true;})

Add the above in the HM module’s package option.

@badele the flake package has an option for legacy renderer. You can use it with an override:

@fufexan Very thanks, from hyprland flake i didn’t need to use the legacy nixos flag, that working on dell latitude e5540 👍 🎉