* Remember the original symbolic driver name.
svn path=/nixos/trunk/; revision=18185
This commit is contained in:
parent
194a24bcf1
commit
124096e418
@ -19,12 +19,12 @@ let
|
|||||||
intel = { modules = [ xorg.xf86videointel ]; };
|
intel = { modules = [ xorg.xf86videointel ]; };
|
||||||
nv = { modules = [ xorg.xf86videonv ]; };
|
nv = { modules = [ xorg.xf86videonv ]; };
|
||||||
nvidia = { modules = [ kernelPackages.nvidia_x11 ]; };
|
nvidia = { modules = [ kernelPackages.nvidia_x11 ]; };
|
||||||
nvidiaLegacy = { modules = [ kernelPackages.nvidia_x11_legacy ]; name = "nvidia"; };
|
nvidiaLegacy = { modules = [ kernelPackages.nvidia_x11_legacy ]; driverName = "nvidia"; };
|
||||||
openchrome = { modules = [ xorg.xf86videoopenchrome ]; };
|
openchrome = { modules = [ xorg.xf86videoopenchrome ]; };
|
||||||
sis = { modules = [ xorg.xf86videosis ]; };
|
sis = { modules = [ xorg.xf86videosis ]; };
|
||||||
unichrome = { modules = [ pkgs.xorgVideoUnichrome ]; };
|
unichrome = { modules = [ pkgs.xorgVideoUnichrome ]; };
|
||||||
vesa = { modules = [ xorg.xf86videovesa ]; };
|
vesa = { modules = [ xorg.xf86videovesa ]; };
|
||||||
virtualbox = { modules = [ kernelPackages.virtualboxGuestAdditions ]; name = "vboxvideo"; };
|
virtualbox = { modules = [ kernelPackages.virtualboxGuestAdditions ]; driverName = "vboxvideo"; };
|
||||||
vmware = { modules = [ xorg.xf86videovmware ]; };
|
vmware = { modules = [ xorg.xf86videovmware ]; };
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ let
|
|||||||
optional (cfg.videoDriver != null) cfg.videoDriver ++ cfg.videoDrivers;
|
optional (cfg.videoDriver != null) cfg.videoDriver ++ cfg.videoDrivers;
|
||||||
|
|
||||||
drivers = flip map driverNames
|
drivers = flip map driverNames
|
||||||
(name: { inherit name; } //
|
(name: { inherit name; driverName = name; } //
|
||||||
attrByPath [name] (throw "unknown video driver `${name}'") knownVideoDrivers);
|
attrByPath [name] (throw "unknown video driver `${name}'") knownVideoDrivers);
|
||||||
|
|
||||||
|
|
||||||
@ -453,7 +453,7 @@ in
|
|||||||
|
|
||||||
Section "Device"
|
Section "Device"
|
||||||
Identifier "Device-${driver.name}[0]"
|
Identifier "Device-${driver.name}[0]"
|
||||||
Driver "${driver.name}"
|
Driver "${driver.driverName}"
|
||||||
${optionalString (driver.name == "nvidiaLegacy") ''
|
${optionalString (driver.name == "nvidiaLegacy") ''
|
||||||
# This option allows suspending with a nvidiaLegacy card
|
# This option allows suspending with a nvidiaLegacy card
|
||||||
Option "NvAGP" "1"
|
Option "NvAGP" "1"
|
||||||
|
Loading…
Reference in New Issue
Block a user