autorandr: add crtc option
This option was missing. It is generated by autorandr when executing `autorandr --save my_profile`. Fixes #1024 PR #1283
This commit is contained in:
parent
89be0943e1
commit
c378c1cbcd
|
@ -55,6 +55,13 @@ let
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
crtc = mkOption {
|
||||||
|
type = types.nullOr types.ints.unsigned;
|
||||||
|
description = "Output video display controller.";
|
||||||
|
default = null;
|
||||||
|
example = 0;
|
||||||
|
};
|
||||||
|
|
||||||
primary = mkOption {
|
primary = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
description = "Whether output should be marked as primary";
|
description = "Whether output should be marked as primary";
|
||||||
|
@ -247,6 +254,7 @@ let
|
||||||
if config.enable then
|
if config.enable then
|
||||||
concatStringsSep "\n" ([ "output ${name}" ]
|
concatStringsSep "\n" ([ "output ${name}" ]
|
||||||
++ optional (config.position != "") "pos ${config.position}"
|
++ optional (config.position != "") "pos ${config.position}"
|
||||||
|
++ optional (config.crtc != null) "crtc ${toString config.crtc}"
|
||||||
++ optional config.primary "primary"
|
++ optional config.primary "primary"
|
||||||
++ optional (config.dpi != null) "dpi ${toString config.dpi}"
|
++ optional (config.dpi != null) "dpi ${toString config.dpi}"
|
||||||
++ optional (config.gamma != "") "gamma ${config.gamma}"
|
++ optional (config.gamma != "") "gamma ${config.gamma}"
|
||||||
|
@ -315,6 +323,7 @@ in {
|
||||||
eDP1.enable = false;
|
eDP1.enable = false;
|
||||||
DP1 = {
|
DP1 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
crtc = 0;
|
||||||
primary = true;
|
primary = true;
|
||||||
position = "0x0";
|
position = "0x0";
|
||||||
mode = "3840x2160";
|
mode = "3840x2160";
|
||||||
|
|
|
@ -3,6 +3,7 @@ off
|
||||||
|
|
||||||
output DP2
|
output DP2
|
||||||
pos 0x0
|
pos 0x0
|
||||||
|
crtc 0
|
||||||
primary
|
primary
|
||||||
mode 1920x1080
|
mode 1920x1080
|
||||||
transform 0.600000,0.000000,0.000000,0.000000,0.600000,0.000000,0.000000,0.000000,1.000000
|
transform 0.600000,0.000000,0.000000,0.000000,0.600000,0.000000,0.000000,0.000000,1.000000
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
config = {
|
config = {
|
||||||
DP1.enable = false;
|
DP1.enable = false;
|
||||||
DP2 = {
|
DP2 = {
|
||||||
|
crtc = 0;
|
||||||
primary = true;
|
primary = true;
|
||||||
position = "0x0";
|
position = "0x0";
|
||||||
mode = "1920x1080";
|
mode = "1920x1080";
|
||||||
|
|
Loading…
Reference in a new issue