Skip to content

Commit

Permalink
Merge pull request #23014 from zraexy/zraexy-bumblebee-pmmethod
Browse files Browse the repository at this point in the history
bumblebee service: Fix pmMethod bbswitch check
  • Loading branch information
abbradar authored Feb 20, 2017
2 parents 12b4556 + 5abca15 commit d8fb60d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/hardware/video/bumblebee.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let
useDisplayDevice = cfg.connectDisplay;
};

useBbswitch = cfg.pmMethod == "bbswitch";
useBbswitch = cfg.pmMethod == "bbswitch" || cfg.pmMethod == "auto" && useNvidia;

primus = pkgs.primus.override {
inherit useNvidia;
Expand Down Expand Up @@ -65,7 +65,7 @@ in

pmMethod = mkOption {
default = "auto";
type = types.enum [ "auto" "bbswitch" "nouveau" "switcheroo" "none" ];
type = types.enum [ "auto" "bbswitch" "switcheroo" "none" ];
description = ''
Set preferred power management method for unused card.
'';
Expand Down

0 comments on commit d8fb60d

Please sign in to comment.