Merge pull request #23014 from zraexy/zraexy-bumblebee-pmmethod
bumblebee service: Fix pmMethod bbswitch check
This commit is contained in:
commit
d8fb60d1d4
@ -13,7 +13,7 @@ let
|
|||||||
useDisplayDevice = cfg.connectDisplay;
|
useDisplayDevice = cfg.connectDisplay;
|
||||||
};
|
};
|
||||||
|
|
||||||
useBbswitch = cfg.pmMethod == "bbswitch";
|
useBbswitch = cfg.pmMethod == "bbswitch" || cfg.pmMethod == "auto" && useNvidia;
|
||||||
|
|
||||||
primus = pkgs.primus.override {
|
primus = pkgs.primus.override {
|
||||||
inherit useNvidia;
|
inherit useNvidia;
|
||||||
@ -65,7 +65,7 @@ in
|
|||||||
|
|
||||||
pmMethod = mkOption {
|
pmMethod = mkOption {
|
||||||
default = "auto";
|
default = "auto";
|
||||||
type = types.enum [ "auto" "bbswitch" "nouveau" "switcheroo" "none" ];
|
type = types.enum [ "auto" "bbswitch" "switcheroo" "none" ];
|
||||||
description = ''
|
description = ''
|
||||||
Set preferred power management method for unused card.
|
Set preferred power management method for unused card.
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user