From a347979be595c152b8397767c915943d0867281c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 13 Oct 2009 17:52:49 +0000 Subject: [PATCH] Adding nvidiaLegacy xorg option for suspend to work svn path=/nixos/trunk/; revision=17785 --- modules/services/x11/xserver.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/services/x11/xserver.nix b/modules/services/x11/xserver.nix index d453cbdc042..63a5abc32b3 100644 --- a/modules/services/x11/xserver.nix +++ b/modules/services/x11/xserver.nix @@ -486,6 +486,10 @@ in Identifier "Device[0]" Driver "${if cfg.videoDriver == "nvidiaLegacy" then "nvidia" else cfg.videoDriver}" + ${if cfg.videoDriver == "nvidiaLegacy" then '' + # This option allows suspending with a nvidiaLegacy card + Option "NvAGP" "1"'' + else ""} # !!! Is the "Clone" option still useful? Option "Clone" "${if cfg.isClone then "on" else "off"}" '';