An option for XRandr support. Use it for dualhead ATi (and probably Intel) cards.

svn path=/nixos/trunk/; revision=13109
This commit is contained in:
Michael Raskin 2008-10-24 10:30:38 +00:00
parent a99b82b987
commit 1d55390e1c
4 changed files with 17 additions and 1 deletions

View File

@ -18,11 +18,12 @@ let
windowManager = "twm";
tty = "9";
};
pkgs
in
(isoFun {
inherit platform;
lib = (import ../pkgs/lib);
lib = (import ../../pkgs/lib);
networkNixpkgs = "";
manualEnabled = true;

View File

@ -1557,6 +1557,16 @@ in
";
};
virtualScreen = mkOption {
default = null;
example = {
x=2048;
y=2048;
};
description = "
Virtual screen size for Xrandr
";
};
};
ejabberd = {

View File

@ -58,11 +58,13 @@ Section "Screen"
Depth 16
Modes @resolutions@
@extraDisplaySettings@
@virtualScreen@
EndSubSection
SubSection "Display"
Depth 24
Modes @resolutions@
@extraDisplaySettings@
@virtualScreen@
EndSubSection
#SubSection "Display"
# Depth 32

View File

@ -125,6 +125,9 @@ let
extraModules = cfg.extraModules;
serverLayoutOptions = cfg.serverLayoutOptions;
defaultDepth = cfg.defaultDepth;
virtualScreen = if cfg.virtualScreen != null then
"Virtual ${toString cfg.virtualScreen.x} ${toString cfg.virtualScreen.y}"
else "";
xfs = if cfg.useXFS == false then "" else
''FontPath "${toString cfg.useXFS}"'';