Added some options for manual text insertion into xorg.conf . Removed (commented out) MonitorLayout by default. It was the thing that prevents i915GM on laptops from working. Those who need it can add it back in extraDeviceOptions.
svn path=/nixos/trunk/; revision=9527
This commit is contained in:
parent
d2f337c872
commit
e4626e0f0d
@ -729,7 +729,55 @@
|
|||||||
";
|
";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
name = ["services" "xserver" "extraDeviceConfig"];
|
||||||
|
default = "";
|
||||||
|
example = "VideoRAM 131072";
|
||||||
|
description ="
|
||||||
|
Just anything to add into Device section.
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
name = ["services" "xserver" "extraMonitorSettings"];
|
||||||
|
default = "";
|
||||||
|
example = "HorizSync 28-49";
|
||||||
|
description ="
|
||||||
|
Just anything to add into Monitor section.
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
name = ["services" "xserver" "extraModules"];
|
||||||
|
default = "";
|
||||||
|
example = "SubSection \"extmod\"
|
||||||
|
EndSubsection";
|
||||||
|
description ="
|
||||||
|
Just anything to add into Modules section.
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
name = ["services" "xserver" "serverLayoutOptions"];
|
||||||
|
default = "";
|
||||||
|
example = "
|
||||||
|
Option \"AIGLX\" \"true\"
|
||||||
|
";
|
||||||
|
description ="
|
||||||
|
Just anything to add into Monitor section.
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
name = ["services" "xserver" "defaultDepth"];
|
||||||
|
default = 24;
|
||||||
|
example = 8;
|
||||||
|
description ="
|
||||||
|
Default colour depth.
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name = ["services" "httpd" "enable"];
|
name = ["services" "httpd" "enable"];
|
||||||
default = false;
|
default = false;
|
||||||
|
@ -20,6 +20,7 @@ Section "Module"
|
|||||||
Load "type1"
|
Load "type1"
|
||||||
Load "vbe"
|
Load "vbe"
|
||||||
@moduleSection@
|
@moduleSection@
|
||||||
|
@extraModules@
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
|
|
||||||
@ -47,6 +48,7 @@ Section "Monitor"
|
|||||||
Option "DPMS"
|
Option "DPMS"
|
||||||
# HorizSync 28-49
|
# HorizSync 28-49
|
||||||
# VertRefresh 43-75
|
# VertRefresh 43-75
|
||||||
|
@extraMonitorSettings@
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
|
|
||||||
@ -54,7 +56,7 @@ Section "Screen"
|
|||||||
Identifier "Screen[0]"
|
Identifier "Screen[0]"
|
||||||
Device "Device[0]"
|
Device "Device[0]"
|
||||||
Monitor "Monitor[0]"
|
Monitor "Monitor[0]"
|
||||||
DefaultDepth 24
|
DefaultDepth @defaultDepth@
|
||||||
SubSection "Display"
|
SubSection "Display"
|
||||||
Depth 16
|
Depth 16
|
||||||
Modes @resolutions@
|
Modes @resolutions@
|
||||||
@ -77,9 +79,10 @@ Section "Device"
|
|||||||
Driver "@videoDriver@"
|
Driver "@videoDriver@"
|
||||||
Option "Clone" "@isClone@"
|
Option "Clone" "@isClone@"
|
||||||
#Option "MonitorLayout" "CRT,LFP"
|
#Option "MonitorLayout" "CRT,LFP"
|
||||||
Option "MonitorLayout" "LVDS,CRT"
|
#Option "MonitorLayout" "LVDS,CRT"
|
||||||
@device@
|
@device@
|
||||||
@internalAGPGART@
|
@internalAGPGART@
|
||||||
|
@extraDeviceConfig@
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
|
|
||||||
@ -88,6 +91,7 @@ Section "ServerLayout"
|
|||||||
InputDevice "Keyboard[0]" "CoreKeyboard"
|
InputDevice "Keyboard[0]" "CoreKeyboard"
|
||||||
InputDevice "@corePointer@" "CorePointer"
|
InputDevice "@corePointer@" "CorePointer"
|
||||||
Screen "Screen[0]"
|
Screen "Screen[0]"
|
||||||
|
@serverLayoutOptions@
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
|
|
||||||
|
@ -63,6 +63,7 @@ let
|
|||||||
xorg.xf86inputmouse
|
xorg.xf86inputmouse
|
||||||
]
|
]
|
||||||
++ optional (videoDriver == "vesa") xorg.xf86videovesa
|
++ optional (videoDriver == "vesa") xorg.xf86videovesa
|
||||||
|
++ optional (videoDriver == "vga") xorg.xf86videovga
|
||||||
++ optional (videoDriver == "sis") xorg.xf86videosis
|
++ optional (videoDriver == "sis") xorg.xf86videosis
|
||||||
++ optional (videoDriver == "i810") xorg.xf86videoi810
|
++ optional (videoDriver == "i810") xorg.xf86videoi810
|
||||||
++ optional (videoDriver == "intel") xorg.xf86videointel
|
++ optional (videoDriver == "intel") xorg.xf86videointel
|
||||||
@ -111,6 +112,11 @@ let
|
|||||||
" Option \"UseInternalAGPGART\" \"no\"" else
|
" Option \"UseInternalAGPGART\" \"no\"" else
|
||||||
" ");
|
" ");
|
||||||
|
|
||||||
|
extraDeviceConfig = getCfg "extraDeviceConfig";
|
||||||
|
extraMonitorSettings = getCfg "extraMonitorSettings";
|
||||||
|
extraModules = getCfg "extraModules";
|
||||||
|
serverLayoutOptions = getCfg "serverLayoutOptions";
|
||||||
|
defaultDepth = getCfg "defaultDepth";
|
||||||
|
|
||||||
buildCommand = "
|
buildCommand = "
|
||||||
buildCommand= # urgh, don't substitute this
|
buildCommand= # urgh, don't substitute this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user