From 8457873334b8279f291aca9a75fc65c645dea4b3 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Tue, 13 Oct 2009 15:16:30 +0000 Subject: [PATCH] The 'resolution section' is not generated in the xorg.conf when using the vboxvideo driver. This allows us to perform dynamic resolution resizing svn path=/nixos/trunk/; revision=17784 --- modules/services/x11/xserver.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/services/x11/xserver.nix b/modules/services/x11/xserver.nix index 2b5eee8dfec..d453cbdc042 100644 --- a/modules/services/x11/xserver.nix +++ b/modules/services/x11/xserver.nix @@ -446,7 +446,7 @@ in Option "RandRRotation" "on" ''} - ${ + ${if cfg.videoDriver != "vboxvideo" then let f = depth: '' @@ -459,6 +459,8 @@ in EndSubSection ''; in concatMapStrings f [8 16 24] + else + "" # The VirtualBox driver does not support dynamic resizing if resolutions are defined } EndSection