3
0
Fork 0
forked from mirrors/nixpkgs

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"; windowManager = "twm";
tty = "9"; tty = "9";
}; };
pkgs
in in
(isoFun { (isoFun {
inherit platform; inherit platform;
lib = (import ../pkgs/lib); lib = (import ../../pkgs/lib);
networkNixpkgs = ""; networkNixpkgs = "";
manualEnabled = true; 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 = { ejabberd = {

View file

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

View file

@ -125,6 +125,9 @@ let
extraModules = cfg.extraModules; extraModules = cfg.extraModules;
serverLayoutOptions = cfg.serverLayoutOptions; serverLayoutOptions = cfg.serverLayoutOptions;
defaultDepth = cfg.defaultDepth; 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 xfs = if cfg.useXFS == false then "" else
''FontPath "${toString cfg.useXFS}"''; ''FontPath "${toString cfg.useXFS}"'';